From eb867c45b8fdb79b20a56bf4800603bcc48df80f Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Mon, 21 Feb 2000 23:17:31 +0000 Subject: Create X11 font directory if it does not exist. PR: ports/16868 Submitted by: KATO Tsuguru --- games/xjewel/Makefile | 4 ++++ games/xjewel/pkg-req | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 games/xjewel/pkg-req (limited to 'games') 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; -- cgit v1.2.3