summaryrefslogtreecommitdiff
path: root/math/goblin/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-01-08 15:36:04 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-01-08 15:36:04 +0000
commit44d6d1ffededc00a27d481cd317591c55704884a (patch)
tree82febdbe8c7f4ddaecfa808387eb6b9c728fc8ac /math/goblin/Makefile
parent- Update to version 1.7 (diff)
- Update to version 2.6.2
PR: 61076 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=97688
Diffstat (limited to 'math/goblin/Makefile')
-rw-r--r--math/goblin/Makefile34
1 files changed, 23 insertions, 11 deletions
diff --git a/math/goblin/Makefile b/math/goblin/Makefile
index 90e1e6ef03f8..d5a63d25416b 100644
--- a/math/goblin/Makefile
+++ b/math/goblin/Makefile
@@ -7,35 +7,47 @@
#
PORTNAME= goblin
-PORTVERSION= 2.6.1
+PORTVERSION= 2.6.2
CATEGORIES= misc
MASTER_SITES= http://www.math.uni-augsburg.de/opt/goblin.docs/
DISTNAME= ${PORTNAME}.${PORTVERSION}
+EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A Graph Object Library for Network Programming Problems
LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83
+CONFLICTS= ImageMagick-[0-9]* display-*
+
USE_REINPLACE= yes
USE_GMAKE= yes
-MAKE_ENV= LDFLAGS="${LDFLAGS}"
+MAKE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" \
+ CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
+ LD="${CXX}" LIBS="-lm ${LDFLAGS}" LISShared="-lm ${LDFLAGS}" \
+ libtcl=83 libtk=83 prefix=${PREFIX}
+ALL_TARGET= all goblin.a glpk.a
PLIST_SUB+= VERSION=${PORTVERSION:R}
CFLAGS+= -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 \
-I${X11BASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
+WISH= ${LOCALBASE}/bin/wish8.3
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+CXXFLAGS+= -fhuge-objects
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e \
- 's|g++ -c .* -Iinclude|$$(CXX) -c $$(CXXFLAGS) -Iinclude|g ; \
- s|g++ -lm|$$(CXX) -lm $$(LDFLAGS)|g ; \
- s|8\.3|83|g ; \
- s|/usr/include|$$(PREFIX)/include|g ; \
- s|/usr/lib|$$(PREFIX)/lib|g ; \
- s|/usr/bin|$$(PREFIX)/bin|g ; \
- s|-lpthread||g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|-lpthread||g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|/usr/bin/wish|${WISH}|g' ${WRKSRC}/display
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'
-.include <bsd.port.mk>
+post-install:
+ @${STRIP_CMD} ${PREFIX}/bin/gosh
+
+.include <bsd.port.post.mk>