freebsd-ports/chinese/opendesktop-fonts/Makefile
Stefan Eßer 819f25b36d */*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
2021-10-29 11:50:18 +02:00

35 lines
945 B
Makefile

# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
PORTNAME= opendesktop-fonts
PORTVERSION= 1.4.2
PORTREVISION= 6
CATEGORIES= chinese x11-fonts
MASTER_SITES?= LOCAL/chinsan/fonts
MAINTAINER= ports@FreeBSD.org
COMMENT= Ming and Kai face of OpenDesktop fonts
CONFLICTS= zh-fireflyttf
DIST_SUBDIR= OpenFonts
NO_BUILD= yes
NO_ARCH= 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-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>