Contents of /trunk/extras/crypto++/crypto++-5.6.2-r1.smage2
Parent Directory | Revision Log
Revision 20577 -
(show annotations)
(download)
Tue Jan 28 10:44:09 2014 UTC (10 years, 8 months ago) by niro
File size: 1218 byte(s)
Tue Jan 28 10:44:09 2014 UTC (10 years, 8 months ago) by niro
File size: 1218 byte(s)
-fixed SRCFILE
1 | # $Id$ |
2 | |
3 | PNAME="crypto++" |
4 | PVER="5.6.2" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="app-crypt" |
8 | |
9 | DESCRIPTION="Crypto++ Library is a free C++ class library of cryptographic schemes." |
10 | HOMEPAGE="http://www.cryptopp.com/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= sys-libs/libstdc++-4.8" |
14 | |
15 | SDEPEND=">= app-arch/unzip-6 |
16 | >= virtual/sed" |
17 | |
18 | SRCFILE="${PNAME/++/pp}${PVER//.}.zip" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | sminclude mtools |
22 | |
23 | SRC_URI=( |
24 | http://www.cryptopp.com/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | UP2DATE="updatecmd ${HOMEPAGE} | grep ']Crypto++ [0-9]' | sed -n 's:.*Crypto++\ \(.*\):\1:;$ p'" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} ${SRCDIR} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # honor cflags |
36 | sed -i 's:^CXXFLAGS:#CXXFLAGS:' GNUmakefile || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | # disable dbug and support pic |
44 | export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" |
45 | |
46 | mmake -f GNUmakefile || die |
47 | # build so-lib |
48 | mmake libcrypopp.so || die |
49 | } |
50 | |
51 | src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | minstalldir /usr/include/cryptopp || die |
56 | minstallfile \*.h /usr/include/cryptopp || die |
57 | minstalldir /usr/$(mlibdir)/pkgconfig || die |
58 | minstallexec libcryptopp.so /usr/$(mlibdir) || die |
59 | minstallfile libcrypto++.pc /usr/$(mlibdir)/pkgconfig || die |
60 | |
61 | minstalldocs License.txt Readme.txt || die |
62 | } |