1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Borrow a little from kdelibs3, and add a dependency on the scalable fonts.

Also, run fc-cache here as well as in fontconfig just to make sure we have
some fonts installed.
This commit is contained in:
Joe Marcus Clarke 2003-04-04 06:55:23 +00:00
parent 0e0d4691b5
commit 042ccee8b8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78100
4 changed files with 42 additions and 8 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= Xft
PORTVERSION= 2.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= x11-fonts
MASTER_SITES= http://fontconfig.org/fontconfig/release/
DISTNAME= fcpackage.${PORTVERSION:S/./_/}
@ -16,13 +16,18 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= A client-sided font API for X applications
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS= ${FONTSCALE}:${PORTSDIR}/x11-fonts/XFree86-4-fontScalable \
${FONTENCOD}:${PORTSDIR}/x11-fonts/XFree86-4-fontEncodings
FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/tcvn-0.enc
USE_GMAKE= yes
USE_X_PREFIX= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib"
WRKSRC= ${WRKDIR}/${DISTNAME}/Xft
@ -31,8 +36,6 @@ MAN3= Xft.3
.include <bsd.port.pre.mk>
# TODO Add a check to make sure we're not using XFree86 4.3.x which will
# have Xft2 included by default.
.if ${XFREE86_VERSION} == 3
BROKEN= Xft2 requires XFree86 4.x to build.
.endif
@ -45,5 +48,10 @@ pre-install:
post-install:
@${INSTALL_DATA} ${WRKSRC}/Xft.man ${PREFIX}/man/man3/Xft.3
@${SED} -e 's|%%X11BASE%%|${X11BASE}|' < ${FILESDIR}/pkg-install.in \
> ${PKGINSTALL}
.if !defined(PACKAGE_BUILDING)
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,9 @@
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin:%%X11BASE%%/bin
export PATH
if [ "$2" = "POST-INSTALL" ]; then
echo "Running fc-cache to build fontconfig caches..."
fc-cache -f -v
fi

View File

@ -7,7 +7,7 @@
PORTNAME= Xft
PORTVERSION= 2.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= x11-fonts
MASTER_SITES= http://fontconfig.org/fontconfig/release/
DISTNAME= fcpackage.${PORTVERSION:S/./_/}
@ -16,13 +16,18 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= A client-sided font API for X applications
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS= ${FONTSCALE}:${PORTSDIR}/x11-fonts/XFree86-4-fontScalable \
${FONTENCOD}:${PORTSDIR}/x11-fonts/XFree86-4-fontEncodings
FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/tcvn-0.enc
USE_GMAKE= yes
USE_X_PREFIX= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib"
WRKSRC= ${WRKDIR}/${DISTNAME}/Xft
@ -31,8 +36,6 @@ MAN3= Xft.3
.include <bsd.port.pre.mk>
# TODO Add a check to make sure we're not using XFree86 4.3.x which will
# have Xft2 included by default.
.if ${XFREE86_VERSION} == 3
BROKEN= Xft2 requires XFree86 4.x to build.
.endif
@ -45,5 +48,10 @@ pre-install:
post-install:
@${INSTALL_DATA} ${WRKSRC}/Xft.man ${PREFIX}/man/man3/Xft.3
@${SED} -e 's|%%X11BASE%%|${X11BASE}|' < ${FILESDIR}/pkg-install.in \
> ${PKGINSTALL}
.if !defined(PACKAGE_BUILDING)
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,9 @@
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin:%%X11BASE%%/bin
export PATH
if [ "$2" = "POST-INSTALL" ]; then
echo "Running fc-cache to build fontconfig caches..."
fc-cache -f -v
fi