diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-15 05:45:23 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-15 05:45:23 +0800 |
commit | 81c01113b9034fcecde625a1f12a9edc8d5c304e (patch) | |
tree | 6ab5878a4f1593abf8c546813c256ecc4ce5eef5 /x11 | |
parent | c711ab1b3232246e0dbf2281a2bdda30d0d1970a (diff) | |
download | freebsd-ports-gnome-81c01113b9034fcecde625a1f12a9edc8d5c304e.tar.gz freebsd-ports-gnome-81c01113b9034fcecde625a1f12a9edc8d5c304e.tar.zst freebsd-ports-gnome-81c01113b9034fcecde625a1f12a9edc8d5c304e.zip |
- Switch to options helpers
- Fix build without NLS
Approved by: portmgr blanket
Diffstat (limited to 'x11')
-rw-r--r-- | x11/lxrandr/Makefile | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/x11/lxrandr/Makefile b/x11/lxrandr/Makefile index 51e00d06db48..fb80a6ca1786 100644 --- a/x11/lxrandr/Makefile +++ b/x11/lxrandr/Makefile @@ -23,24 +23,16 @@ OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_USES= gettext +NLS_USES_OFF= gettext-tools +NLS_CPPFLAGS= -I${LOCALBASE}/include +NLS_LDFLAGS= -L${LOCALBASE}/lib -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MNLS} -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -.endif - -post-patch: -.if ! ${PORT_OPTIONS:MNLS} +post-patch-NLS-off: @${REINPLACE_CMD} -e 's|po man|man|' \ ${WRKSRC}/Makefile.in -.endif -post-install: -.if ${PORT_OPTIONS:MDOCS} +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.endif .include <bsd.port.mk> |