aboutsummaryrefslogtreecommitdiff
path: root/graphics/gts/Makefile
blob: f29cae7d898e25f3246bff02e3b78b192379e12b (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
PORTNAME=	gts
PORTVERSION=	0.7.6
PORTREVISION=	5
CATEGORIES=	graphics
MASTER_SITES=	SF

MAINTAINER=	erik@bz.bzflag.bz
COMMENT=	GNU Triangulated Surface Library
WWW=		https://gts.sourceforge.net/

LICENSE=	LGPL20

CONFLICTS=	pcb

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

OPTIONS_DEFINE=	NETPBM
OPTIONS_SUB=	yes

NETPBM_CONFIGURE_ENV_OFF=	ac_cv_lib_netpbm_pgm_init=no
NETPBM_LIB_DEPENDS=	libnetpbm.so:graphics/netpbm

post-patch-NETPBM-on:
	@${REINPLACE_CMD} -e 's|<pgm.h>|<netpbm/pgm.h>|' \
		${WRKSRC}/examples/happrox.c

.include <bsd.port.mk>