summaryrefslogtreecommitdiffstats
path: root/misc/metatheme2/Makefile
blob: 6c412b632fa7dfb7ed6520ac8d43fc7ac43dcb6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:	metatheme
# Date created:				25 November 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	metatheme
PORTVERSION=	0.6.0
CATEGORIES=	misc gnome
MASTER_SITES=	ftp://ftp.ximian.com/pub/metatheme/

MAINTAINER=	sobomax@FreeBSD.org

LIB_DEPENDS=	gnet.0:${PORTSDIR}/net/gnet

BROKEN=		"Out of sync with latest Gal"

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_LIBS}|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>
OpenPOWER on IntegriCloud