summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-03-06 02:31:07 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-03-06 02:31:07 +0800
commitbdf7a10e9300ed4c530b7ceceefb71a7d58bd36e (patch)
tree12e0f6f0fdfe98076b934c49fad4e7c1a015e7b3
parent19e04e25f6c4190f4f8ee4bb6220782d1e646826 (diff)
downloadmarcuscom-ports-bdf7a10e9300ed4c530b7ceceefb71a7d58bd36e.tar
marcuscom-ports-bdf7a10e9300ed4c530b7ceceefb71a7d58bd36e.tar.gz
marcuscom-ports-bdf7a10e9300ed4c530b7ceceefb71a7d58bd36e.tar.bz2
marcuscom-ports-bdf7a10e9300ed4c530b7ceceefb71a7d58bd36e.tar.lz
marcuscom-ports-bdf7a10e9300ed4c530b7ceceefb71a7d58bd36e.tar.xz
marcuscom-ports-bdf7a10e9300ed4c530b7ceceefb71a7d58bd36e.tar.zst
marcuscom-ports-bdf7a10e9300ed4c530b7ceceefb71a7d58bd36e.zip
Honor WITHOUT_X11.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5844 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--x11-toolkits/pango/Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/x11-toolkits/pango/Makefile b/x11-toolkits/pango/Makefile
index e258c5a29..52a055966 100644
--- a/x11-toolkits/pango/Makefile
+++ b/x11-toolkits/pango/Makefile
@@ -3,7 +3,7 @@
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11-toolkits/pango/Makefile,v 1.55 2006/02/25 00:40:48 marcus Exp $
+# $MCom: ports/x11-toolkits/pango/Makefile,v 1.56 2006/02/27 01:09:25 marcus Exp $
#
PORTNAME= pango
@@ -17,8 +17,7 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= An open-source framework for the layout and rendering of i18n text
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
-LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft \
- cairo.2:${PORTSDIR}/graphics/cairo
+LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo
RUN_DEPENDS= ${FONTSCALE}:${X_FONTS_TTF_PORT} \
${FONTENCOD}:${X_FONTS_ENCODINGS_PORT}
@@ -38,10 +37,6 @@ PKGINSTALL= ${WRKDIR}/pkg-install
# stuff, with Bad Results[tm]
#
GLIB2_CFLAGS= `pkg-config glib-2.0 --cflags`
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
- ${GLIB2_CFLAGS} -I${LOCALBASE}/include \
- -I${X11BASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
PLIST_SUB= VERSION="1.5.0"
FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
@@ -49,6 +44,19 @@ FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/encodings.dir
MAN1= pango-querymodules.1
+.if defined(WITHOUT_X11)
+CONFIGURE_ARGS+= --with-x=no
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
+ ${GLIB2_CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+.else
+LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
+ ${GLIB2_CFLAGS} -I${LOCALBASE}/include \
+ -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
+.endif
+
post-install:
@${SED} -e 's|%%X11BASE%%|${X11BASE}|' < ${FILESDIR}/pkg-install.in \
> ${PKGINSTALL}