diff options
Diffstat (limited to 'print')
-rw-r--r-- | print/freetype2/Makefile | 70 | ||||
-rw-r--r-- | print/freetype2/distinfo | 3 | ||||
-rw-r--r-- | print/freetype2/files/patch-aa | 24 | ||||
-rw-r--r-- | print/freetype2/files/patch-builds::unix::freetype-config.in | 17 | ||||
-rw-r--r-- | print/freetype2/pkg-descr | 10 | ||||
-rw-r--r-- | print/freetype2/pkg-plist | 57 |
6 files changed, 181 insertions, 0 deletions
diff --git a/print/freetype2/Makefile b/print/freetype2/Makefile new file mode 100644 index 000000000..0dbcc2aa5 --- /dev/null +++ b/print/freetype2/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: freetype +# Date created: January 24, 1998 +# Whom: jseger@FreeBSD.org +# +# $FreeBSD$ +# $MCom: ports/print/freetype2/Makefile,v 1.22 2010/03/16 19:33:10 mezz Exp $ +# + +PORTNAME= freetype2 +PORTVERSION= 2.4.1 +CATEGORIES= print +MASTER_SITES= SF/freetype/${PORTNAME}/${PORTVERSION} \ + http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype2/ \ + http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/ \ + http://ftp.sunet.se/pub/text-processing/freetype/freetype2/ \ + ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/freetype/&,} \ + ftp://ftp.freetype.org/freetype/freetype2/ +DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION} + +MAINTAINER= gnome@FreeBSD.org +COMMENT= A free and portable TrueType font rendering engine + +USE_AUTOTOOLS= libtool:22 +USE_BZIP2= yes +USE_GMAKE= yes +MAKE_JOBS_SAFE= yes +MAKE_ENV= TOP="" +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +USE_GNOME= gnometarget pkgconfig ltverhack:9 +LIBTOOLFILES= builds/unix/configure +CONFIGURE_ARGS= --disable-nls +CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix + +.if defined(WITH_LCD_FILTERING) +CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING +.endif + +.if defined(WITH_CJK) +#PATCH_SITES+= http://lwj-hinet.myweb.hinet.net/ \ +# ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/ \ +# http://bsdchat.com/dist/firefly-cjk-patchset/ +#PATCHFILES+= cjk-freetype-2.1.10-20051219.patch.gz +#PATCH_DIST_STRIP+= -p1 +.endif + +pre-everything:: +.if !defined(WITH_LCD_FILTERING) + @${ECHO_MSG} + @${ECHO_MSG} "You may want to enable LCD filtering." + @${ECHO_MSG} + @${ECHO_MSG} "Hit Ctrl-C now and use \"make WITH_LCD_FILTERING=yes\"" + @${ECHO_MSG} + @${ECHO_MSG} "Note that there are possible patent issues related to the" + @${ECHO_MSG} "use of the LCD filtering technology." + @${ECHO_MSG} +.endif + +pre-patch: + @${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ + ${WRKSRC}/builds/unix/install.mk + +pre-configure: + @${REINPLACE_CMD} -e '/^LIBTOOL/s|LIBTOOL ?= $$(BUILD_DIR)/libtool|LIBTOOL := ${WRKDIR}/gnome-libtool|' \ + ${WRKSRC}/builds/unix/unix-cc.in + +post-configure: + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup) + +.include <bsd.port.mk> diff --git a/print/freetype2/distinfo b/print/freetype2/distinfo new file mode 100644 index 000000000..1bf628bdd --- /dev/null +++ b/print/freetype2/distinfo @@ -0,0 +1,3 @@ +MD5 (freetype-2.4.1.tar.bz2) = 567a27e5189ed581396f69fb51faf2d8 +SHA256 (freetype-2.4.1.tar.bz2) = 45c954e96f52737c0cc62e9a538a4df850c7d1dd73fb25ffe131ae7cb899be3e +SIZE (freetype-2.4.1.tar.bz2) = 1432560 diff --git a/print/freetype2/files/patch-aa b/print/freetype2/files/patch-aa new file mode 100644 index 000000000..f18618ec8 --- /dev/null +++ b/print/freetype2/files/patch-aa @@ -0,0 +1,24 @@ +--- builds/unix/detect.mk.orig 2006-12-09 13:51:54.000000000 -0500 ++++ builds/unix/detect.mk 2007-07-06 12:55:05.000000000 -0400 +@@ -21,6 +21,9 @@ ifeq ($(PLATFORM),ansi) + is_unix := $(strip $(wildcard /sbin/init) \ + $(wildcard /usr/sbin/init) \ + $(wildcard /hurd/auth)) ++ # FreeBSD is "unix" so just mandate this to fix the build in ++ # jails that do not have init (see PR#113470). ++ is_unix := true + ifneq ($(is_unix),) + + PLATFORM := unix +@@ -79,9 +82,9 @@ ifeq ($(PLATFORM),unix) + ifdef must_configure + ifneq ($(have_Makefile),) + # we are building FT2 not in the src tree +- $(TOP_DIR)/builds/unix/configure $(value CFG) ++# $(TOP_DIR)/builds/unix/configure $(value CFG) + else +- cd builds/unix; ./configure $(value CFG) ++# cd builds/unix; ./configure $(value CFG) + endif + endif + diff --git a/print/freetype2/files/patch-builds::unix::freetype-config.in b/print/freetype2/files/patch-builds::unix::freetype-config.in new file mode 100644 index 000000000..f45d886c8 --- /dev/null +++ b/print/freetype2/files/patch-builds::unix::freetype-config.in @@ -0,0 +1,17 @@ +--- builds/unix/freetype-config.in.orig 2009-12-21 18:23:42.000000000 -0500 ++++ builds/unix/freetype-config.in 2010-02-21 15:51:17.000000000 -0500 +@@ -131,12 +131,8 @@ if test "$echo_ft_version" = "yes" ; the + fi + + if test "$echo_cflags" = "yes" ; then +- cflags="-I${SYSROOT}$includedir/freetype2" +- if test "${SYSROOT}$includedir" != "/usr/include" ; then +- echo $cflags -I${SYSROOT}$includedir +- else +- echo $cflags +- fi ++ cflags="-I@includedir@/freetype2 -I@includedir@" ++ echo $cflags + fi + + if test "$echo_libs" = "yes" ; then diff --git a/print/freetype2/pkg-descr b/print/freetype2/pkg-descr new file mode 100644 index 000000000..57ec2a4c6 --- /dev/null +++ b/print/freetype2/pkg-descr @@ -0,0 +1,10 @@ +This includes some tools that are in FreeType 1's contrib directory. + +ttf2pfb: Converting TrueType fonts to the Postscript Type 1 format. +ttf2pk: A simple conversion tool to bring TrueType quality to the + TeX world. +ttf2bdf: Produce bitmapped fonts from TrueType files for your X11 + applications. +ttfbanner: make posters using a TrueType font + +WWW: http://freetype.sourceforge.net/ diff --git a/print/freetype2/pkg-plist b/print/freetype2/pkg-plist new file mode 100644 index 000000000..fd0ccd25e --- /dev/null +++ b/print/freetype2/pkg-plist @@ -0,0 +1,57 @@ +bin/freetype-config +include/freetype2/freetype/config/ftconfig.h +include/freetype2/freetype/config/ftheader.h +include/freetype2/freetype/config/ftmodule.h +include/freetype2/freetype/config/ftoption.h +include/freetype2/freetype/config/ftstdlib.h +include/freetype2/freetype/freetype.h +include/freetype2/freetype/ftadvanc.h +include/freetype2/freetype/ftbbox.h +include/freetype2/freetype/ftbdf.h +include/freetype2/freetype/ftbitmap.h +include/freetype2/freetype/ftcache.h +include/freetype2/freetype/ftchapters.h +include/freetype2/freetype/ftcid.h +include/freetype2/freetype/fterrdef.h +include/freetype2/freetype/fterrors.h +include/freetype2/freetype/ftgasp.h +include/freetype2/freetype/ftglyph.h +include/freetype2/freetype/ftgxval.h +include/freetype2/freetype/ftgzip.h +include/freetype2/freetype/ftimage.h +include/freetype2/freetype/ftincrem.h +include/freetype2/freetype/ftlcdfil.h +include/freetype2/freetype/ftlist.h +include/freetype2/freetype/ftlzw.h +include/freetype2/freetype/ftmac.h +include/freetype2/freetype/ftmm.h +include/freetype2/freetype/ftmodapi.h +include/freetype2/freetype/ftmoderr.h +include/freetype2/freetype/ftotval.h +include/freetype2/freetype/ftoutln.h +include/freetype2/freetype/ftpfr.h +include/freetype2/freetype/ftrender.h +include/freetype2/freetype/ftsizes.h +include/freetype2/freetype/ftsnames.h +include/freetype2/freetype/ftstroke.h +include/freetype2/freetype/ftsynth.h +include/freetype2/freetype/ftsystem.h +include/freetype2/freetype/fttrigon.h +include/freetype2/freetype/fttypes.h +include/freetype2/freetype/ftwinfnt.h +include/freetype2/freetype/ftxf86.h +include/freetype2/freetype/t1tables.h +include/freetype2/freetype/ttnameid.h +include/freetype2/freetype/tttables.h +include/freetype2/freetype/tttags.h +include/freetype2/freetype/ttunpat.h +include/ft2build.h +lib/libfreetype.a +lib/libfreetype.la +lib/libfreetype.so +lib/libfreetype.so.9 +libdata/pkgconfig/freetype2.pc +share/aclocal/freetype2.m4 +@dirrm include/freetype2/freetype/config +@dirrm include/freetype2/freetype +@dirrm include/freetype2 |