Magellan Linux

Contents of /branches/magellan-next/extras/qca-ossl/qca-ossl-2.0.0_beta3-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7077 - (show annotations) (download)
Tue Sep 28 18:29:47 2010 UTC (13 years, 7 months ago) by niro
File size: 1287 byte(s)
-added patch to fix compilation against openssl-1.0.0
1 # $Id: qca-ossl-2.0.0_beta3-r3.smage2 4187 2009-11-30 09:24:21Z niro $
2
3 PNAME="qca-ossl"
4 PVER="2.0.0_beta3"
5 PBUILD="r4"
6
7 PCATEGORIE="app-crypt"
8 STATE="unstable"
9
10 DESCRIPTION="TLS, S/MIME, PKCS#12, crypto algorithms plugin for QCA."
11 HOMEPAGE="http://delta.affinix.com/qca/"
12
13 DEPEND=">= app-crypt/qca-2.0
14 >= dev-libs/openssl-1.0.0"
15
16 SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}"
18
19 sminclude qt4
20
21 SRC_URI=(
22 http://delta.affinix.com/download/qca/${PVER%.*}/plugins/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-openssl-0.9.8i.patch
25 mirror://${PNAME}/${PNAME}-openssl-1.0.0.patch
26 )
27
28 UP2DATE="updatecmd -listonly ${HOMEPAGE} | grep ${PNAME}-[0-9] | sed 's/.*${PNAME}-\(.*\).tar.*/\1/' | sed 's:-:_:'"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # fixes compile issues with >=openssl-0.9.8i
36 mpatch ${PNAME}-openssl-0.9.8i.patch || die
37
38 # fixes compile issues with >=openssl-1.0.0
39 mpatch ${PNAME}-openssl-1.0.0.patch || die
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45
46 # non standard configure script
47 ./configure \
48 --qtdir=${QTDIR} \
49 --no-separate-debug-info \
50 --release \
51 || die
52
53 mmake || die
54 }
55
56 src_install()
57 {
58 cd ${SRCDIR}
59 mmake INSTALL_ROOT=${BINDIR} install || die
60 minstalldocs COPYING README TODO || die
61 }