aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/arphicttf/Makefile
diff options
context:
space:
mode:
authorkeith <keith@FreeBSD.org>2000-12-10 15:12:06 +0800
committerkeith <keith@FreeBSD.org>2000-12-10 15:12:06 +0800
commitc3c3393224fed5cebcd233d023ffd58ee99b9629 (patch)
tree88995e8b1bf358874226e8e928b0a0e23c3404e0 /chinese/arphicttf/Makefile
parent24418f4aa00835298424298db84a80a6f5b36926 (diff)
downloadfreebsd-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/arphicttf/Makefile')
-rw-r--r--chinese/arphicttf/Makefile32
1 files changed, 24 insertions, 8 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}