diff options
author | hrs <hrs@FreeBSD.org> | 2009-05-31 17:15:47 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2009-05-31 17:15:47 +0800 |
commit | e108b1d688b6fbd6d4c5dab75af56f0d50d70156 (patch) | |
tree | 42c09b8484aee6ac588acbed2196f191335e5073 /japanese/font-shinonome/Makefile | |
parent | 382c7c051293a37c088f5c73406a68962042254f (diff) | |
download | freebsd-ports-gnome-e108b1d688b6fbd6d4c5dab75af56f0d50d70156.tar.gz freebsd-ports-gnome-e108b1d688b6fbd6d4c5dab75af56f0d50d70156.tar.zst freebsd-ports-gnome-e108b1d688b6fbd6d4c5dab75af56f0d50d70156.zip |
Ports for Japanese fonts have been reorganized in the following way:
japanese/ipa-ttfonts -> japanese/font-mplus-ipa
japanese/ipa-ttfonts -> japanese/font-ipa
japanese/kochi-ttfonts -> japanese/font-kochi
japanese/mplusfonts -> japanese/font-mplus
japanese/sazanami-ttf -> japanese/font-sazanami
japanese/shinonome -> japanese/font-shinonome
japanese/umefont -> japanese/font-ume
japanese/vlgothic -> japanese/font-vlgothic
While basically these are port name changes for consistency,
installation directories are also changed:
font files -> ${PREFIX}/share/${PORTNAME}/*
symlinks -> ${PREFIX}/share/fonts/{TTF,OTF,fontname,...}/*
symlinks -> ${PREFIX}/lib/X11/fonts/{TTF,OTF,misc,fontname,...}/*
A user-visible one is that the directory name "TrueType" is replaced
with "TTF".
Diffstat (limited to 'japanese/font-shinonome/Makefile')
-rw-r--r-- | japanese/font-shinonome/Makefile | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/japanese/font-shinonome/Makefile b/japanese/font-shinonome/Makefile index d98501babfd5..284d2a10020d 100644 --- a/japanese/font-shinonome/Makefile +++ b/japanese/font-shinonome/Makefile @@ -5,28 +5,34 @@ # $FreeBSD$ # -PORTNAME= shinonome -PORTVERSION= 0.9.11p1 +PORTNAME= font-shinonome +PORTVERSION= 0.9.11.p1 CATEGORIES= japanese x11-fonts MASTER_SITES= http://openlab.jp/efont/dist/shinonome/%SUBDIR%/ MASTER_SITE_SUBDIR= . old +DISTNAME= ${PORTNAME:C/^font-//}-${PORTVERSION:C/.p/p/} -MAINTAINER= ports@FreeBSD.org -COMMENT= Japanese 12,14,16 dot fonts +MAINTAINER= hrs@FreeBSD.org +COMMENT= Shinonome Japanese fonts, 12/14/16 dots BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/p.*$//} - +WRKSRC= ${WRKDIR}/${PORTNAME:C/^font-//}-${PORTVERSION:C/.p.*$//} USE_BZIP2= yes +PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \ + LOCAL_FONTSDIR=${LOCAL_FONTSDIR} +SUB_FILES= pkg-install +SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR} \ + FONTSALIAS=${DATADIR}/fonts.alias +PKGINSTALL= pkg-install +PKGDEINSTALL= pkg-install -PLIST_SUB= FONTSDIR="${FONTSDIR_REL}" - -.include <bsd.port.pre.mk> +PORTDOCS= AUTHORS BUGS ChangeLog ChangeLog.0 DESIGN.12 DESIGN.14 \ + DESIGN.16 DESIGN.18 INSTALL README THANKS TODO LICENSE -FONTSDIR= ${PREFIX}/lib/X11/fonts/local -FONTSDIR_REL= ${FONTSDIR:S,^${PREFIX}/,,} +LOCAL_FONTSDIR= share/fonts +X_FONTSDIR= lib/X11/fonts FONTNAMES=\ shnm6x12a shnm6x12ab shnm6x12ai shnm6x12abi \ @@ -45,34 +51,28 @@ FONTNAMES=\ shnmk14min shnmk14minb shnmk14mini shnmk14minbi \ shnmk16 shnmk16b shnmk16i shnmk16bi \ shnmk16min shnmk16minb shnmk16mini shnmk16minbi -DOCS= AUTHORS BUGS ChangeLog ChangeLog.0 DESIGN.12 DESIGN.14 \ - DESIGN.16 DESIGN.18 INSTALL README THANKS TODO LICENSE do-build: - @${ECHO_CMD} -n 'Compressing PCF fonts' -.for i in ${FONTNAMES} - @${ECHO_CMD} -n '.' - @cd ${WRKSRC}; bdftopcf bdf/${i}.bdf | ${GZIP_CMD} > ${i}.pcf.gz -.endfor - @${ECHO_CMD} 'Done' - -pre-su-install: - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/fonts.alias ${DOCSDIR} - @${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGREQ} ${PKGNAME} INSTALL + @${ECHO_CMD} -n "Compressing PCF fonts" + @cd ${WRKSRC} && for F in ${FONTNAMES}; do \ + ${LOCALBASE}/bin/bdftopcf bdf/$${F}.bdf | ${GZIP_CMD} > $${F}.pcf.gz; \ + ${ECHO_CMD} -n "."; \ + done + @${ECHO_CMD} "Done" do-install: -# Do not use original install target since it forces to delete fonts.alias -.for i in ${FONTNAMES} - ${INSTALL_DATA} ${WRKSRC}/${i}.pcf.gz ${FONTSDIR} -.endfor - @mkfontdir ${FONTSDIR} - @${CAT} ${DOCSDIR}/fonts.alias >> ${FONTSDIR}/fonts.alias + ${MKDIR} ${DATADIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${FONTNAMES:C/$/.pcf.gz/} fonts.alias ${DATADIR} + ${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/shinonome + ${LN} -s -f ${DATADIR}/*.pcf.gz ${LOCALBASE}/${LOCAL_FONTSDIR}/shinonome/ + ${MKDIR} ${PREFIX}/${X_FONTSDIR}/misc + ${LN} -s -f ${DATADIR}/*.pcf.gz ${LOCALBASE}/${X_FONTSDIR}/misc/ + +post-install: + ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .if !defined(NOPORTDOCS) -.for i in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |