summaryrefslogtreecommitdiffstats
path: root/astro/xplanet/Makefile
blob: 9338c06a309bade3d16e74a8ba364b1d2f8ae420 (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
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:    xplanet
# Date created:		22 Feb 2000
# Whom:			darius@dons.net.au
#
# $FreeBSD$
#

PORTNAME=	xplanet
PORTVERSION=	1.0.4
PORTREVISION=	0
CATEGORIES=	astro
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Draw pictures of the earth textured by an image

LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
		freetype.9:${PORTSDIR}/print/freetype2 \
		ungif.5:${PORTSDIR}/graphics/libungif \
		png.5:${PORTSDIR}/graphics/png \
		tiff.4:${PORTSDIR}/graphics/tiff \
		netpbm.1:${PORTSDIR}/graphics/netpbm

USE_X_PREFIX=	yes
USE_GCC=	3.3
USE_GNOME=	pango
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-map-extension=jpg --with-freetype --with-gif \
		--with-png --with-pnm --with-tiff --with-pango
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
		LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"
USE_GMAKE=	yes

PLIST_FILES=	bin/xplanet
MAN1=	xplanet.1

# Install the list of FreeBSD sites & committers locations from astro/xearth
post-install:
.for file in freebsd.committers.markers freebsd.ftp.markers
	@${INSTALL_DATA} ${PORTSDIR}/astro/xearth/files/${file} \
		${DATADIR}/markers
.endfor
	@${FIND} ${DATADIR} -type f | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@${FIND} ${DATADIR} -type d | ${SORT} -r | \
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud