2013-06-06 05:37:37 +00:00
|
|
|
# Template build file for 'crypto++'.
|
|
|
|
pkgname=crypto++
|
2016-03-23 17:04:36 +00:00
|
|
|
version=563
|
|
|
|
revision=1
|
2013-06-06 05:37:37 +00:00
|
|
|
create_wrksrc=yes
|
|
|
|
hostmakedepends="unzip"
|
|
|
|
short_desc="A free C++ class library of cryptographic schemes"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-06-06 05:37:37 +00:00
|
|
|
homepage="http://www.cryptopp.com/"
|
|
|
|
license="Boost Software License 1.0, Public domain"
|
|
|
|
distfiles="http://www.cryptopp.com/cryptopp${version}.zip"
|
2016-03-23 17:04:36 +00:00
|
|
|
checksum=9390670a14170dd0f48a6b6b06f74269ef4b056d4718a1a329f6f6069dc957c9
|
2013-06-06 05:37:37 +00:00
|
|
|
|
|
|
|
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
|
2015-02-16 09:14:13 +00:00
|
|
|
install -m644 libcryptopp.so.${version} ${DESTDIR}/usr/lib/libcryptopp.so.${version}
|
|
|
|
ln -s libcryptopp.so.${version} ${DESTDIR}/usr/lib/libcryptopp.so
|
2013-06-06 05:37:37 +00:00
|
|
|
install -m644 ${FILESDIR}/libcrypto++.pc ${DESTDIR}/usr/lib/pkgconfig/libcrypto++.pc
|
|
|
|
sed -e "s,@@VERSION@@,${version},g" -i ${DESTDIR}/usr/lib/pkgconfig/libcrypto++.pc
|
2015-02-16 09:14:13 +00:00
|
|
|
vlicense License.txt LICENSE
|
2013-06-06 05:37:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
crypto++-devel_package() {
|
2014-05-25 10:20:09 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-06-06 05:37:37 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-05-25 10:20:09 +00:00
|
|
|
vmove usr/lib/*.a
|
2015-02-16 09:14:13 +00:00
|
|
|
vmove usr/lib/*.so
|
2013-06-06 05:37:37 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|