Annotation of /trunk/extras/crypto++/crypto++-5.6.5-r1.smage2
Parent Directory | Revision Log
Revision 29056 -
(hide annotations)
(download)
Fri May 19 09:27:43 2017 UTC (7 years, 4 months ago) by niro
File size: 1564 byte(s)
Fri May 19 09:27:43 2017 UTC (7 years, 4 months ago) by niro
File size: 1564 byte(s)
auto added: ver bump to 5.6.5-r1
1 | niro | 29056 | # $Id$ |
2 | |||
3 | PNAME="crypto++" | ||
4 | PVER="5.6.5" | ||
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=">= sys-libs/libstdc++-6.3" | ||
13 | |||
14 | SDEPEND=">= app-arch/unzip-6 | ||
15 | >= virtual/sed" | ||
16 | |||
17 | SRCFILE="${PNAME/++/pp}${PVER//.}.zip" | ||
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
19 | |||
20 | sminclude mtools | ||
21 | |||
22 | SRC_URI=( | ||
23 | http://www.cryptopp.com/${SRCFILE} | ||
24 | mirror://${PNAME}/${SRCFILE} | ||
25 | ) | ||
26 | |||
27 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'Crypto++.*Release' | sed 's:.*]\([0-9].*\) Release.*:\1:' | upsort_pipe" | ||
28 | |||
29 | src_prepare() | ||
30 | { | ||
31 | munpack ${SRCFILE} ${SRCDIR} || die | ||
32 | cd ${SRCDIR} | ||
33 | |||
34 | # honor cflags | ||
35 | sed -i 's:^CXXFLAGS:#CXXFLAGS:' GNUmakefile || die | ||
36 | } | ||
37 | |||
38 | src_compile() | ||
39 | { | ||
40 | cd ${SRCDIR} | ||
41 | |||
42 | # disable debug and support pic | ||
43 | export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" | ||
44 | |||
45 | mmake -f GNUmakefile || die | ||
46 | # build so-lib | ||
47 | mmake libcryptopp.so || die | ||
48 | } | ||
49 | |||
50 | src_install() | ||
51 | { | ||
52 | cd ${SRCDIR} | ||
53 | |||
54 | minstalldir /usr/include/cryptopp || die | ||
55 | minstallfile \*.h /usr/include/cryptopp || die | ||
56 | minstalldir /usr/$(mlibdir)/pkgconfig || die | ||
57 | minstallexec libcryptopp.so /usr/$(mlibdir) || die | ||
58 | |||
59 | MCONFIG="/usr/$(mlibdir)/pkgconfig/libcrypto++.pc" | ||
60 | mclearconfig | ||
61 | maddconfig 'prefix=/usr' | ||
62 | maddconfig "libdir=\${prefix}/$(mlibdir)" | ||
63 | maddconfig 'includedir=${prefix}/include' | ||
64 | maddconfig | ||
65 | maddconfig "Name: libcrypto++-${PVER}" | ||
66 | maddconfig 'Description: Class library of cryptographic schemes' | ||
67 | maddconfig "Version: ${PVER}" | ||
68 | maddconfig 'Libs: -L${libdir} -lcryptopp' | ||
69 | maddconfig 'Cflags: -I${includedir}' | ||
70 | |||
71 | minstalldocs License.txt Readme.txt || die | ||
72 | } |