blob: 8c15a1a1061a951ffc9d014ac71c243769c99a93 (
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
|
# ex:ts=8
# Ports collection makefile for: gts
# Date created: Jun 23, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gts
PORTVERSION= 0.7.6
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= erik@bz.bzflag.bz
COMMENT= GNU Triangulated Surface Library
USE_GNOME= glib20 pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG= yes
OPTIONS= NETPBM "Build with libnetpbm support" off
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if defined(WITH_NETPBM)
LIB_DEPENDS+= netpbm.1:${PORTSDIR}/graphics/netpbm
PLIST_SUB= NETPBM=""
.else
PLIST_SUB= NETPBM="@comment "
.endif
post-extract:
.if !defined(WITH_NETPBM)
@${REINPLACE_CMD} -e 's|netpbm="true"|netpbm="false"|' \
${WRKSRC}/configure
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|-release \$$(LT_RELEASE)||g ; s|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|'
.include <bsd.port.post.mk>
|