2000-11-27 11:44:31 -05:00
|
|
|
# New ports collection makefile for: metatheme
|
|
|
|
# Date created: 25 November 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= metatheme
|
2001-02-05 10:47:16 -05:00
|
|
|
PORTVERSION= 0.5.0
|
2000-11-27 11:44:31 -05:00
|
|
|
CATEGORIES= misc gnome
|
|
|
|
MASTER_SITES= ftp://ftp.helixcode.com/pub/metatheme/
|
|
|
|
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
|
2001-01-31 10:57:21 -05:00
|
|
|
LIB_DEPENDS= gtkhtml.8:${PORTSDIR}/www/gtkhtml \
|
2001-02-09 17:01:59 -05:00
|
|
|
gal.4:${PORTSDIR}/x11-toolkits/gal \
|
2000-11-27 11:44:31 -05:00
|
|
|
gnet.0:${PORTSDIR}/net/gnet
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GNOME= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
|
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
|
|
|
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
|
|
|
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
|
|
|
|
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
.for file in gtk/gtk-plugin.c background/background-plugin.c sawfish/sawfish-plugin.c
|
|
|
|
@${PERL} -pi -e 's|%%GTK_CONFIG%%|${GTK_CONFIG}|g ; \
|
|
|
|
s|%%X11BASE%%|${X11BASE}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/plugins/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|