summaryrefslogtreecommitdiffstats
path: root/graphics/gts/Makefile
blob: 769f37a2344c0b306c784eb7fdad2abb1f133895 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	gts
PORTVERSION=	0.7.6
PORTREVISION=	4
CATEGORIES=	graphics
MASTER_SITES=	SF

MAINTAINER=	erik@bz.bzflag.bz
COMMENT=	GNU Triangulated Surface Library

LICENSE=	LGPL20

CONFLICTS=	pcb-[0-9]*

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USES=		libtool pathfix pkgconfig
USE_GNOME=	glib20
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	NETPBM
OPTIONS_SUB=	yes

NETPBM_DESC=		Build with libnetpbm support
NETPBM_LIB_DEPENDS=	libnetpbm.so:graphics/netpbm

CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

.include <bsd.port.options.mk>

post-patch:
.if ! ${PORT_OPTIONS:MNETPBM}
	@${REINPLACE_CMD} -e 's|netpbm="true"|netpbm="false"|' \
		${WRKSRC}/configure
.endif

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