aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-02-23 01:01:03 +0800
committergarga <garga@FreeBSD.org>2006-02-23 01:01:03 +0800
commit2aad1b5d1a9ac74231a816700be8933c21c7eb0a (patch)
treeb399e59161b836567d3d2eeaef854bb9e8de4b77
parent5a570e3a9549acb08eb19475c334816d0b83c844 (diff)
downloadfreebsd-ports-gnome-2aad1b5d1a9ac74231a816700be8933c21c7eb0a.tar.gz
freebsd-ports-gnome-2aad1b5d1a9ac74231a816700be8933c21c7eb0a.tar.zst
freebsd-ports-gnome-2aad1b5d1a9ac74231a816700be8933c21c7eb0a.zip
- Add more MASTER_SITES
- Rework Makefile PR: ports/93063 Submitted by: maintainer
-rw-r--r--x11-fonts/farsifonts/Makefile7
-rw-r--r--x11-fonts/farsifonts/pkg-plist24
2 files changed, 17 insertions, 14 deletions
diff --git a/x11-fonts/farsifonts/Makefile b/x11-fonts/farsifonts/Makefile
index d266a4e3233e..a6f65146b1cb 100644
--- a/x11-fonts/farsifonts/Makefile
+++ b/x11-fonts/farsifonts/Makefile
@@ -8,7 +8,8 @@
PORTNAME= farsifonts
PORTVERSION= 0.4
CATEGORIES= x11-fonts
-MASTER_SITES= http://www.farsiweb.info/font/
+MASTER_SITES= http://www.farsiweb.info/font/ \
+ http://www.unixified.net/distfiles/
MAINTAINER= babak@farrokhi.net
COMMENT= Standard set of Unicode Persian fonts
@@ -17,6 +18,8 @@ BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir
USE_X_PREFIX= yes
USE_ZIP= yes
+PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
+FONTSDIR?= ${PREFIX}/lib/X11/fonts/${PORTNAME}
do-build:
@ttmkfdir -c -d ${WRKSRC} > ${WRKSRC}/fonts.dir
@@ -24,6 +27,6 @@ do-build:
do-install:
@${MKDIR} ${PREFIX}/lib/X11/fonts/farsifonts
@${INSTALL_DATA} ${WRKSRC}/*.ttf ${PREFIX}/lib/X11/fonts/farsifonts
- @${INSTALL_DATA} ${WRKSRC}/*.dir ${PREFIX}/lib/X11/fonts/farsifonts
+ @${INSTALL_DATA} ${WRKSRC}/fonts.dir ${PREFIX}/lib/X11/fonts/farsifonts
.include <bsd.port.mk>
diff --git a/x11-fonts/farsifonts/pkg-plist b/x11-fonts/farsifonts/pkg-plist
index b240904b5b8c..7ad65ddab728 100644
--- a/x11-fonts/farsifonts/pkg-plist
+++ b/x11-fonts/farsifonts/pkg-plist
@@ -1,12 +1,12 @@
-lib/X11/fonts/farsifonts/elham.ttf
-lib/X11/fonts/farsifonts/fonts.dir
-lib/X11/fonts/farsifonts/homa.ttf
-lib/X11/fonts/farsifonts/koodak.ttf
-lib/X11/fonts/farsifonts/nazli.ttf
-lib/X11/fonts/farsifonts/nazlib.ttf
-lib/X11/fonts/farsifonts/roya.ttf
-lib/X11/fonts/farsifonts/royab.ttf
-lib/X11/fonts/farsifonts/terafik.ttf
-lib/X11/fonts/farsifonts/terafikb.ttf
-lib/X11/fonts/farsifonts/titr.ttf
-@dirrm lib/X11/fonts/farsifonts
+%%FONTSDIR%%/elham.ttf
+%%FONTSDIR%%/fonts.dir
+%%FONTSDIR%%/homa.ttf
+%%FONTSDIR%%/koodak.ttf
+%%FONTSDIR%%/nazli.ttf
+%%FONTSDIR%%/nazlib.ttf
+%%FONTSDIR%%/roya.ttf
+%%FONTSDIR%%/royab.ttf
+%%FONTSDIR%%/terafik.ttf
+%%FONTSDIR%%/terafikb.ttf
+%%FONTSDIR%%/titr.ttf
+@dirrm %%FONTSDIR%%