summaryrefslogtreecommitdiff
path: root/sysutils/wmcube
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-06-02 04:12:13 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-06-02 04:12:13 +0000
commit0d0a5e94614e98984c1c31ce3b6a2eb0f0912387 (patch)
treea606545e85ef7401f0e9ba16b02c2b19b311f67e /sysutils/wmcube
parentFix typo (diff)
- Install additional 3d objects
- Be verbose during installation - Add PKGMESSAGE with run instructions Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=43421
Diffstat (limited to 'sysutils/wmcube')
-rw-r--r--sysutils/wmcube/Makefile11
-rw-r--r--sysutils/wmcube/pkg-message10
-rw-r--r--sysutils/wmcube/pkg-plist35
3 files changed, 56 insertions, 0 deletions
diff --git a/sysutils/wmcube/Makefile b/sysutils/wmcube/Makefile
index 0d2dc566b14a..6a1bcbbeffb8 100644
--- a/sysutils/wmcube/Makefile
+++ b/sysutils/wmcube/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= pat@databits.net
WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME}
USE_X_PREFIX= yes
USE_GMAKE= yes
+USE_XPM= yes
do-configure:
@${SED} -e "s|/usr/X11R6/|${X11BASE}/|" \
@@ -22,12 +23,22 @@ do-configure:
${WRKSRC}/Makefile
post-install:
+.for file in *.wmc
+ @${ECHO} "===> Installing extra 3d objects in ${PREFIX}/share/${PORTNAME}"
+ @${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 555 \
+ ${PREFIX}/share/${PORTNAME}
+ @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/3dObjects/${file} \
+ ${PREFIX}/share/${PORTNAME}
+.endfor
.ifndef(NOPORTDOCS)
+ @${ECHO} "===> Installing README in ${PREFIX}/share/doc/${PORTNAME}"
+ @${ECHO} "===> Please Read pkg-descr and README for usage information"
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 555 \
${PREFIX}/share/doc/${PORTNAME}
.for file in CHANGES COPYING README TODO
@${INSTALL_DATA} ${WRKSRC}/../${file} ${PREFIX}/share/doc/${PORTNAME}
.endfor
.endif # !NOPORTDOCS
+ ${SED} -e "s|/usr/X11R6/|${PREFIX}|" ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/sysutils/wmcube/pkg-message b/sysutils/wmcube/pkg-message
new file mode 100644
index 000000000000..ab4588324d20
--- /dev/null
+++ b/sysutils/wmcube/pkg-message
@@ -0,0 +1,10 @@
+The extra 3d objects are located in:
+ /usr/X11R6/share/wmcube
+
+To run wmcube type:
+ wmcube -o /usr/X11R6/share/wmcube &
+
+Do not forget to replace /usr/X11R6 with your appropriate installation
+prefix if you do not use the port's system default.
+
+(default: /usr/X11R6/)
diff --git a/sysutils/wmcube/pkg-plist b/sysutils/wmcube/pkg-plist
index 067d58cb9022..8da4b94a74be 100644
--- a/sysutils/wmcube/pkg-plist
+++ b/sysutils/wmcube/pkg-plist
@@ -1,6 +1,41 @@
bin/wmcube
+share/wmcube/2planes-solid.wmc
+share/wmcube/4d.wmc
+share/wmcube/8star-small.wmc
+share/wmcube/8star.wmc
+share/wmcube/ball-solid.wmc
+share/wmcube/ball.wmc
+share/wmcube/celtic.wmc
+share/wmcube/cross.wmc
+share/wmcube/cross2-solid.wmc
+share/wmcube/cross2.wmc
+share/wmcube/cross3-solid.wmc
+share/wmcube/cross3.wmc
+share/wmcube/cross4-solid.wmc
+share/wmcube/crystal.wmc
+share/wmcube/cube-solid.wmc
+share/wmcube/cube.wmc
+share/wmcube/diamond.wmc
+share/wmcube/dice-solid.wmc
+share/wmcube/e.wmc
+share/wmcube/e2.wmc
+share/wmcube/foo.wmc
+share/wmcube/gnustep.wmc
+share/wmcube/hyperpyramid.wmc
+share/wmcube/jeep.wmc
+share/wmcube/multicube.wmc
+share/wmcube/peace.wmc
+share/wmcube/pyramid.wmc
+share/wmcube/radioactive.wmc
+share/wmcube/shield.wmc
+share/wmcube/spaceshuttle.wmc
+share/wmcube/spiral.wmc
+share/wmcube/star.wmc
+share/wmcube/starcube.wmc
+share/wmcube/wmlogo.wmc
%%PORTDOCS%%share/doc/wmcube/CHANGES
%%PORTDOCS%%share/doc/wmcube/COPYING
%%PORTDOCS%%share/doc/wmcube/README
%%PORTDOCS%%share/doc/wmcube/TODO
+@dirrm share/wmcube
%%PORTDOCS%%@dirrm share/doc/wmcube