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.
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= opendesktop-fonts
|
|
PORTVERSION= 1.4.2
|
|
PORTREVISION= 3
|
|
CATEGORIES= chinese x11-fonts
|
|
MASTER_SITES?= ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/ \
|
|
LOCAL/chinsan/fonts
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Ming and Kai face of OpenDesktop fonts
|
|
|
|
CONFLICTS= zh-fireflyttf-[0-9]*
|
|
DIST_SUBDIR= OpenFonts
|
|
NO_BUILD= yes
|
|
|
|
TTF= odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf odosung.ttc
|
|
PLIST_FILES= ${FONTSDIR_REL}/local.conf-odo
|
|
|
|
.include "${.CURDIR}/../ttfm/Makefile.ttf"
|
|
|
|
post-extract:
|
|
@${CHMOD} 0755 ${WRKSRC}/license
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},; s,opendesktop,,g' \
|
|
${WRKSRC}/FAPIcidfmap.zh_CN ${WRKSRC}/FAPIcidfmap.zh_TW \
|
|
${WRKSRC}/cidfmap.zh_CN ${WRKSRC}/cidfmap.zh_TW
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${FONTSDIR}
|
|
.for i in ${TTF}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${FONTSDIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${STAGEDIR}${FONTSDIR}
|
|
|
|
.include <bsd.port.mk>
|