2001-09-03 18:54:28 +02:00
|
|
|
# New ports collection makefile for: gdkxft
|
|
|
|
# Date created: 3 September 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gdkxft
|
2002-02-02 05:53:50 +01:00
|
|
|
PORTVERSION= 1.5
|
2004-02-04 06:10:27 +01:00
|
|
|
PORTREVISION= 2
|
2001-09-03 18:54:28 +02:00
|
|
|
CATEGORIES= x11
|
2001-12-30 13:10:03 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-09-03 18:54:28 +02:00
|
|
|
|
2003-12-21 01:23:25 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:21:36 +01:00
|
|
|
COMMENT= An anti-aliased font support for gtk+
|
2002-02-02 05:53:50 +01:00
|
|
|
|
2004-03-30 21:56:43 +02:00
|
|
|
LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
2001-09-03 18:54:28 +02:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2002-09-09 06:33:16 +02:00
|
|
|
USE_GNOME= gtk12
|
2001-12-30 13:10:03 +01:00
|
|
|
WANT_GNOME= yes
|
2004-03-30 21:56:43 +02:00
|
|
|
USE_ICONV= yes
|
2002-09-01 17:37:37 +02:00
|
|
|
USE_REINPLACE= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2001-12-30 13:10:03 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2003-02-22 19:36:19 +01:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lgnuregex -liconv" \
|
|
|
|
CFLAGS="${CFLAGS} `pkg-config xft --cflags`"
|
2001-12-30 13:10:03 +01:00
|
|
|
CONFIGURE_ARGS= --sbindir=${PREFIX}/bin
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
MAN8= gdkxft_sysinstall.8
|
2001-09-03 18:54:28 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-07-23 21:10:32 +02:00
|
|
|
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
|
2001-09-03 18:54:28 +02:00
|
|
|
IGNORE= "requires XFree86-4.x or later to run"
|
|
|
|
.endif
|
|
|
|
|
2002-09-09 06:33:16 +02:00
|
|
|
.if ${HAVE_GNOME:Mlibglade}!="" && ${HAVE_GNOME:Mlibcapplet}!=""
|
|
|
|
USE_GNOME+= gnomeprefix libglade libcapplet
|
|
|
|
PKGNAMESUFFIX= -gnome
|
2001-12-30 13:10:03 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2002-09-29 10:07:47 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|gtk-config --prefix|$$GTK_CONFIG --prefix|g ; \
|
2001-12-30 13:10:03 +01:00
|
|
|
s|libgdk.la|libgdk12.so|g ; \
|
|
|
|
s|libgdk.so|libgdk12.so|g ; \
|
|
|
|
s|GDK_DLOPEN_NAME=.*$$|GDK_DLOPEN_NAME="libgdk12.so"|g' \
|
|
|
|
${WRKSRC}/configure
|
2002-09-29 10:07:47 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|src capplet|src @BUILD_CAPPLET_TRUE@capplet|g ; \
|
|
|
|
s|DESTDIR)\$$(datadir|DESTDIR)\$$(pkgdatadir|g ; \
|
2001-12-30 13:10:03 +01:00
|
|
|
s|/gnome/apps/|/apps/|g ; \
|
|
|
|
s|la_LDFLAGS =.*$$|la_LDFLAGS = -module -avoid-version|g'
|
|
|
|
.for file in gdkxft_sysinstall.in gdkxft.c generate.pl
|
2002-06-27 15:32:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g ; \
|
2001-12-30 13:10:03 +01:00
|
|
|
s|gtk-config |${GTK_CONFIG:T} |g' ${WRKSRC}/src/${file}
|
|
|
|
.endfor
|
|
|
|
|
2001-09-03 18:54:28 +02:00
|
|
|
post-install:
|
2001-12-30 13:10:03 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-09-03 18:54:28 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2001-12-30 13:10:03 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
2001-09-03 18:54:28 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|