2002-03-03 12:06:20 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: goblin
|
|
|
|
# Date created: Mar 3, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= goblin
|
2003-04-01 08:44:28 +00:00
|
|
|
PORTVERSION= 2.6.b5
|
2002-03-03 12:06:20 +00:00
|
|
|
CATEGORIES= misc
|
|
|
|
MASTER_SITES= http://www.math.uni-augsburg.de/opt/goblin.docs/
|
2003-04-01 08:44:28 +00:00
|
|
|
DISTNAME= ${PORTNAME}.${PORTVERSION:R}${PORTVERSION:E}
|
2002-03-03 12:06:20 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A Graph Object Library for Network Programming Problems
|
2002-03-03 12:06:20 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83 \
|
|
|
|
tk83:${PORTSDIR}/x11-toolkits/tk83
|
|
|
|
|
2002-06-22 17:23:30 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2002-03-03 12:06:20 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 \
|
|
|
|
-I${X11BASE}/include
|
|
|
|
LIBS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
2003-04-01 08:44:28 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
PLIST_SUB+= PORTVER=${PORTVERSION:R}
|
2002-10-09 19:23:41 +00:00
|
|
|
|
2002-03-03 12:06:20 +00:00
|
|
|
post-patch:
|
2002-06-22 17:23:30 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g ; \
|
2002-03-03 12:06:20 +00:00
|
|
|
s,g\+\+,${CXX},g ; \
|
|
|
|
s,%%CXXFLAGS%%,${CXXFLAGS},g ; s,%%LIBS%%,${LIBS},g ; \
|
|
|
|
s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
|
2003-04-01 08:44:28 +00:00
|
|
|
.for file in include/globals.h globals.cpp
|
|
|
|
@${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/${file}
|
|
|
|
.endfor
|
2002-03-03 12:06:20 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|