Magellan Linux

Contents of /trunk/extras/libchipcard/libchipcard-0.9.1-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1715 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/libchipcard/libchipcard-0.9.1-r5.smage2,v 1.1 2008/04/03 20:44:07 niro Exp $
2
3 PNAME="libchipcard"
4 PVER="0.9.1"
5 PBUILD="r5"
6
7 PCATEGORIE="sys-libs"
8 STATE="unstable"
9
10 DESCRIPTION="libchipcard is a library for easy access to chip cards via chip card readers."
11 HOMEPAGE="http://www.libchipcard.de/"
12
13 DEPEND=">= dev-libs/openssl-0.9.8"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 mirror://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/chipcardd.rc
23 mirror://${PNAME}/${PNAME}-${PVER}-lib64.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-m4-quoting.patch
25 mirror://${PNAME}/${PNAME}-${PVER}-amd64.patch
26 )
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # fix annoying m4 warnings
34 mpatch ${PNAME}-${PVER}-m4-quoting.patch || die
35
36 # fix compilation on 64bit hosts
37 mpatch ${PNAME}-${PVER}-amd64.patch || die
38
39 # fix up build on lib64 hosts
40 if [[ $(mlibdir) = lib64 ]]
41 then
42 mpatch ${PNAME}-${PVER}-lib64.patch || die
43 autoreconf || die
44 libtoolize --copy --force || die
45 fi
46 }
47
48 src_compile()
49 {
50 cd ${SRCDIR}
51
52 mconfigure \
53 --with-client-cfg-file=/etc \
54 --with-server-cfg-file=/etc \
55 --with-pid-dir=/var/run \
56 --with-log-dir=/var/log \
57 --disable-full-doc \
58 --disable-pcsc \
59 --enable-ssl \
60 --with-openssl-libs=/usr/$(mlibdir) \
61 || die
62
63 mmake || die
64 }
65
66 src_install()
67 {
68 cd ${SRCDIR}
69 mmake DESTDIR=${BINDIR} chroot_dir=${BINDIR} install || die
70
71 # install our initscript
72 minstallrc chipcardd.rc chipcardd || die
73
74 # make sure an /var does not exists to not override our perms
75 [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var || die
76
77 minstalldocs AUTHORS COPYING* ChangeLog FAQ NEWS README* THANKS TODO || die
78 }

Properties

Name Value
svn:keywords Id