2013-03-08 10:51:34 +00:00
|
|
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2002-10-06 20:56:30 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fontconfig
|
2016-08-21 19:13:32 +00:00
|
|
|
PORTVERSION= 2.12.1
|
|
|
|
PORTREVISION?= 0
|
2006-05-31 22:18:51 +00:00
|
|
|
PORTEPOCH?= 1
|
2002-10-06 20:56:30 +00:00
|
|
|
CATEGORIES= x11-fonts
|
2011-01-14 16:59:28 +00:00
|
|
|
MASTER_SITES= http://www.freedesktop.org/software/fontconfig/release/
|
2002-10-06 20:56:30 +00:00
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2013-09-19 21:56:43 +00:00
|
|
|
COMMENT= XML-based font configuration API for X Windows
|
2002-10-06 20:56:30 +00:00
|
|
|
|
2016-08-21 19:13:32 +00:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2014-05-12 15:25:14 +00:00
|
|
|
USES= tar:bzip2
|
2013-07-31 11:57:45 +00:00
|
|
|
|
2006-05-11 18:03:03 +00:00
|
|
|
.if !defined(REFERENCE_PORT)
|
|
|
|
|
2016-04-01 14:33:55 +00:00
|
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
|
|
libexpat.so:textproc/expat2
|
2002-10-06 20:56:30 +00:00
|
|
|
|
2016-08-21 19:13:32 +00:00
|
|
|
USES+= cpe gmake libtool pathfix pkgconfig
|
|
|
|
CPE_VENDOR= fontconfig_project
|
2006-10-14 08:35:50 +00:00
|
|
|
USE_LDCONFIG= yes
|
2013-12-27 15:52:50 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-07-31 11:57:45 +00:00
|
|
|
CONFIGURE_ARGS= --with-configdir=${PREFIX}/etc/fonts/conf.d \
|
|
|
|
--with-templatedir=${PREFIX}/etc/fonts/conf.avail \
|
|
|
|
--with-xmldir=${PREFIX}/etc/fonts \
|
2003-04-13 05:52:45 +00:00
|
|
|
--with-expat-includes=${LOCALBASE}/include \
|
|
|
|
--with-expat-lib=${LOCALBASE}/lib \
|
2016-08-21 19:13:32 +00:00
|
|
|
--with-default-hinting=${PREFERRED_HINTING} \
|
2011-07-29 18:17:28 +00:00
|
|
|
--with-default-fonts=${PREFIX}/share/fonts \
|
|
|
|
--with-add-fonts=${LOCALBASE}/lib/X11/fonts \
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 05:14:07 +00:00
|
|
|
--with-cache-dir=/var/db/fontconfig \
|
2013-07-31 11:57:45 +00:00
|
|
|
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
|
2006-05-11 18:03:03 +00:00
|
|
|
--disable-docs
|
2016-05-04 02:45:00 +00:00
|
|
|
|
|
|
|
# D6155: static linked library linking added to support statically linked
|
|
|
|
# applications, e.g. x11/xforward static option
|
2016-08-21 19:13:32 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-static
|
|
|
|
# Python is not required, because fc-blanks.h is available in distfile
|
|
|
|
CONFIGURE_ENV= PYTHON=":"
|
2016-05-04 02:45:00 +00:00
|
|
|
|
2003-04-05 05:18:26 +00:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
2014-12-03 23:27:39 +00:00
|
|
|
INSTALL_TARGET=install-strip
|
2002-10-06 20:56:30 +00:00
|
|
|
|
2016-08-21 19:13:32 +00:00
|
|
|
PLIST_SUB= PREFERRED_HINTING=${PREFERRED_HINTING}
|
2006-05-11 18:03:03 +00:00
|
|
|
PORTDOCS= fontconfig-user.html fontconfig-user.pdf fontconfig-user.txt
|
2003-01-24 05:12:09 +00:00
|
|
|
|
2014-07-15 17:14:33 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2016-08-21 19:13:32 +00:00
|
|
|
OPTIONS_SINGLE= HINTING
|
|
|
|
HINTING_DESC= Preferred pixel hinting configuration
|
|
|
|
.for opt in NONE SLIGHT MEDIUM FULL
|
|
|
|
OPTIONS_SINGLE_HINTING+= HINTING_${opt}
|
|
|
|
HINTING_${opt}_DESC= ${opt:tl}
|
|
|
|
HINTING_${opt}_VARS= PREFERRED_HINTING=${opt:tl}
|
|
|
|
.endfor
|
|
|
|
OPTIONS_DEFAULT= HINTING_SLIGHT
|
2014-07-15 17:14:33 +00:00
|
|
|
|
2003-01-21 16:19:47 +00:00
|
|
|
post-install:
|
2016-08-21 19:13:32 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/fc-*/*.1 \
|
2014-12-03 23:27:39 +00:00
|
|
|
${STAGEDIR}${PREFIX}/man/man1
|
2016-08-21 19:13:32 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.5 \
|
|
|
|
${STAGEDIR}${PREFIX}/man/man5
|
2013-12-27 15:52:50 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/fonts.conf \
|
2014-12-03 23:27:39 +00:00
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/fonts.conf.sample
|
2006-02-02 19:14:21 +00:00
|
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|' < ${FILESDIR}/pkg-install.in \
|
2003-04-04 06:53:18 +00:00
|
|
|
> ${PKGINSTALL}
|
2003-01-21 16:19:47 +00:00
|
|
|
|
2015-09-06 15:42:38 +00:00
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
2013-07-31 11:57:45 +00:00
|
|
|
.include <bsd.port.mk>
|
2006-05-11 18:03:03 +00:00
|
|
|
|
|
|
|
.endif
|