aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libwmf
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2014-04-23 02:40:24 +0800
committerrene <rene@FreeBSD.org>2014-04-23 02:40:24 +0800
commit2c7772edfd81a843daf567c18c7837303cb66c90 (patch)
treec431c368646c3010581d9a9b21167d9046cc0e6b /graphics/libwmf
parent6a7bb20bffbcaf6ff81f423bdedf04ce3a1cd734 (diff)
downloadfreebsd-ports-gnome-2c7772edfd81a843daf567c18c7837303cb66c90.tar.gz
freebsd-ports-gnome-2c7772edfd81a843daf567c18c7837303cb66c90.tar.zst
freebsd-ports-gnome-2c7772edfd81a843daf567c18c7837303cb66c90.zip
- Fix package build as non-root
- Use option helpers Note that the CONFLICT with the -nox11 variant is not registered anymore. PR: ports/188785 Submitted by: John Hein <john.hein@microsemi.com>
Diffstat (limited to 'graphics/libwmf')
-rw-r--r--graphics/libwmf/Makefile15
1 files changed, 3 insertions, 12 deletions
diff --git a/graphics/libwmf/Makefile b/graphics/libwmf/Makefile
index cbf623b77b35..0a8b33f794f1 100644
--- a/graphics/libwmf/Makefile
+++ b/graphics/libwmf/Makefile
@@ -29,20 +29,12 @@ PORTDOCS= *
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT=X11
+OPTIONS_SUB= yes
+X11_USE= XORG=x11
+X11_CONFIGURE_OFF=--with-x=no
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MX11}
-USE_XORG= x11
-PLIST_SUB+= X11=""
-CONFLICTS+= libwmf-nox11-0.*
-.else
-PKGNAMESUFFIX= -nox11
-CONFIGURE_ARGS+= --with-x=no
-PLIST_SUB+= X11="@comment "
-CONFLICTS+= libwmf-0.*
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|src include fonts doc|src include fonts|g' \
${WRKSRC}/Makefile.in
@@ -57,7 +49,6 @@ post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${TAR} -C ${WRKSRC}/doc --exclude '*Makefile*' -cf - . | \
${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -
- @${CHOWN} -R ${SHAREOWN}:${SHAREGROUP} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>