Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2016 15:17:50 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r425629 - head/net/gtknetcat
Message-ID:  <201611071517.uA7FHoRu090272@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Nov  7 15:17:50 2016
New Revision: 425629
URL: https://svnweb.freebsd.org/changeset/ports/425629

Log:
  - Add LICENSE_FILE
  - Switch to USES=localbase
  - Fix build with disabled NLS
  - Switch to options helpers

Modified:
  head/net/gtknetcat/Makefile

Modified: head/net/gtknetcat/Makefile
==============================================================================
--- head/net/gtknetcat/Makefile	Mon Nov  7 14:42:07 2016	(r425628)
+++ head/net/gtknetcat/Makefile	Mon Nov  7 15:17:50 2016	(r425629)
@@ -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}
 



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