aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--korean/unfonts-ttf/Makefile18
-rw-r--r--korean/unfonts-ttf/distinfo1
2 files changed, 19 insertions, 0 deletions
diff --git a/korean/unfonts-ttf/Makefile b/korean/unfonts-ttf/Makefile
index aee3553b2bce..73169f9f4ef9 100644
--- a/korean/unfonts-ttf/Makefile
+++ b/korean/unfonts-ttf/Makefile
@@ -6,6 +6,7 @@
PORTNAME= unfonts
PORTVERSION= 20030907
+PORTREVISION= 1
CATEGORIES= korean x11-fonts
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.freebsd.org/~perky/distfiles/
@@ -13,9 +14,14 @@ MASTER_SITE_SUBDIR= perky
PKGNAMESUFFIX= -ttf
DISTNAME= UnFonts${PKGNAMESUFFIX}-${PORTVERSION}
+PATCH_SITES= ${MASTER_SITES}
+PATCHFILES= UnFonts-ooofontname-patch.tar.gz
+
MAINTAINER= perky@FreeBSD.org
COMMENT= GPL'd Korean TrueType Fonts by UN Koaunghi
+PATCH_DEPENDS= bspatch:${PORTSDIR}/misc/bsdiff
+
USE_X_PREFIX= yes
USE_BZIP2= yes
NO_BUILD= yes
@@ -24,6 +30,18 @@ FONTLIST= UnBatang UnBatangBold UnBom UnDotum UnDotumBold UnGraphic \
UnGungseo UnPen UnPenheulim UnPilgi UnPilgiBold UnShinmun \
UnYetgul
+post-extract:
+ ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/UnFonts-ooofontname-patch.tar.gz
+
+do-patch:
+ cd ${WRKSRC} && for FONTNAME in ${FONTLIST}; do \
+ if [ -f $$FONTNAME-ooofontname.diff ]; then \
+ ${CP} $$FONTNAME.ttf $$FONTNAME.orig.ttf; \
+ ${LOCALBASE}/bin/bspatch $$FONTNAME.orig.ttf \
+ $$FONTNAME.ttf $$FONTNAME-ooofontname.diff; \
+ fi; \
+ done
+
do-install:
${MKDIR} ${FONTDIR}
.for FONTNAME in ${FONTLIST}
diff --git a/korean/unfonts-ttf/distinfo b/korean/unfonts-ttf/distinfo
index 55c790630517..9fa190e1e206 100644
--- a/korean/unfonts-ttf/distinfo
+++ b/korean/unfonts-ttf/distinfo
@@ -1 +1,2 @@
MD5 (UnFonts-ttf-20030907.tar.bz2) = 5e071178638410edfde689c9309d4661
+MD5 (UnFonts-ooofontname-patch.tar.gz) = 325cbdce9e94a5b7331c3e01151a2eb5