1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/gts/Makefile
Tobias Kortkamp a75c8d5ebf graphics/gts: Unbreak build WITH=NETPBM
happrox.c:24:10: fatal error: 'pgm.h' file not found

The netpbm update from r451378 moved netpbm headers from include/ to
include/netpbm/, but gts looks for them in include/ only.

While here also clean up the port a little bit:

- Remove NETPBM_DESC since it's already in bsd.options.desc.mk
- Disable netpbm via an autoconf variable instead of patching
  configure

PR:		222958
Reported by:	Phil Pennock <freebsd@phil.spodhuis.org>
Approved by:	erik@bz.bzflag.bz (maintainer timeout, 2 weeks)
2017-11-06 20:09:39 +00:00

34 lines
639 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= gts
PORTVERSION= 0.7.6
PORTREVISION= 5
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 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>