diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-03 19:06:07 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-03 19:06:07 +0000 |
commit | 41fcfb64f91a016dd7a83d99d115b6efcb10a4f5 (patch) | |
tree | e3772ed0921ca0d8dc861c4b7c1dd440273bc41e /archivers/xarchiver | |
parent | 12c49b0345676cbf2d18b0c8cb021c54fc454847 (diff) | |
download | ports-41fcfb64f91a016dd7a83d99d115b6efcb10a4f5.tar.gz ports-41fcfb64f91a016dd7a83d99d115b6efcb10a4f5.zip |
Reduce unnecessary bsd.port.options.mk inclusions by using OPTIONS helpers.
For liborange, reverse the logic, as I'm pretty sure the OPTIONS were being
used to disable the selected options.
Approved by: portmgr (blanket)
Notes
Notes:
svn path=/head/; revision=360446
Diffstat (limited to 'archivers/xarchiver')
-rw-r--r-- | archivers/xarchiver/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/archivers/xarchiver/Makefile b/archivers/xarchiver/Makefile index c63720235cff..bb0a1658f39f 100644 --- a/archivers/xarchiver/Makefile +++ b/archivers/xarchiver/Makefile @@ -22,20 +22,16 @@ GNU_CONFIGURE= yes INSTALLS_ICONS= yes OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes -.include <bsd.port.options.mk> +NLS_USES= gettext +NLS_CPPFLAGS+= -I${LOCALBASE}/include +NLS_LDFLAGS+= -L${LOCALBASE}/lib -.if !empty(PORT_OPTIONS:MNLS) -USES+= gettext -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -PLIST_SUB+= NLS="" -.else -PLIST_SUB+= NLS="@comment " -.endif +.include <bsd.port.options.mk> post-patch: -.if ! ${PORT_OPTIONS:MDOCS} +.if empty(PORT_OPTIONS:MDOCS) @${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in .endif .if empty(PORT_OPTIONS:MNLS) |