From 95c6fbe7e43198bedd0eb54221a3ac8f3645012d Mon Sep 17 00:00:00 2001 From: Jing-Tang Keith Jang Date: Sun, 10 Dec 2000 07:12:06 +0000 Subject: Displays verbose message when install, and also adds the WITHOUT_X option. Tested under: current+XFree86-4 & stable+XFree86-3 --- chinese/arphicttf/Makefile | 32 ++++++++++++++++++++++++-------- chinese/arphicttf/pkg-install | 8 +++----- 2 files changed, 27 insertions(+), 13 deletions(-) (limited to 'chinese/arphicttf') diff --git a/chinese/arphicttf/Makefile b/chinese/arphicttf/Makefile index c95be1006358..78d8b4292741 100644 --- a/chinese/arphicttf/Makefile +++ b/chinese/arphicttf/Makefile @@ -16,10 +16,6 @@ MAINTAINER= keith@FreeBSD.org RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm -WANT_CJK?= NO -WANT_GS6?= NO -WANT_X?= YES - NO_BUILD= yes SHAREMODE= 644 WRKSRC= ${WRKDIR}/arphic @@ -27,20 +23,40 @@ USE_XLIB= yes FONTDIR= ${PREFIX}/share/fonts/TrueType XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType INSTALL_ENV= PKG_PREFIX=${PREFIX} XFREE86_VERSION=${XFREE86_VERSION} \ - WANT_CJK=${WANT_CJK} WANT_GS6=${WANT_GS6} WANT_X=${WANT_X} + WANT_CJK=${WANT_CJK} WANT_GS6=${WANT_GS6} \ + WITHOUT_X=${WITHOUT_X} .include -.if ${WANT_CJK} != "NO" +.if defined(WANT_CJK) RUN_DEPENDS+= bg5latex:${PORTSDIR}/chinese/CJK .endif -.if ${WANT_GS6} != "NO" +.if defined(WANT_GS6) RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/CJK/CMap/B5pc-H:${PORTSDIR}/chinese/ghostscript6 .endif -.if ${XFREE86_VERSION} == 3 && ${WANT_X} != "NO" +.if ${XFREE86_VERSION} == 3 && !defined(WITHOUT_X) RUN_DEPENDS+= mkfontdir.pl:${PORTSDIR}/x11-servers/XttXF86srv-common .endif +pre-fetch: +.if defined(WANT_CJK) + @${ECHO} "CJK support will be added." +.endif +.if defined(WANT_GS6) + @${ECHO} "Ghostscript6 support will be added." +.endif +.if defined(WITHOUT_X) + @${ECHO} "X Window support will NOT be added." +.endif +.if !defined(WANT_CJK) && !defined(WANT_GS6) && !defined(WITHOUT_X) + @${ECHO} -- + @${ECHO} "Type \"make WANT_CJK=yes\" if you want CJK support." + @${ECHO} "Type \"make WANT_GS6=yes\" if you want Ghostscript6 support." + @${ECHO} "Type \"make WITHOUT_X=yes\" if you DONT want X Window support." + @${ECHO} "You can use them in combinations." + @${ECHO} -- +.endif + do-install: .if !exists(${FONTDIR}) @${MKDIR} ${FONTDIR} diff --git a/chinese/arphicttf/pkg-install b/chinese/arphicttf/pkg-install index 35212ea489b7..246a0ea46816 100644 --- a/chinese/arphicttf/pkg-install +++ b/chinese/arphicttf/pkg-install @@ -13,8 +13,6 @@ FONTS="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf" DEFAULTMING="bsmi00lp.ttf gbsn00lp.ttf" DEFAULTKAI="bkai00mp.ttf gkai00mp.ttf" -[ "X$WANT_X" = "X" ] && WANT_X=YES - if [ ! -x $TTFM ]; then echo "$TTFM not found!" exit 1 @@ -22,11 +20,11 @@ fi rm -f $FONTDIR/$PKGNAME -if [ "$WANT_CJK" = "YES" -o "$WANT_CJK" = "yes" ]; then +if [ "X$WANT_CJK" != "X" ]; then # There's no CJK module now. fi -if [ "$WANT_GS6" = "YES" -o "$WANT_GS6" = "yes" ]; then +if [ "X$WANT_GS6" != "X" ]; then for f in $FONTS; do $TTFM --add ghostscript6 $FONTDIR/$f done @@ -39,7 +37,7 @@ if [ "$WANT_GS6" = "YES" -o "$WANT_GS6" = "yes" ]; then echo "ghostscript6" >> $FONTDIR/$PKGNAME fi -if [ "$WANT_X" = "YES" -o "$WANT_X" = "yes" ]; then +if [ "X$WITHOUT_X" = "X" ]; then for f in $FONTS; do $TTFM --add xttfm $FONTDIR/$f done -- cgit v1.2.3