diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-12-25 22:43:02 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-12-25 22:43:02 +0800 |
commit | 69dd93735394e0c3c6bde4108ea4cd42c9c2807f (patch) | |
tree | 8b4dd733bac6cfc91856eb71853a0b1141374e72 /cad | |
parent | cc2d0358db6472898abbee12a64fe590a51f11d1 (diff) | |
download | freebsd-ports-gnome-69dd93735394e0c3c6bde4108ea4cd42c9c2807f.tar.gz freebsd-ports-gnome-69dd93735394e0c3c6bde4108ea4cd42c9c2807f.tar.zst freebsd-ports-gnome-69dd93735394e0c3c6bde4108ea4cd42c9c2807f.zip |
- Clarify LICENSE
- Add LICENSE_FILE
- Switch to USES=localbase
- Switch to options helpers
Diffstat (limited to 'cad')
-rw-r--r-- | cad/gerbv/Makefile | 16 |
1 files 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" \) \ |