aboutsummaryrefslogtreecommitdiff
path: root/x11/dgs/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-04-16 11:43:33 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-04-16 11:43:33 +0000
commit7542c553b212d33288a3eb538dc0f01c83eb6b8c (patch)
tree61c0e25afbc4a32da430dc3b67dc88a1f35769a6 /x11/dgs/Makefile
parenta21ae56985c872493f6e744e6d2df3f13058420e (diff)
downloadports-7542c553b212d33288a3eb538dc0f01c83eb6b8c.tar.gz
ports-7542c553b212d33288a3eb538dc0f01c83eb6b8c.zip
Notes
Diffstat (limited to 'x11/dgs/Makefile')
-rw-r--r--x11/dgs/Makefile38
1 files changed, 33 insertions, 5 deletions
diff --git a/x11/dgs/Makefile b/x11/dgs/Makefile
index 375545e22d56..64594404f722 100644
--- a/x11/dgs/Makefile
+++ b/x11/dgs/Makefile
@@ -27,14 +27,12 @@ GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-0.5.9
MAN1= dgs.1 dpsnx.agent.1
-MANN= dpsexec.man makepsres.man xepsf.man
+MANN= dpsexec.man xepsf.man
+INSTALLDIRS= gs DPS/clients/pswrap \
+ DPS/demos/dpsexec DPS/demos/xepsf
.include <bsd.port.pre.mk>
-.if ${X_WINDOW_SYSTEM:L} != xfree86-3
-IGNORE= is included in XFree86 4.x and above
-.endif
-
pre-fetch:
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
@${ECHO} ""
@@ -47,4 +45,34 @@ pre-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} \
${REINPLACE_CMD} -e 's|manm|mann|g'
+.if ${X_WINDOW_SYSTEM:L} != xfree86-4
+INSTALLDIRS+= DPS/clients/makepsres DPS/demos/texteroids
+MANN+= makepsres.man
+.endif
+
+.if ${X_WINDOW_SYSTEM:L} == xfree86-3
+PLIST_SUB+= WITH_XORG=""
+PLIST_SUB+= WITH_XFREE4=""
+.else
+PLIST_SUB+= WITH_XORG="@comment "
+
+.if ${X_WINDOW_SYSTEM:L} == xorg
+INSTALLDIRS+= DPS/lib/dpstk DPS/lib/psres
+PLIST_SUB+= WITH_XFREE4=""
+.else
+PLIST_SUB+= WITH_XFREE4="@comment "
+.endif
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/dgs-config ${PREFIX}/bin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/dpsnx.agent ${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/path_dps.m4 ${PREFIX}/share/aclocal/
+ ${INSTALL_MAN} ${WRKSRC}/dpsnx.agent.1 ${PREFIX}/man/man1/
+.for i in ${INSTALLDIRS}
+ @(cd ${INSTALL_WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} \
+ ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+.endfor
+
+.endif
+
.include <bsd.port.post.mk>