mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
8ecbb368fb
These ports were including chinese/ttfm/Makefile.ttf using an absolute path using PORTSDIR instead of a relative one using .CURDIR. In specific use cases, PORTSDIR will fail but .CURDIR always works. As a bonus, this allows <pre> & <post> inclusions to be removed as well. Covered by an old blanket permission (bapt) but only two of these ports have maintainers anyway.
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fireflyttf
|
|
PORTVERSION= 1.3.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= chinese x11-fonts
|
|
MASTER_SITES?= http://firefly.idv.tw/apt/firefly-font/ \
|
|
http://www.study-area.org/apt/firefly-font/
|
|
DISTNAME?= fireflysung-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Firefly TrueType Font is combine of two arphic sung fonts
|
|
|
|
CONFLICTS= zh-opendesktop-fonts-*
|
|
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
TTF= fireflysung.ttf
|
|
PLIST_FILES= ${FONTSDIR_REL}/local.conf-sung
|
|
|
|
OPTIONS_DEFAULT+=LGJ_FONT
|
|
|
|
.include "${.CURDIR}/../ttfm/Makefile.ttf"
|
|
|
|
OPTIONS_DEFINE+=LGJ_FONT
|
|
LGJ_FONT_DESC= Patch for Taiwan horn
|
|
|
|
.if ${PORT_OPTIONS:MLGJ_FONT}
|
|
PKGNAMESUFFIX+= -LGJ
|
|
MASTER_SITES= http://edt1023.sayya.org/fonts/
|
|
DISTNAME= fireflysung-1.3.0p1
|
|
.endif
|
|
|
|
post-extract:
|
|
.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} ${STAGEDIR}${FONTSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${TTF} ${STAGEDIR}${FONTSDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${STAGEDIR}${FONTSDIR}
|
|
|
|
.include <bsd.port.mk>
|