aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2013-11-01 07:56:00 +0800
committergarga <garga@FreeBSD.org>2013-11-01 07:56:00 +0800
commitbd455b8230ddfead844e7831c5936597bac08c33 (patch)
tree26f5ff627d7597afe8d4c28502c59105042c29e3 /x11-fonts
parent6e5e74d1cacff68b4ff21d2174227007e2f31b94 (diff)
downloadfreebsd-ports-gnome-bd455b8230ddfead844e7831c5936597bac08c33.tar.gz
freebsd-ports-gnome-bd455b8230ddfead844e7831c5936597bac08c33.tar.zst
freebsd-ports-gnome-bd455b8230ddfead844e7831c5936597bac08c33.zip
. Support STAGE
. Simplify Makefile . Move pkg-message to files/pkg-message.in and use SUB_FILES
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/artwiz-fonts/Makefile18
-rw-r--r--x11-fonts/artwiz-fonts/files/pkg-message.in (renamed from x11-fonts/artwiz-fonts/pkg-message)2
2 files changed, 8 insertions, 12 deletions
diff --git a/x11-fonts/artwiz-fonts/Makefile b/x11-fonts/artwiz-fonts/Makefile
index 0e089022406b..3b1c688e96f3 100644
--- a/x11-fonts/artwiz-fonts/Makefile
+++ b/x11-fonts/artwiz-fonts/Makefile
@@ -20,18 +20,14 @@ WRKSRC= ${WRKDIR}/fluxbox-${PORTNAME}
FONTS= anorexia aqui cure cursor drift edges gelly glisp-bold \
glisp lime mints-mild mints-strong nu snap
FONTDIR= ${LOCALBASE}/lib/X11/fonts/${PORTNAME}/
-FILES= ${FONTS:S,$,.pcf.gz,} ${FILESDIR}/fonts.dir
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+SUB_FILES= pkg-message
do-install:
- @${MKDIR} ${FONTDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${FILES} ${FONTDIR}
+ @${MKDIR} ${STAGEDIR}${FONTDIR}
+.for f in ${FONTS}
+ ${INSTALL_DATA} ${WRKSRC}/${f}.pcf.gz ${STAGEDIR}${FONTDIR}
+.endfor
+ ${INSTALL_DATA} ${FILESDIR}/fonts.dir ${STAGEDIR}${FONTDIR}
-post-install:
- @${SED} 's|$${LOCALBASE}|${LOCALBASE}|g' \
- ${PKGDIR}/pkg-message >${PKGMESSAGE}
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-fonts/artwiz-fonts/pkg-message b/x11-fonts/artwiz-fonts/files/pkg-message.in
index e9a245118b5f..d897c0299605 100644
--- a/x11-fonts/artwiz-fonts/pkg-message
+++ b/x11-fonts/artwiz-fonts/files/pkg-message.in
@@ -6,6 +6,6 @@
Add the following line to the "Files" section and restart XFree86.
- FontPath "${LOCALBASE}/lib/X11/fonts/artwiz-fonts"
+ FontPath "%%LOCALBASE%%/lib/X11/fonts/artwiz-fonts"
------------------------------------------------------------------