aboutsummaryrefslogtreecommitdiff
path: root/x11/xdialog
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-28 14:04:02 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-28 14:04:02 +0000
commit729fc6f0bc9589cda521577d24be6d4b46332b76 (patch)
tree4d2822fecd7e2f5e86c7a1a08ddaa0b08a08a0ca /x11/xdialog
parentd06e5e9eebcee4bf9cd239a0dfe0c0c917bca25a (diff)
downloadports-729fc6f0bc9589cda521577d24be6d4b46332b76.tar.gz
ports-729fc6f0bc9589cda521577d24be6d4b46332b76.zip
- Add LICENSE
- Switch to USES=localbase - Switch to options helpers
Notes
Notes: svn path=/head/; revision=404644
Diffstat (limited to 'x11/xdialog')
-rw-r--r--x11/xdialog/Makefile23
1 files changed, 8 insertions, 15 deletions
diff --git a/x11/xdialog/Makefile b/x11/xdialog/Makefile
index 09648c7ef8fd..25f7255459e1 100644
--- a/x11/xdialog/Makefile
+++ b/x11/xdialog/Makefile
@@ -11,23 +11,18 @@ DISTNAME= ${PORTNAME:S/x/X/}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Drop in replacement for the "dialog" or "cdialog" programs
-USES= tar:bzip2
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= localbase tar:bzip2
USE_GNOME= gtk12
GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if empty(PORT_OPTIONS:MNLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
-USES+= gettext
-PLIST_SUB+= NLS=""
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
@@ -38,12 +33,10 @@ post-patch:
@${REINPLACE_CMD} -e 's,Xdialog\\-%%version%%,xdialog,' \
${WRKSRC}/doc/Xdialog.man
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/samples
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.png ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${DOCSDIR}/samples
-.endif
.include <bsd.port.mk>