aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/opendesktop-fonts/Makefile
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-03-18 14:11:49 +0800
committerrafan <rafan@FreeBSD.org>2007-03-18 14:11:49 +0800
commit70555a0cc2883bcff2b950c429d87a64913efd86 (patch)
treea1685dde0a6aa86b3862dd3c2fb2f27cd05aac6a /chinese/opendesktop-fonts/Makefile
parent4032b51bec119c4ee8e6095cf621008b5b5be7c1 (diff)
downloadfreebsd-ports-gnome-70555a0cc2883bcff2b950c429d87a64913efd86.tar.gz
freebsd-ports-gnome-70555a0cc2883bcff2b950c429d87a64913efd86.tar.zst
freebsd-ports-gnome-70555a0cc2883bcff2b950c429d87a64913efd86.zip
- Update to 1.4.2
- Rename to opendesktop-fonts - Add CONFLICTS since opendesktop-fonts have duplicate font face with fireflyttf PR: ports/110069 Submitted by: chinsan (maintainer)
Diffstat (limited to 'chinese/opendesktop-fonts/Makefile')
-rw-r--r--chinese/opendesktop-fonts/Makefile50
1 files changed, 21 insertions, 29 deletions
diff --git a/chinese/opendesktop-fonts/Makefile b/chinese/opendesktop-fonts/Makefile
index 0a697dd6f226..0fb10eef6397 100644
--- a/chinese/opendesktop-fonts/Makefile
+++ b/chinese/opendesktop-fonts/Makefile
@@ -1,36 +1,27 @@
-# New ports collection makefile for: firefly TrueType Font
+# New ports collection makefile for: OpenDesktop.Org.tw Font
# Date created: 2 Sep 2004
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#
-PORTNAME= fireflyttf
-PORTVERSION= 1.3.0
-PORTREVISION= 1
+PORTNAME= opendesktop-fonts
+PORTVERSION= 1.4.2
CATEGORIES= chinese x11-fonts
-MASTER_SITES?= http://firefly.idv.tw/apt/firefly-font/ \
- http://www.study-area.org/apt/firefly-font/
-DISTNAME?= fireflysung-${PORTVERSION}
+MASTER_SITES?= ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/ \
+ LOCAL/chinsan/fonts
MAINTAINER= chinsan@FreeBSD.org
-COMMENT= Firefly TrueType Font is combine of two arphic sung fonts
+COMMENT= Ming and Kai face of OpenDesktop fonts
+CONFLICTS= zh-fireflyttf-*
+DIST_SUBDIR= OpenFonts
NO_BUILD= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}
-OPTIONS= LGJ_FONT "Patch for Taiwan horn" on
-TTF= fireflysung.ttf
+TTF= odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf odosung.ttc
.include <bsd.port.pre.mk>
-.if defined(WITHOUT_LGJ_FONT)
-.else
-PKGNAMESUFFIX+= -LGJ
-MASTER_SITES= http://edt1023.sayya.org/fonts/
-DISTNAME= fireflysung-1.3.0p1
-.endif
-
.if !defined(WITHOUT_X11)
PLIST_SUB+= X11=""
.else
@@ -38,21 +29,22 @@ PLIST_SUB+= X11="@comment "
.endif
post-extract:
-.if defined(WITHOUT_LGJ_FONT)
- @${DO_NADA}
-.else
- @${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
-.endif
+ @${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} ${FONTSDIR}
- ${INSTALL_DATA} ${WRKSRC}/${TTF} ${FONTSDIR}
- ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${FONTSDIR}
+.for i in ${TTF}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${FONTSDIR}
+.endfor
+ ${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${FONTSDIR}
.if !defined(WITHOUT_X11)
- ${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${X11BASE}/etc/fonts/local.conf
+ ${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${X11BASE}/etc/fonts/local.conf
.endif
.include "${PORTSDIR}/chinese/ttfm/Makefile.ttf"