2001-09-03 12:54:28 -04:00
|
|
|
# New ports collection makefile for: gdkxft
|
|
|
|
# Date created: 3 September 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gdkxft
|
2002-02-01 23:53:50 -05:00
|
|
|
PORTVERSION= 1.5
|
2002-03-18 05:27:58 -05:00
|
|
|
PORTREVISION= 1
|
2001-09-03 12:54:28 -04:00
|
|
|
CATEGORIES= x11
|
2001-12-30 07:10:03 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-09-03 12:54:28 -04:00
|
|
|
|
2002-02-01 23:53:50 -05:00
|
|
|
MAINTAINER= anders@hack.org
|
|
|
|
|
2002-03-18 04:46:46 -05:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
2001-09-03 12:54:28 -04:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GTK= yes
|
2001-12-30 07:10:03 -05:00
|
|
|
WANT_GNOME= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2002-02-05 23:26:38 -05:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lgnuregex -lgiconv"
|
2001-12-30 07:10:03 -05:00
|
|
|
CONFIGURE_ARGS= --sbindir=${PREFIX}/bin
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
MAN8= gdkxft_sysinstall.8
|
2001-09-03 12:54:28 -04:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-12-30 07:10:03 -05:00
|
|
|
.if ${XFREE86_VERSION} < 4
|
2001-09-03 12:54:28 -04:00
|
|
|
IGNORE= "requires XFree86-4.x or later to run"
|
|
|
|
.endif
|
|
|
|
|
2001-12-30 07:10:03 -05:00
|
|
|
.if defined(HAVE_GNOME)
|
|
|
|
USE_GNOME= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's|gtk-config --prefix|\$$GTK_CONFIG --prefix|g ; \
|
|
|
|
s|libgdk.la|libgdk12.so|g ; \
|
|
|
|
s|libgdk.so|libgdk12.so|g ; \
|
|
|
|
s|GDK_DLOPEN_NAME=.*$$|GDK_DLOPEN_NAME="libgdk12.so"|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
|
|
|
's|src capplet|src \@BUILD_CAPPLET_TRUE\@capplet|g ; \
|
|
|
|
s|DESTDIR\)\$$\(datadir|DESTDIR\)\$$\(pkgdatadir|g ; \
|
|
|
|
s|/gnome/apps/|/apps/|g ; \
|
|
|
|
s|la_LDFLAGS =.*$$|la_LDFLAGS = -module -avoid-version|g'
|
|
|
|
.for file in gdkxft_sysinstall.in gdkxft.c generate.pl
|
|
|
|
@${PERL} -pi -e 's|<regex.h>|<gnuregex.h>|g ; \
|
|
|
|
s|gtk-config |${GTK_CONFIG:T} |g' ${WRKSRC}/src/${file}
|
|
|
|
.endfor
|
|
|
|
|
2001-09-03 12:54:28 -04:00
|
|
|
post-install:
|
2001-12-30 07:10:03 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-09-03 12:54:28 -04:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2001-12-30 07:10:03 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
2001-09-03 12:54:28 -04:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|