diff options
author | rafan <rafan@FreeBSD.org> | 2008-06-07 00:16:30 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2008-06-07 00:16:30 +0800 |
commit | 71212d676d9e763716474b9c4374419f879f0dbe (patch) | |
tree | f719c193f63c78bece4be209a9cfa7f140e6347a /chinese | |
parent | a5d311a0d51361df98bea6f559f0cb9a915e8c34 (diff) | |
download | freebsd-ports-gnome-71212d676d9e763716474b9c4374419f879f0dbe.tar.gz freebsd-ports-gnome-71212d676d9e763716474b9c4374419f879f0dbe.tar.zst freebsd-ports-gnome-71212d676d9e763716474b9c4374419f879f0dbe.zip |
- Respect PREFIX and LOCALBASE
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/ttfm/Makefile | 5 | ||||
-rw-r--r-- | chinese/ttfm/files/patch-ttfm.sh | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/chinese/ttfm/Makefile b/chinese/ttfm/Makefile index b2a3047c0587..1207a360f0ab 100644 --- a/chinese/ttfm/Makefile +++ b/chinese/ttfm/Makefile @@ -18,6 +18,8 @@ RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 +MAKE_ARGS= FREETYPE_BASE=${LOCALBASE:Q} + PORTDOCS= README USAGE MAN1= ttfm.sh.1 @@ -25,7 +27,8 @@ post-patch: @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \ -e 's,%%PREFIX%%,${PREFIX},' \ ${WRKSRC}/modules/gscjk.ttfm \ - ${WRKSRC}/modules/xttfm.ttfm + ${WRKSRC}/modules/xttfm.ttfm \ + ${WRKSRC}/ttfm.sh do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ttfinfo ${PREFIX}/bin/ diff --git a/chinese/ttfm/files/patch-ttfm.sh b/chinese/ttfm/files/patch-ttfm.sh index 3a741299074d..5e91298f6184 100644 --- a/chinese/ttfm/files/patch-ttfm.sh +++ b/chinese/ttfm/files/patch-ttfm.sh @@ -1,5 +1,14 @@ ---- ./ttfm.sh.orig Wed Jan 31 17:34:46 2001 -+++ ./ttfm.sh Mon Nov 27 02:03:54 2006 +--- ttfm.sh.orig 2001-01-31 17:34:46.000000000 +0800 ++++ ttfm.sh 2008-06-04 22:02:46.000000000 +0800 +@@ -38,7 +38,7 @@ + + VERSION=0.9.3 + +-export PREFIX; PREFIX=/usr/local ++export PREFIX; PREFIX=%%PREFIX%% + export PATH; PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PREFIX/bin:$PREFIX/sbin + export DefaultFontPath; DefaultFontPath=$PREFIX/share/fonts/TrueType + export ScriptDir; ScriptDir=$PREFIX/share/ttfm @@ -258,7 +258,7 @@ # Call script with --remove for i in "$INSTALLSCRIPT"; do |