aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/font-vlgothic/Makefile
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2008-05-25 15:10:33 +0800
committerhrs <hrs@FreeBSD.org>2008-05-25 15:10:33 +0800
commitba23107489540c75b266dac062760015288dc238 (patch)
tree3373e7681c6d4c4b33b93b64cf69c4678990d095 /japanese/font-vlgothic/Makefile
parent860fda99db2b61dd2da892e84c53381d1a0eb732 (diff)
downloadfreebsd-ports-gnome-ba23107489540c75b266dac062760015288dc238.tar.gz
freebsd-ports-gnome-ba23107489540c75b266dac062760015288dc238.tar.zst
freebsd-ports-gnome-ba23107489540c75b266dac062760015288dc238.zip
- Add install script for adding XLFD.
- Clean up Makefile and pkg-plist. - Take maintainership.
Diffstat (limited to 'japanese/font-vlgothic/Makefile')
-rw-r--r--japanese/font-vlgothic/Makefile55
1 files changed, 32 insertions, 23 deletions
diff --git a/japanese/font-vlgothic/Makefile b/japanese/font-vlgothic/Makefile
index cb3d0e2ef119..5179ec4938a3 100644
--- a/japanese/font-vlgothic/Makefile
+++ b/japanese/font-vlgothic/Makefile
@@ -7,46 +7,55 @@
PORTNAME= vlgothic
PORTVERSION= 20080429
+PORTREVISION= 1
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://vinelinux.org/~daisuke/vlgothic/
DISTNAME= VLGothic-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= hrs@FreeBSD.org
COMMENT= Free Japanese TrueType fonts named 'VLGothic'
-BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-WRKSRC= ${WRKDIR}/VLGothic
-
USE_BZIP2= yes
NO_BUILD= yes
-
-PLIST_SUB= FONTSDIR="${FONTSDIR_REL}"
-
-FONTSDIR= ${PREFIX}/lib/X11/fonts/vlgothic
-FONTSDIR_REL= ${FONTSDIR:S,${PREFIX}/,,}
-
-TTF_FILES= VL-PGothic-Regular.ttf VL-Gothic-Regular.ttf
-DOC_FILES= Changelog LICENSE LICENSE.en LICENSE_E.mplus LICENSE_J.mplus \
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-install
+SUB_FILES= pkg-install
+SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
+PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
+ LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
+PORTDOCS= Changelog LICENSE LICENSE.en LICENSE_E.mplus LICENSE_J.mplus \
README README.sazanami README_J.mplus
+WRKSRC= ${WRKDIR}/VLGothic
+
+LOCAL_FONTSDIR= share/fonts
+X_FONTSDIR= lib/X11/fonts
do-install:
- @${MKDIR} ${FONTSDIR}
-.for file in ${TTF_FILES}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${FONTSDIR}
-.endfor
- @${MKDIR} ${PREFIX}/etc/fonts/conf.d
- ${INSTALL_DATA} ${FILESDIR}/63-vlgothic.conf \
- ${PREFIX}/etc/fonts/conf.d
+ ${MKDIR} ${DATADIR}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
+ ${INSTALL_DATA} ${WRKSRC}/*.ttf ${DATADIR}
+ ${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/TrueType/
+ ${LN} -s -f ${DATADIR}/*.ttf \
+ ${LOCALBASE}/${LOCAL_FONTSDIR}/TrueType/
+ ${MKDIR} ${LOCALBASE}/${X_FONTSDIR}/TrueType
+ ${LN} -s -f ${DATADIR}/*.ttf \
+ ${LOCALBASE}/${X_FONTSDIR}/TrueType/
+ ${INSTALL_DATA} ${FILESDIR}/20-unhint-vlgothic.conf \
+ ${FILESDIR}/62-fonts-vlgothic.conf \
+ ${PREFIX}/etc/fonts/conf.avail
+ ${LN} -s -f ../conf.avail/20-unhint-vlgothic.conf \
+ ${PREFIX}/etc/fonts/conf.d/20-unhint-vlgothic.conf
+ ${LN} -s -f ../conf.avail/62-fonts-vlgothic.conf \
+ ${PREFIX}/etc/fonts/conf.d/62-fonts-vlgothic.conf
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
-.for file in ${DOC_FILES}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
post-install:
- ${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
+ ${LOCALBASE}/bin/fc-cache -f -v ${LOCALBASE}/${X_FONTSDIR}/TrueType
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>