aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/gnome-font-sampler/Makefile
blob: 4de9e6a1df3fbe27af11b77da4f752dcf1c144f9 (plain) (blame)
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
# New ports collection makefile for:	gnome-font-sampler
# Date created:			31 Dec 2004
# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=	gnome-font-sampler
PORTVERSION=	0.4
PORTREVISION=	4
CATEGORIES=	x11-fonts
MASTER_SITES=	http://linuxadvocate.org/projects/gfontsampler/downloads/
DISTNAME=	gfontsampler-${PORTVERSION}

MAINTAINER=	jylefort@FreeBSD.org
COMMENT=	A program for viewing several fonts at once

USE_X_PREFIX=	yes
USE_GCC=	3.4+
USE_GNOME=	libgnomeui gnomeprefix
USE_AUTOTOOLS=	libtool:15
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

post-patch:
	@${REINPLACE_CMD} -e \
		's|^packagedatadir=.*|packagedatadir=share/gnome| ; \
		 s|^packagepixmapsdir=.*|packagepixmapsdir=share/gnome/pixmaps| ; \
		 s|^packagemenudir=.*|packagemenudir=share/gnome/applications|; \
		 /^CFLAGS=""$$/ d; s|gtk+-2.0|pangoxft &|' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		's|\(@NO_PREFIX_PACKAGE_MENU_DIR@\)/Utilities|\1|' \
		${WRKSRC}/Makefile.in

.include <bsd.port.mk>