diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2000-02-21 23:17:31 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2000-02-21 23:17:31 +0000 |
commit | eb867c45b8fdb79b20a56bf4800603bcc48df80f (patch) | |
tree | a22c8dc6df8998c0a0fc2e6529a39180e59ab166 /games/xjewel | |
parent | 7939db3b3fd54d25efd46b3ec99b6b03188a2871 (diff) | |
download | ports-eb867c45b8fdb79b20a56bf4800603bcc48df80f.tar.gz ports-eb867c45b8fdb79b20a56bf4800603bcc48df80f.zip |
Notes
Diffstat (limited to 'games/xjewel')
-rw-r--r-- | games/xjewel/Makefile | 4 | ||||
-rw-r--r-- | games/xjewel/pkg-req | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/games/xjewel/Makefile b/games/xjewel/Makefile index ee1a64a05202..6ccc5d377bf6 100644 --- a/games/xjewel/Makefile +++ b/games/xjewel/Makefile @@ -21,6 +21,10 @@ MAN6= xjewel.6 FONTSDIR= lib/X11/fonts/local PLIST_SUB= FONTSDIR=${FONTSDIR} +pre-install: + @${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL + post-install: ${INSTALL_DATA} ${WRKSRC}/bitmaps/seven_seg.pcf.gz ${PREFIX}/${FONTSDIR} @(cd ${PREFIX}/${FONTSDIR} ; mkfontdir) diff --git a/games/xjewel/pkg-req b/games/xjewel/pkg-req new file mode 100644 index 000000000000..c245d9493cc4 --- /dev/null +++ b/games/xjewel/pkg-req @@ -0,0 +1,27 @@ +#!/bin/sh + +if [ "x$1" = "x" ]; then + exit 1; +fi +if [ "x$2" != "xINSTALL" -a "x$2" != "xDEINSTALL" ]; then + exit 1; +fi + +export FONTDIR; FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local + +if [ "$2x" = "INSTALLx" -a ! -d ${FONTDIR} ]; then + echo '**********************************************************************' + echo "****** ${FONTDIR}/ doesn't exist." + echo "****** Creating ${FONTDIR}/" + echo '****** Please upgrade your XFree86 to 3.3.3 or upper,' + echo "****** or add this directory to your /etc/XF86Config's FontPath entry." + echo '**********************************************************************' + mkdir ${FONTDIR} +fi + +echo "**********************************************************" +echo "You should restart X server or do 'xset fp rehash' command" +echo "to enable this update." +echo "**********************************************************" + +exit 0; |