diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-07 23:17:50 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-07 23:17:50 +0800 |
commit | c2012ab5cfac8f8a2bf1be88eea6fdb172ed0a31 (patch) | |
tree | 6fa8861857ace3d92eaf455602239332e9d51901 /net/gtknetcat | |
parent | 5a776d57c7b9a2dde770ad71cabe6c33a768bbf4 (diff) | |
download | freebsd-ports-gnome-c2012ab5cfac8f8a2bf1be88eea6fdb172ed0a31.tar.gz freebsd-ports-gnome-c2012ab5cfac8f8a2bf1be88eea6fdb172ed0a31.tar.zst freebsd-ports-gnome-c2012ab5cfac8f8a2bf1be88eea6fdb172ed0a31.zip |
- Add LICENSE_FILE
- Switch to USES=localbase
- Fix build with disabled NLS
- Switch to options helpers
Diffstat (limited to 'net/gtknetcat')
-rw-r--r-- | net/gtknetcat/Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/net/gtknetcat/Makefile b/net/gtknetcat/Makefile index f1ce249387d7..981eca374ece 100644 --- a/net/gtknetcat/Makefile +++ b/net/gtknetcat/Makefile @@ -15,38 +15,36 @@ MAINTAINER= ports@FreeBSD.org COMMENT= GTK GUI for netcat LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser -USES= gmake python +USES= gmake localbase python USE_GNOME= intlhack pygtk2 GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - PORTDOCS= AUTHORS README OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_USES= gettext - -.include <bsd.port.options.mk> +NLS_USES_OFF= gettext-tools +NLS_CONFIGURE_ENABLE= nls post-patch: @${REINPLACE_CMD} -e 's|Icon=|Icon=${PORTNAME}|' \ ${WRKSRC}/${PORTNAME}.desktop -.if ! ${PORT_OPTIONS:MNLS} +post-patch-NLS-off: @${REINPLACE_CMD} -e 's|src po|src|' \ ${WRKSRC}/Makefile.in -.endif post-install: ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |