2000-07-18 10:46:04 +02:00
|
|
|
# New ports collection makefile for: pango
|
|
|
|
# Date Created: 18 July 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-03-15 06:49:53 +01:00
|
|
|
# $MCom: ports-stable/x11-toolkits/pango/Makefile,v 1.5 2006/03/05 18:31:28 marcus Exp $
|
2000-07-18 10:46:04 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pango
|
2006-03-15 06:49:53 +01:00
|
|
|
PORTVERSION= 1.10.4
|
2000-07-18 10:46:04 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
2005-11-05 05:53:48 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/${PORTNAME}/1.10,} \
|
|
|
|
ftp://ftp.gtk.org/pub/gtk/v2.7/
|
2002-02-12 10:01:09 +01:00
|
|
|
DIST_SUBDIR= gnome2
|
2000-07-18 10:46:04 +02:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= An open-source framework for the layout and rendering of i18n text
|
2000-07-18 10:46:04 +02:00
|
|
|
|
2003-04-04 08:59:48 +02:00
|
|
|
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
|
2006-03-15 06:49:53 +01:00
|
|
|
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo
|
2004-07-23 21:10:32 +02:00
|
|
|
RUN_DEPENDS= ${FONTSCALE}:${X_FONTS_TTF_PORT} \
|
|
|
|
${FONTENCOD}:${X_FONTS_ENCODINGS_PORT}
|
2000-07-18 10:46:04 +02:00
|
|
|
|
2002-02-12 10:01:09 +01:00
|
|
|
USE_BZIP2= yes
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2000-07-18 10:46:04 +02:00
|
|
|
USE_X_PREFIX= yes
|
2002-03-11 18:53:25 +01:00
|
|
|
USE_GMAKE= yes
|
2002-06-26 11:18:37 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-07-18 10:46:04 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-11-05 05:53:48 +01:00
|
|
|
USE_GNOME= gnomehack glib20 ltverhack
|
2002-03-11 18:53:25 +01:00
|
|
|
CONFIGURE_ARGS= --with-qt=no \
|
|
|
|
--with-html-dir=${PREFIX}/share/doc \
|
|
|
|
--enable-static
|
2003-04-05 07:18:26 +02:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
2004-04-05 05:11:39 +02:00
|
|
|
# Hmm.. tough one. Found this one when I had graphics/hdf installed
|
2001-06-05 06:59:15 +02:00
|
|
|
# (which installs glist.h) which is picked up before the glib-2.0
|
|
|
|
# stuff, with Bad Results[tm]
|
|
|
|
#
|
|
|
|
GLIB2_CFLAGS= `pkg-config glib-2.0 --cflags`
|
2004-04-05 05:11:39 +02:00
|
|
|
PLIST_SUB= VERSION="1.4.0"
|
2000-07-18 10:46:04 +02:00
|
|
|
|
2003-04-04 18:13:22 +02:00
|
|
|
FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
|
2005-12-27 21:15:15 +01:00
|
|
|
FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/encodings.dir
|
2003-04-04 18:13:22 +02:00
|
|
|
|
2004-04-05 05:11:39 +02:00
|
|
|
MAN1= pango-querymodules.1
|
|
|
|
|
2006-03-15 06:49:53 +01:00
|
|
|
.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
|
|
|
|
|
2002-10-13 21:27:20 +02:00
|
|
|
post-patch:
|
2003-04-04 08:59:48 +02:00
|
|
|
@${FIND} ${WRKSRC}/pango/opentype -name "*.[ch]" | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|internal/tterrors\.h|fterrors.h| ; \
|
|
|
|
s|TT_Err_|FT_Err_|g'
|
2003-04-04 18:13:22 +02:00
|
|
|
post-install:
|
|
|
|
@${SED} -e 's|%%X11BASE%%|${X11BASE}|' < ${FILESDIR}/pkg-install.in \
|
|
|
|
> ${PKGINSTALL}
|
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.endif
|
2001-04-30 07:30:29 +02:00
|
|
|
|
2003-04-04 08:59:48 +02:00
|
|
|
.include <bsd.port.mk>
|