summaryrefslogtreecommitdiff
path: root/x11/printext
diff options
context:
space:
mode:
authorDejan Lesjak <lesi@FreeBSD.org>2005-03-18 20:30:04 +0000
committerDejan Lesjak <lesi@FreeBSD.org>2005-03-18 20:30:04 +0000
commita28953dc2d173c9d923c1ca57d3cd76fe74ed188 (patch)
tree595ad1e836116a7629ba5f3b1c1f7a9971963f25 /x11/printext
parentMark grip port as fixed for recent vulnerability. (diff)
Generate proper package listing when using new mtree from xorg-server port.
Notes
Notes: svn path=/head/; revision=131587
Diffstat (limited to 'x11/printext')
-rw-r--r--x11/printext/Makefile11
-rw-r--r--x11/printext/pkg-plist1
2 files changed, 11 insertions, 1 deletions
diff --git a/x11/printext/Makefile b/x11/printext/Makefile
index a445056b7be6..f3a7aee0048e 100644
--- a/x11/printext/Makefile
+++ b/x11/printext/Makefile
@@ -27,7 +27,16 @@ NO_BUILD= yes
DEST=${PREFIX}/include/X11/extensions
do-install:
+ ${MKDIR} ${DEST}
${INSTALL_DATA} ${WRKSRC}/Print.h ${DEST}
${INSTALL_DATA} ${WRKSRC}/Printstr.h ${DEST}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${X_WINDOW_SYSTEM:L} == xorg
+PLIST_SUB+= NEWMTREE=""
+.else
+PLIST_SUB+= NEWMTREE="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11/printext/pkg-plist b/x11/printext/pkg-plist
index 8b1ac7295114..1b313ce50faf 100644
--- a/x11/printext/pkg-plist
+++ b/x11/printext/pkg-plist
@@ -1,2 +1,3 @@
include/X11/extensions/Print.h
include/X11/extensions/Printstr.h
+%%NEWMTREE%%@unexec rmdir %D/include/X11/extensions 2>/dev/null || true