Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2012 17:36:37 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306279 - head/devel/libchipcard
Message-ID:  <201210221736.q9MHabrb057857@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Mon Oct 22 17:36:37 2012
New Revision: 306279
URL: http://svn.freebsd.org/changeset/ports/306279

Log:
  - Convert to new options framework
  - Generate plist for DOXYGEN option independent of the PORTDOCS macro
    to avoid problems if NOPORTDOCS is defined
  - Remove indefinite article from COMMENT
  - Remove LICENSE_FILE, LGPL21 is in Templates/Licenses
  - Drop ABI version numbers from LIB_DEPENDS
  - Trim Makefile header
  
  Approved by:	makc (mentor)
  Feature safe:	yes

Modified:
  head/devel/libchipcard/Makefile   (contents, props changed)

Modified: head/devel/libchipcard/Makefile
==============================================================================
--- head/devel/libchipcard/Makefile	Mon Oct 22 17:33:30 2012	(r306278)
+++ head/devel/libchipcard/Makefile	Mon Oct 22 17:36:37 2012	(r306279)
@@ -1,9 +1,5 @@
-# Ports collection makefile for: LibChipCard
-# Date created:                  19 January 2003
-# Whom:                          Martin Preuss <martin@libchipcard.de>
-#
+# Created by: Martin Preuss <martin@libchipcard.de>
 # $FreeBSD$
-#
 
 PORTNAME=	libchipcard
 PORTVERSION=	5.0.2
@@ -12,20 +8,20 @@ CATEGORIES=	devel
 MASTER_SITES=	http://www.aquamaniac.de/sites/download/download.php?package=02&release=26&file=01&dummy=/
 
 MAINTAINER=	jhale@FreeBSD.org
-COMMENT=	A library for easy access to chipcards
+COMMENT=	Library for easy access to chipcards
 
 LICENSE=	LGPL21
-LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	pcsclite.1:${PORTSDIR}/devel/pcsc-lite \
-		gwenhywfar.63:${PORTSDIR}/devel/gwenhywfar
+LIB_DEPENDS=	pcsclite:${PORTSDIR}/devel/pcsc-lite \
+		gwenhywfar:${PORTSDIR}/devel/gwenhywfar
 
 USE_AUTOTOOLS=	libtool
 USE_GMAKE=	yes
 USE_OPENSSL=	yes
 
-OPTIONS=	APIDOC "Full API documentation (requires Doxygen)" off \
-		MEMDEBUG "Enable memory debugger statistic" off
+OPTIONS_DEFINE=	DOXYGEN MEMDEBUG
+
+MEMDEBUG_DESC=	Enable memory debugger statistic
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV+=	PTHREAD_LIBS="${PTHREAD_LIBS}" aq_distrib_name="FreeBSD"
@@ -43,14 +39,13 @@ GWEN_SHLIB_VER=	60
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_APIDOC)
+.if ${PORT_OPTIONS:MDOXYGEN}
 BUILD_DEPENDS+=	doxygen:${PORTSDIR}/devel/doxygen \
 		dot:${PORTSDIR}/graphics/graphviz
 CONFIGURE_ARGS+=--enable-full-doc
-PORTDOCS=	apidoc
 .endif
 
-.if defined(WITH_MEMDEBUG)
+.if ${PORT_OPTIONS:MMEMDEBUG}
 CONFIGURE_ARGS+=--enable-memtrace
 .endif
 
@@ -61,15 +56,19 @@ post-patch:
 		${WRKSRC}/Makefile.in
 
 post-build:
-.if defined(WITH_APIDOC)
+.if ${PORT_OPTIONS:MDOXYGEN}
 	@cd ${WRKSRC} && ${GMAKE} srcdoc
 .endif
 
 post-install:
-.if defined(WITH_APIDOC)
+.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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210221736.q9MHabrb057857>