aboutsummaryrefslogtreecommitdiff
path: root/graphics/gts
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2005-11-30 13:06:59 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2005-11-30 13:06:59 +0000
commitaef4c9e7c1cb324c4fe7bdc3da70e578e3c78990 (patch)
tree417b965c55ca08f6d5085461f28715592e8b927b /graphics/gts
parentcafa20fd3c11a143e3269305eb94f1bdd1cdebc8 (diff)
downloadports-aef4c9e7c1cb324c4fe7bdc3da70e578e3c78990.tar.gz
ports-aef4c9e7c1cb324c4fe7bdc3da70e578e3c78990.zip
Update to 0.7.4 [1]
Add OPTIONS to use netpbm and fix when netpbm is installed manually Add SHA256 PR: 88625 [1] Submitted by: Erik Greenwald <erik@smluc.org> (maintainer)
Notes
Notes: svn path=/head/; revision=150037
Diffstat (limited to 'graphics/gts')
-rw-r--r--graphics/gts/Makefile24
-rw-r--r--graphics/gts/distinfo5
-rw-r--r--graphics/gts/pkg-plist4
3 files changed, 26 insertions, 7 deletions
diff --git a/graphics/gts/Makefile b/graphics/gts/Makefile
index a6cd1002b1bd..fe13deba88e8 100644
--- a/graphics/gts/Makefile
+++ b/graphics/gts/Makefile
@@ -7,8 +7,7 @@
#
PORTNAME= gts
-PORTVERSION= 0.7.3
-PORTREVISION= 2
+PORTVERSION= 0.7.4
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,17 +16,34 @@ MAINTAINER= erik@smluc.org
COMMENT= GNU Triangulated Surface Library
USE_GNOME= glib20 gnometarget pkgconfig
-USE_GETOPT_LONG= yes
+USE_GETOPT_LONG=yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= 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.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/gts/distinfo b/graphics/gts/distinfo
index 1bf12c679402..b022aa42dd8f 100644
--- a/graphics/gts/distinfo
+++ b/graphics/gts/distinfo
@@ -1,2 +1,3 @@
-MD5 (gts-0.7.3.tar.gz) = c02209e38229eb2abb1370dadd0020b4
-SIZE (gts-0.7.3.tar.gz) = 844990
+MD5 (gts-0.7.4.tar.gz) = 1662f3899ce6c72477e096bbef46361d
+SHA256 (gts-0.7.4.tar.gz) = 5d6dde8bc4e7fc4ac0495a89153e5ceca3e56ff0c42806ca242882a1628b6cad
+SIZE (gts-0.7.4.tar.gz) = 947253
diff --git a/graphics/gts/pkg-plist b/graphics/gts/pkg-plist
index 2030adeb807b..53d523759651 100644
--- a/graphics/gts/pkg-plist
+++ b/graphics/gts/pkg-plist
@@ -1,3 +1,4 @@
+bin/delaunay
bin/gts-config
bin/gts2dxf
bin/gts2oogl
@@ -5,12 +6,13 @@ bin/gts2stl
bin/gtscheck
bin/gtscompare
bin/gtstemplate
+%%NETPBM%%bin/happrox
bin/stl2gts
bin/transform
include/gts.h
include/gtsconfig.h
lib/libgts.a
lib/libgts.so
-lib/libgts.so.3
+lib/libgts.so.4
libdata/pkgconfig/gts.pc
share/aclocal/gts.m4