aboutsummaryrefslogtreecommitdiff
path: root/devel/libchipcard/Makefile
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2013-10-20 18:07:19 +0000
committerJason E. Hale <jhale@FreeBSD.org>2013-10-20 18:07:19 +0000
commit800864c4320a284af1b0e0f6cac928373a7c2a5a (patch)
treec4971dae6f393033363762e1853d45ff770f0af8 /devel/libchipcard/Makefile
parente6dfd4bf9e9b02ca4fcdac9cf5fb22afa033a158 (diff)
downloadports-800864c4320a284af1b0e0f6cac928373a7c2a5a.tar.gz
ports-800864c4320a284af1b0e0f6cac928373a7c2a5a.zip
- Support staging
- Use new LIB_DEPENDS syntax - Use options helpers
Notes
Notes: svn path=/head/; revision=331043
Diffstat (limited to 'devel/libchipcard/Makefile')
-rw-r--r--devel/libchipcard/Makefile40
1 files changed, 17 insertions, 23 deletions
diff --git a/devel/libchipcard/Makefile b/devel/libchipcard/Makefile
index 20dc0df0c931..1e170ace513a 100644
--- a/devel/libchipcard/Makefile
+++ b/devel/libchipcard/Makefile
@@ -12,17 +12,13 @@ COMMENT= Library for easy access to chipcards
LICENSE= LGPL21
-LIB_DEPENDS= pcsclite:${PORTSDIR}/devel/pcsc-lite \
- gwenhywfar:${PORTSDIR}/devel/gwenhywfar
+LIB_DEPENDS= libpcsclite.so:${PORTSDIR}/devel/pcsc-lite \
+ libgwenhywfar.so:${PORTSDIR}/devel/gwenhywfar
+USES= gmake
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" \
@@ -36,18 +32,16 @@ USE_LDCONFIG= yes
GWEN_SHLIB_VER= 60
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOXYGEN MEMDEBUG
-.if ${PORT_OPTIONS:MDOXYGEN}
-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
- dot:${PORTSDIR}/graphics/graphviz
-CONFIGURE_ARGS+=--enable-full-doc
-.endif
+DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen \
+ dot:${PORTSDIR}/graphics/graphviz
+DOXYGEN_CONFIGURE_ENABLE= full-doc
-.if ${PORT_OPTIONS:MMEMDEBUG}
-CONFIGURE_ARGS+=--enable-memtrace
-.endif
+MEMDEBUG_DESC= Enable memory debugger statistic
+MEMDEBUG_CONFIGURE_ENABLE= memtrace
+
+.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e 's|aq_endian\" ==|aq_endian\" =|g' \
@@ -62,13 +56,13 @@ post-build:
post-install:
.if ${PORT_OPTIONS:MDOXYGEN}
- ${MKDIR} ${DOCSDIR}/apidoc
+ ${MKDIR} ${STAGEDIR}${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}
+ ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/apidoc
+ @${FIND} -P ${STAGEDIR}${DOCSDIR} -type f 2>/dev/null | \
+ ${SED} -ne 's|^${STAGEDIR}${PREFIX}/||p' >> ${TMPPLIST}
+ @${FIND} -P -d ${STAGEDIR}${DOCSDIR} -type d 2>/dev/null | \
+ ${SED} -ne 's|^${STAGEDIR}${PREFIX}/|@dirrm |p' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>