diff --git a/common/shlibs b/common/shlibs index aa5f7103aea..c5340e9f3a5 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1685,3 +1685,4 @@ libfakekey.so.0 libfakekey-0.1_1 libsmartcols.so.1 libsmartcols-2.25_1 libspiro.so.0 libspiro-0.2_1 libopenjp2.so.7 libopenjpeg2-2.1.0_1 +libcln.so.6 cln-1.3.3_1 diff --git a/srcpkgs/cln-devel b/srcpkgs/cln-devel new file mode 120000 index 00000000000..8bba4e6fb88 --- /dev/null +++ b/srcpkgs/cln-devel @@ -0,0 +1 @@ +cln \ No newline at end of file diff --git a/srcpkgs/cln/patches/unused.patch b/srcpkgs/cln/patches/unused.patch new file mode 100644 index 00000000000..e9c70de7b89 --- /dev/null +++ b/srcpkgs/cln/patches/unused.patch @@ -0,0 +1,15 @@ +--- src/base/cl_macros.h.orig 2014-07-30 15:19:17.474034947 +0200 ++++ src/base/cl_macros.h 2014-07-30 15:19:28.210034058 +0200 +@@ -66,11 +66,7 @@ + + // Ignore a value (instead of assigning it to a variable). + // unused ... +- #if defined(__GNUC__) || defined(__KCC) // avoid a gcc warning "statement with no effect" +- #define unused (void) +- #else +- #define unused +- #endif ++ #define unused + + // Denotes a point where control flow can never arrive. + // NOTREACHED diff --git a/srcpkgs/cln/template b/srcpkgs/cln/template new file mode 100644 index 00000000000..3fbbb8f4f26 --- /dev/null +++ b/srcpkgs/cln/template @@ -0,0 +1,27 @@ +# Template file for 'cln' +pkgname=cln +version=1.3.3 +revision=1 +build_style=gnu-configure +maintainer="Dominik Honnef " +makedepends="gmp-devel" +license="GPL" +homepage="http://www.ginac.de/CLN/" +short_desc="A library for efficient computations with all kinds of numbers in arbitrary precision" +distfiles="http://www.ginac.de/CLN/${pkgname}-${version}.tar.bz2" +checksum=57fc2ee3ecbb30d4037ff32a9a331804ea7dad8b345e70d42d9991ca659b2612 + +if [[ "$XBPS_TARGET_MACHINE" == arm* ]]; then + CPPFLAGS+=" -DNO_ASM" +fi + +cln-devel_package() { + short_desc+=" - development files" + depends="cln>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/libcln.so + vmove usr/lib/libcln.a + vmove usr/lib/pkgconfig + } +}