libamqpcpp: init at 2.7.4

This commit is contained in:
Mike Playle
2017-04-10 12:00:35 +01:00
committed by Orivej Desh
parent 14ec308514
commit 3aecf95548
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "libamqpcpp-${version}";
version = "2.7.4";
src = fetchFromGitHub {
owner = "CopernicaMarketingSoftware";
repo = "AMQP-CPP";
rev = "v${version}";
sha256 = "0m010bz0axawcpv4d1p1vx7c6r8lg27w2s2vjqpbpg99w35n6c8k";
};
patches = [ ./libamqpcpp-darwin.patch ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Library for communicating with a RabbitMQ server";
homepage = https://github.com/CopernicaMarketingSoftware/AMQP-CPP;
license = licenses.asl20;
maintainers = [ maintainers.mjp ];
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,13 @@
--- a/src/Makefile
+++ b/src/Makefile
@@ -0,0 +1 @@
+CXX ?= g++
@@ -43 +44 @@ ${SHARED_LIB}: ${SHARED_OBJECTS}
- ${LD} ${LD_FLAGS} -Wl,${SONAMEPARAMETER},lib$(LIBRARY_NAME).so.$(SONAME) -o $@ ${SHARED_OBJECTS}
+ ${CXX} ${LD_FLAGS} -Wl,${SONAMEPARAMETER},lib$(LIBRARY_NAME).so.$(SONAME) -o $@ ${SHARED_OBJECTS}
@@ -52 +53 @@ ${SHARED_OBJECTS}:
- ${CPP} ${CPPFLAGS} -fpic -o $@ ${@:%.o=%.cpp}
+ ${CXX} ${CPPFLAGS} -fpic -o $@ ${@:%.o=%.cpp}
@@ -55 +56 @@ ${STATIC_OBJECTS}:
- ${CPP} ${CPPFLAGS} -o $@ ${@:%.s.o=%.cpp}
+ ${CXX} ${CPPFLAGS} -o $@ ${@:%.s.o=%.cpp}