blob: d1a8c867f4c027b335548464f16fce324f01a79e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Created by: Martin Preuss <martin@libchipcard.de>
# $FreeBSD$
PORTNAME= libchipcard
PORTVERSION= 5.0.2
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.aquamaniac.de/sites/download/download.php?package=02&release=26&file=01&dummy=/
MAINTAINER= jhale@FreeBSD.org
COMMENT= Library for easy access to chipcards
LICENSE= LGPL21
LIB_DEPENDS= pcsclite:${PORTSDIR}/devel/pcsc-lite \
gwenhywfar:${PORTSDIR}/devel/gwenhywfar
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
USE_OPENSSL= yes
OPTIONS_DEFINE= DOXYGEN MEMDEBUG
MEMDEBUG_DESC= Enable memory debugger statistic
GNU_CONFIGURE= yes
CONFIGURE_ENV+= aq_distrib_name="FreeBSD"
CONFIGURE_ARGS+=--enable-release="yes" \
--with-pcsc-includes=${LOCALBASE}/include \
--with-pcsc-libs=${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB= GWEN_SHLIB_VER="${GWEN_SHLIB_VER}"
USE_LDCONFIG= yes
GWEN_SHLIB_VER= 60
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
dot:${PORTSDIR}/graphics/graphviz
CONFIGURE_ARGS+=--enable-full-doc
.endif
.if ${PORT_OPTIONS:MMEMDEBUG}
CONFIGURE_ARGS+=--enable-memtrace
.endif
post-patch:
${REINPLACE_CMD} -e 's|aq_endian\" ==|aq_endian\" =|g' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|find chipcard|find libchipcard5|' \
${WRKSRC}/Makefile.in
post-build:
.if ${PORT_OPTIONS:MDOXYGEN}
@cd ${WRKSRC} && ${GMAKE} srcdoc
.endif
post-install:
.if ${PORT_OPTIONS:MDOXYGEN}
${MKDIR} ${DOCSDIR}/apidoc
cd ${WRKSRC}/apidoc && \
${COPYTREE_SHARE} \* ${DOCSDIR}/apidoc
@${FIND} -P ${DOCSDIR} -type f 2>/dev/null | \
${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
@${FIND} -P -d ${DOCSDIR} -type d 2>/dev/null | \
${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>
|