From 32fb1d9a30eec542b05af1573590dbb3ba2d6dde Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 6 Jun 2013 07:37:37 +0200 Subject: [PATCH] New package crypto++-562 (required by a newer synergy version). --- common/shlibs | 1 + srcpkgs/crypto++-devel | 1 + srcpkgs/crypto++/files/libcrypto++.pc | 11 +++++++ srcpkgs/crypto++/template | 44 +++++++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 120000 srcpkgs/crypto++-devel create mode 100644 srcpkgs/crypto++/files/libcrypto++.pc create mode 100644 srcpkgs/crypto++/template diff --git a/common/shlibs b/common/shlibs index 392aecfdbe4..b16a3ce22e9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1247,3 +1247,4 @@ libdb-5.3.so libdb-5.3.21_1 libdb_cxx-5.3.so libdb-cxx-5.3.21_1 libsdb.so.0 sdb-0.6.2_1 libcares.so.2 c-ares-1.10.0_1 +libcryptopp.so crypto++-562_1 diff --git a/srcpkgs/crypto++-devel b/srcpkgs/crypto++-devel new file mode 120000 index 00000000000..6450510b672 --- /dev/null +++ b/srcpkgs/crypto++-devel @@ -0,0 +1 @@ +crypto++ \ No newline at end of file diff --git a/srcpkgs/crypto++/files/libcrypto++.pc b/srcpkgs/crypto++/files/libcrypto++.pc new file mode 100644 index 00000000000..3f5d755951d --- /dev/null +++ b/srcpkgs/crypto++/files/libcrypto++.pc @@ -0,0 +1,11 @@ +# Written by Alexander Rødseth + +prefix=/usr +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: libcrypto++-@@VERSION@@ +Description: Class library of cryptographic schemes +Version: @@VERSION@@ +Libs: -L${libdir} -lcryptopp +Cflags: -I${includedir} diff --git a/srcpkgs/crypto++/template b/srcpkgs/crypto++/template new file mode 100644 index 00000000000..255588c919d --- /dev/null +++ b/srcpkgs/crypto++/template @@ -0,0 +1,44 @@ +# Template build file for 'crypto++'. +pkgname=crypto++ +version=562 +revision=1 +create_wrksrc=yes +hostmakedepends="unzip" +short_desc="A free C++ class library of cryptographic schemes" +maintainer="Juan RP " +homepage="http://www.cryptopp.com/" +license="Boost Software License 1.0, Public domain" +distfiles="http://www.cryptopp.com/cryptopp${version}.zip" +checksum=5cbfd2fcb4a6b3aab35902e2e0f3b59d9171fee12b3fc2b363e1801dfec53574 + +do_build() { + sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile + export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" + make CXX=$CXX -f GNUmakefile ${makejobs} + make CXX=$CXX libcryptopp.so ${makejobs} +} + +do_install() { + install -d ${DESTDIR}/usr/{lib/pkgconfig,include/cryptopp} + install -m644 *.h ${DESTDIR}/usr/include/cryptopp/ + install -m644 libcryptopp.a ${DESTDIR}/usr/lib/libcryptopp.a + install -m644 libcryptopp.so ${DESTDIR}/usr/lib/libcryptopp.so + install -m644 ${FILESDIR}/libcrypto++.pc ${DESTDIR}/usr/lib/pkgconfig/libcrypto++.pc + sed -e "s,@@VERSION@@,${version},g" -i ${DESTDIR}/usr/lib/pkgconfig/libcrypto++.pc + install -Dm644 License.txt ${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE +} + +crypto++-devel_package() { + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove usr/lib/pkgconfig + } +} + +crypto++_package() { + pkg_install() { + vmove all + } +}