aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-21 17:24:14 +0800
committerpav <pav@FreeBSD.org>2004-08-21 17:24:14 +0800
commit7b73d663e77f81161e42ec77f91032d520cc4e77 (patch)
treed090e130c8480b5683a83149fc964f12521c941e
parenta0f636076dac80058634ebe3c269eed4a76def55 (diff)
downloadfreebsd-ports-gnome-7b73d663e77f81161e42ec77f91032d520cc4e77.tar.gz
freebsd-ports-gnome-7b73d663e77f81161e42ec77f91032d520cc4e77.tar.zst
freebsd-ports-gnome-7b73d663e77f81161e42ec77f91032d520cc4e77.zip
- Convert to OPTIONS
PR: ports/70684 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
-rw-r--r--chinese/moettf/Makefile39
1 files changed, 11 insertions, 28 deletions
diff --git a/chinese/moettf/Makefile b/chinese/moettf/Makefile
index f3bd90f589fa..6068c8b36d4a 100644
--- a/chinese/moettf/Makefile
+++ b/chinese/moettf/Makefile
@@ -31,42 +31,25 @@ NO_BUILD= yes
SHAREMODE= 644
FONTDIR= ${PREFIX}/share/fonts/TrueType
XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType
-INSTALL_ENV= PKG_PREFIX=${PREFIX} \
- DEFAULT=${DEFAULT} WANT_CJK=${WANT_CJK} WANT_GS=${WANT_GS} \
- WITHOUT_X=${WITHOUT_X}
+
+OPTIONS= CJK "CJK support" off \
+ GS "Ghostscript support" off \
+ X "X Window support" on \
+ DEFAULT "set MOETTF the default font" off
.include <bsd.port.pre.mk>
-.if defined(WANT_CJK)
+INSTALL_ENV= PKG_PREFIX=${PREFIX} \
+ DEFAULT=${WITH_DEFAULT} WANT_CJK=${WITH_CJK} \
+ WANT_GS=${WITH_GS} WITHOUT_X=${WITHOUT_X}
+
+.if defined(WITH_CJK)
RUN_DEPENDS+= bg5latex:${PORTSDIR}/chinese/CJK
.endif
-.if defined(WANT_GS)
+.if defined(WITH_GS)
RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
.endif
-pre-fetch:
-.if defined(WANT_CJK)
- @${ECHO} "CJK support will be added."
-.endif
-.if defined(WANT_GS)
- @${ECHO} "Ghostscript support will be added."
-.endif
-.if defined(WITHOUT_X)
- @${ECHO} "X Window support will NOT be added."
-.endif
-.if defined(DEFAULT)
- @${ECHO} "MOETTF will be set as default font."
-.endif
-.if !defined(WANT_CJK) && !defined(WANT_GS) && !defined(WITHOUT_X) && !defined(DEFAULT)
- @${ECHO} --
- @${ECHO} "Type \"make WANT_CJK=yes\" if you want CJK support."
- @${ECHO} "Type \"make WANT_GS=yes\" if you want Ghostscript support."
- @${ECHO} "Type \"make WITHOUT_X=yes\" if you DONT want X Window support."
- @${ECHO} "Type \"make DEFAULT=yes\" to set MOETTF the default font."
- @${ECHO} "You can use them in combinations."
- @${ECHO} --
-.endif
-
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}