diff options
author | keith <keith@FreeBSD.org> | 2000-12-10 15:12:06 +0800 |
---|---|---|
committer | keith <keith@FreeBSD.org> | 2000-12-10 15:12:06 +0800 |
commit | c3c3393224fed5cebcd233d023ffd58ee99b9629 (patch) | |
tree | 88995e8b1bf358874226e8e928b0a0e23c3404e0 /chinese | |
parent | 24418f4aa00835298424298db84a80a6f5b36926 (diff) | |
download | freebsd-ports-gnome-c3c3393224fed5cebcd233d023ffd58ee99b9629.tar.gz freebsd-ports-gnome-c3c3393224fed5cebcd233d023ffd58ee99b9629.tar.zst freebsd-ports-gnome-c3c3393224fed5cebcd233d023ffd58ee99b9629.zip |
Displays verbose message when install, and also adds
the WITHOUT_X option.
Tested under: current+XFree86-4 & stable+XFree86-3
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/arphicttf/Makefile | 32 | ||||
-rw-r--r-- | chinese/arphicttf/pkg-install | 8 |
2 files changed, 27 insertions, 13 deletions
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 <bsd.port.pre.mk> -.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 |