diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-29 20:42:04 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-29 20:42:04 +0800 |
commit | 42034a997e9bbb7dd2e66f6719377aebbe4c7abd (patch) | |
tree | 44dc0e86776cb3ba9a994d27c2ee2b7a934bcdd2 /chinese/fireflyttf | |
parent | ff094d05cd8d446e528963491389242e738416e1 (diff) | |
download | freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.tar.gz freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.tar.zst freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.zip |
Convert to new option framework
Diffstat (limited to 'chinese/fireflyttf')
-rw-r--r-- | chinese/fireflyttf/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/chinese/fireflyttf/Makefile b/chinese/fireflyttf/Makefile index c5108075b643..a7babae564a0 100644 --- a/chinese/fireflyttf/Makefile +++ b/chinese/fireflyttf/Makefile @@ -20,40 +20,41 @@ CONFLICTS= zh-opendesktop-fonts-* NO_BUILD= yes WRKSRC= ${WRKDIR}/${DISTNAME} -OPTIONS= LGJ_FONT "Patch for Taiwan horn" on +OPTIONS_DEFINE= LGJ_FONT X11 +OPTIONS_DEFAULT= LGJ_FONT X11 +LGJ_FONT_DESC= Patch for Taiwan horn TTF= fireflysung.ttf .include <bsd.port.pre.mk> -.if defined(WITHOUT_LGJ_FONT) -.else +.if ${PORT_OPTIONS:MLGJ_FONT} PKGNAMESUFFIX+= -LGJ MASTER_SITES= http://edt1023.sayya.org/fonts/ DISTNAME= fireflysung-1.3.0p1 .endif -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} PLIST_SUB+= X11="" .else PLIST_SUB+= X11="@comment " .endif post-extract: -.if defined(WITHOUT_LGJ_FONT) - @${DO_NADA} -.else +.if ${PORT_OPTIONS:MLGJ_FONT} @${TAR} -C ${WRKSRC} -zxf ${DISTDIR}/fireflysung-1.3.0p1.tar.gz \ fireflysung-1.3.0p1/fireflysung.ttf @${MV} ${WRKSRC}/fireflysung-1.3.0p1/fireflysung.ttf ${WRKSRC} @${RM} -rf ${WRKSRC}/fireflysung-1.3.0p1 +.else + ${DO_NADA} .endif do-install: ${MKDIR} ${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/${TTF} ${FONTSDIR} ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${FONTSDIR} -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${LOCALBASE}/etc/fonts/local.conf .endif |