diff options
author | pav <pav@FreeBSD.org> | 2003-12-09 00:55:23 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2003-12-09 00:55:23 +0000 |
commit | 2d4304cda0e4f2d4bb0e71a5f031aff77425313d (patch) | |
tree | ba869de3d530146dde8d4e7afa76fc76cf71c537 /x11-fonts | |
parent | 5fada297d1233f7973c17d31c56a4370176f0d3c (diff) | |
download | FreeBSD-ports-2d4304cda0e4f2d4bb0e71a5f031aff77425313d.zip FreeBSD-ports-2d4304cda0e4f2d4bb0e71a5f031aff77425313d.tar.gz |
Add Code2000, a shareware Unicode reference font. It contains over 34000 glyphs!
You should pay $5 to the author if you find this useful.
PR: ports/60056
Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/Makefile | 1 | ||||
-rw-r--r-- | x11-fonts/code2000/Makefile | 118 | ||||
-rw-r--r-- | x11-fonts/code2000/distinfo | 1 | ||||
-rw-r--r-- | x11-fonts/code2000/pkg-descr | 7 | ||||
-rw-r--r-- | x11-fonts/code2000/pkg-message | 23 | ||||
-rw-r--r-- | x11-fonts/code2000/pkg-plist | 8 |
6 files changed, 158 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index 12301fd..6f448d0 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -13,6 +13,7 @@ SUBDIR += bdfresize SUBDIR += bitmap-fonts SUBDIR += bitstream-vera + SUBDIR += code2000 SUBDIR += cyr-rfx SUBDIR += etlfonts SUBDIR += fontconfig diff --git a/x11-fonts/code2000/Makefile b/x11-fonts/code2000/Makefile new file mode 100644 index 0000000..50f47ad --- /dev/null +++ b/x11-fonts/code2000/Makefile @@ -0,0 +1,118 @@ +# New ports collection makefile for: Code2000 +# Date created: 6 Dec 2003 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ +# + +PORTNAME= code2000 +PORTVERSION= 1.13 +CATEGORIES= x11-fonts +MASTER_SITES= http://home.att.net/~jameskass/ +DISTFILES= ${PORTNAME:U}${EXTRACT_SUFX:U} +DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= thierry@pompo.net +COMMENT= Shareware demo Unicode TrueType font + +BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir + +NO_PACKAGE= Only unmodified original package can be distributed + +USE_X_PREFIX= yes +USE_ZIP= yes + +.include <bsd.port.pre.mk> + +.if ${XFREE86_VERSION} == 3 +RUN_DEPENDS= xfstt:${PORTSDIR}/x11-servers/Xfstt +.endif + +PLIST_SUB= PKG_OLDXF86=${PKG_OLDXF86} \ + PKG_NSALIAS=${PKG_NSALIAS} \ + FONTNAME="${FONTNAME}" \ + FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" \ + TTFONTSDIR="${TTFONTSDIR:S|${X11BASE}/||}" + +MSG_FILE= ${PKGDIR}/pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message + +.if ${XFREE86_VERSION} == 3 +OLDXF86= "" +.else +OLDXF86= "@comment " +.endif + +# +# Local variables +# + +FONTNAME= ${PORTNAME} +FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME} +TTFONTSDIR?= ${X11BASE}/lib/X11/fonts/TrueType + +TTMKFDIR_CMD?= ${X11BASE}/bin/ttmkfdir +SORT?= sort + +# +# Post-extract +# + +post-extract: move-fonts rename-license + +move-fonts: + ${MKDIR} ${WRKSRC} + ${MV} ${WRKDIR}/CODE2000.TTF ${WRKSRC}/${FONTNAME}.ttf + +rename-license: + ${MV} ${WRKDIR}/CODE2000.HTM ${WRKSRC}/${FONTNAME}.html + +# +# Post-patch +# + +post-patch: + ${SED} 's|%%FONTSDIR%%|${FONTSDIR}|g' ${MSG_FILE} > ${PKGMESSAGE} + +# +# Build +# + +do-build: make-fonts.scale make-fonts.dir + +make-fonts.scale: + ${TTMKFDIR_CMD} -c -f JJK -d ${WRKSRC} | ${CAT} -n | ${SED} -e ' \ + s,^ 1,100000,; \ + s,JJK,${FONTNAME},; \ + ' | ${SORT} -r | ${CUT} -c 8- > ${WRKSRC}/fonts.scale + +make-fonts.dir: + ${CP} ${WRKSRC}/fonts.scale ${WRKSRC}/fonts.dir + +# +# Install +# + +do-install: install-fonts + +install-fonts: + ${MKDIR} ${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/* ${FONTSDIR} + +# +# Post-install +# + +post-install: truetype-link display-message + +truetype-link: +.if ${XFREE86_VERSION} == 3 + ${LN} -fs ${FONTSDIR} ${TTFONTSDIR}/${FONTNAME} +.endif + +display-message: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.post.mk> diff --git a/x11-fonts/code2000/distinfo b/x11-fonts/code2000/distinfo new file mode 100644 index 0000000..b78f014 --- /dev/null +++ b/x11-fonts/code2000/distinfo @@ -0,0 +1 @@ +MD5 (code2000-1.13/CODE2000.ZIP) = ae2bcb9a43af61ab95dd63df56bbf12d diff --git a/x11-fonts/code2000/pkg-descr b/x11-fonts/code2000/pkg-descr new file mode 100644 index 0000000..785bd10 --- /dev/null +++ b/x11-fonts/code2000/pkg-descr @@ -0,0 +1,7 @@ +This famous TrueType font contains a lot of Unicode glyphs (over 34000 in +version 1.13). + +With Unicode-aware applications you'll be able to display and use special +characters and a lot of languages. + +WWW: http://home.att.net/~jameskass/ diff --git a/x11-fonts/code2000/pkg-message b/x11-fonts/code2000/pkg-message new file mode 100644 index 0000000..2ead417 --- /dev/null +++ b/x11-fonts/code2000/pkg-message @@ -0,0 +1,23 @@ +IMPORTANT - READ CAREFULLY: Code2000 is *NOT* free software! +It is offered as a shareware demo. If you like it and use it after a +reasonable evaluation period, you are obliged to register the +font by sending $5 (Five U.S. Dollars, or equivalent in any currency) +to the author. See %%FONTSDIR%%/Code2000.html. +You can start using the font by following these instructions: + +--- XFree86 4.x.x (using the freetype module) + +Make sure that the freetype module is loaded. If it is not, add the following +line to the "Modules" section of XF86Config: + + Load "freetype" + +Add the following line to the "Files" section of XF86Config: + + FontPath "%%FONTSDIR%%/" + +--- XFree86 3.x.x (using Xfstt) + +Add the following line to the "Files" section of XF86Config: + + FontPath "unix/:7101" diff --git a/x11-fonts/code2000/pkg-plist b/x11-fonts/code2000/pkg-plist new file mode 100644 index 0000000..f9c7b2f --- /dev/null +++ b/x11-fonts/code2000/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +%%FONTSDIR%%/code2000.html +%%FONTSDIR%%/code2000.ttf +%%FONTSDIR%%/fonts.dir +%%FONTSDIR%%/fonts.scale +@dirrm %%FONTSDIR%% +%%PKG_OLDXF86%%@exec ln -fs %D/%%FONTSDIR%% %D/%%TTFONTSDIR%%/%%FONTNAME%% +%%PKG_OLDXF86%%@unexec rm -f %D/%%TTFONTSDIR%%/%%FONTNAME%% |