aboutsummaryrefslogtreecommitdiff
path: root/astro/xplanet/Makefile
blob: fa962265c9125d543a3134874e903ec5ba312132 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# New ports collection makefile for:    xplanet
# Date created:		22 Feb 2000
# Whom:			darius@dons.net.au
#
# $FreeBSD$
#

PORTNAME=	xplanet
PORTVERSION=	1.1.2
PORTREVISION=	1
CATEGORIES=	astro
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

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

USE_X_PREFIX=	yes
GNU_CONFIGURE=	yes
USE_GNOME=	#
CONFIGURE_ARGS=	--with-map-extension=jpg
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
		LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"

PLIST_FILES=	bin/xplanet

OPTIONS=	FREETYPE "Enable Freetype support" on \
		PANGO "Enable PANGO support" on \
		GIF "Enable GIF support" on \
		JPEG "Enable JPEG support" on \
		PNG "Enable PNG support" on \
		PNM "Enable PNM support" on \
		TIFF "Enable TIFF support" on

MAN1=	xplanet.1

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_FREETYPE)
CONFIGURE_ARGS+=	--with-freetype
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
.else
CONFIGURE_ARGS+=	--without-freetype
.endif

.if !defined(WITHOUT_PANGO)
CONFIGURE_ARGS+=	--with-pango
USE_GNOME+=	pango
.else
CONFIGURE_ARGS+=	--without-pango
.endif

.if !defined(WITHOUT_GIF)
CONFIGURE_ARGS+=	--with-gif
LIB_DEPENDS+=	ungif.5:${PORTSDIR}/graphics/libungif
.else
CONFIGURE_ARGS+=	--without-gif
.endif

.if !defined(WITHOUT_JPEG)
CONFIGURE_ARGS+=	--with-jpeg
LIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg
.else
CONFIGURE_ARGS+=	--without-jpeg
.endif

.if !defined(WITHOUT_PNG)
CONFIGURE_ARGS+=	--with-png
LIB_DEPENDS+=	png.5:${PORTSDIR}/graphics/png
.else
CONFIGURE_ARGS+=	--without-png
.endif

.if !defined(WITHOUT_PNM)
CONFIGURE_ARGS+=	--with-pnm
LIB_DEPENDS+=	netpbm.1:${PORTSDIR}/graphics/netpbm
.else
CONFIGURE_ARGS+=	--without-pnm
.endif

.if !defined(WITHOUT_TIFF)
CONFIGURE_ARGS+=	--with-tiff
LIB_DEPENDS+=	tiff.4:${PORTSDIR}/graphics/tiff
.else
CONFIGURE_ARGS+=	--without-tiff
.endif

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.post.mk>