From 8e0d3922b96198ebe24c985a8f7b3f5a9502b617 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 25 Dec 2015 14:43:02 +0000 Subject: [PATCH] - Clarify LICENSE - Add LICENSE_FILE - Switch to USES=localbase - Switch to options helpers --- cad/gerbv/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cad/gerbv/Makefile b/cad/gerbv/Makefile index 2c19516ac1fa..e320c5ce64ed 100644 --- a/cad/gerbv/Makefile +++ b/cad/gerbv/Makefile @@ -10,11 +10,10 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Gerber file viewer -LICENSE= GPLv2 +LICENSE= GPLv2 # or later +LICENSE_FILE= ${WRKSRC}/COPYING -OPTIONS_DEFINE= DOCS EXAMPLES - -USES= autoreconf desktop-file-utils gmake libtool pathfix pkgconfig +USES= autoreconf desktop-file-utils gmake libtool localbase pathfix pkgconfig USE_GNOME= gtk20 GNU_CONFIGURE= yes CONFIGURE_ENV= ac_aux_dir="." @@ -22,11 +21,10 @@ USE_LDCONFIG= yes INSTALLS_ICONS= yes INSTALL_TARGET= install-strip -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - PLIST_SUB= VERSION="${PORTVERSION}" +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e \ 's|^AM_NLS|#AM_NLS| ; \ @@ -54,6 +52,8 @@ post-install: (cd ${WRKSRC}/desktop && ${INSTALL_DATA} gerbv-${i}.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/gerbv.png) .endfor + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.fig *.txt \ ${STAGEDIR}${DOCSDIR}) @@ -63,6 +63,8 @@ post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR}/eagle (cd ${WRKSRC}/doc/eagle && ${INSTALL_DATA} *.pl *.txt \ ${STAGEDIR}${DOCSDIR}/eagle) + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @(cd ${WRKSRC}/example && ${FIND} . \ ! \( -name "*Makefile*" -or -name ".cvsignore" \) \