Index: head/graphics/gts/Makefile =================================================================== --- head/graphics/gts/Makefile (revision 453642) +++ head/graphics/gts/Makefile (revision 453643) @@ -1,40 +1,33 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= gts PORTVERSION= 0.7.6 -PORTREVISION= 4 +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 pathfix pkgconfig +USES= libtool localbase pathfix pkgconfig USE_GNOME= glib20 USE_LDCONFIG= yes OPTIONS_DEFINE= NETPBM OPTIONS_SUB= yes -NETPBM_DESC= Build with libnetpbm support +NETPBM_CONFIGURE_ENV_OFF= ac_cv_lib_netpbm_pgm_init=no NETPBM_LIB_DEPENDS= libnetpbm.so:graphics/netpbm -CPPFLAGS+= -I${LOCALBASE}/include -LIBS+= -L${LOCALBASE}/lib - -.include - -post-patch: -.if ! ${PORT_OPTIONS:MNETPBM} - @${REINPLACE_CMD} -e 's|netpbm="true"|netpbm="false"|' \ - ${WRKSRC}/configure -.endif +post-patch-NETPBM-on: + @${REINPLACE_CMD} -e 's|||' \ + ${WRKSRC}/examples/happrox.c .include