2013-06-06 07:37:37 +02:00
|
|
|
# Template build file for 'crypto++'.
|
|
|
|
pkgname=crypto++
|
|
|
|
version=562
|
2014-05-25 12:20:09 +02:00
|
|
|
revision=3
|
2013-06-06 07:37:37 +02:00
|
|
|
create_wrksrc=yes
|
|
|
|
hostmakedepends="unzip"
|
|
|
|
short_desc="A free C++ class library of cryptographic schemes"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
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() {
|
2014-05-25 12:20:09 +02:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-06-06 07:37:37 +02:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-05-25 12:20:09 +02:00
|
|
|
vmove usr/lib/*.a
|
2013-06-06 07:37:37 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|