ports/51863: Update port: misc/goblin to 2.6

KATO Tsuguru tkato at prontomail.com
Tue May 6 14:40:42 UTC 2003


>Number:         51863
>Category:       ports
>Synopsis:       Update port: misc/goblin to 2.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 06 07:40:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 2.6

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/misc/goblin/Makefile misc/goblin/Makefile
--- /usr/ports/misc/goblin/Makefile	Sat Apr 12 22:58:43 2003
+++ misc/goblin/Makefile	Sat May  3 01:33:16 2003
@@ -7,30 +7,26 @@
 #
 
 PORTNAME=	goblin
-PORTVERSION=	2.6.b5
+PORTVERSION=	2.6
 CATEGORIES=	misc
 MASTER_SITES=	http://www.math.uni-augsburg.de/opt/goblin.docs/
-DISTNAME=	${PORTNAME}.${PORTVERSION:R}${PORTVERSION:E}
+DISTNAME=	${PORTNAME}.${PORTVERSION}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A Graph Object Library for Network Programming Problems
 
-LIB_DEPENDS=	tcl83:${PORTSDIR}/lang/tcl83 \
-		tk83:${PORTSDIR}/x11-toolkits/tk83
+LIB_DEPENDS=	tk83.1:${PORTSDIR}/x11-toolkits/tk83
 
 USE_REINPLACE=	yes
+USE_GMAKE=	yes
+MAKE_ENV=	LDFLAGS="${LDFLAGS}"
+PLIST_SUB+=	PORTVER=${PORTVERSION}
 
 CFLAGS+=	-I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 \
-		-I${X11BASE}/include
-LIBS=		-L${LOCALBASE}/lib -L${X11BASE}/lib
-USE_GMAKE=	yes
-PLIST_SUB+=	PORTVER=${PORTVERSION:R}
+		-I${X11BASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
 
 post-patch:
-	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g ; \
-		s,g\+\+,${CXX},g ; \
-		s,%%CXXFLAGS%%,${CXXFLAGS},g ; s,%%LIBS%%,${LIBS},g ; \
-		s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
 .for file in include/globals.h globals.cpp
 	@${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/${file}
 .endfor
diff -urN /usr/ports/misc/goblin/distinfo misc/goblin/distinfo
--- /usr/ports/misc/goblin/distinfo	Sat Apr 12 22:58:43 2003
+++ misc/goblin/distinfo	Sat May  3 00:56:52 2003
@@ -1 +1 @@
-MD5 (goblin.2.6b5.tar.gz) = 93888501dd9f1a8425289059aa578892
+MD5 (goblin.2.6.tar.gz) = bd59339b968e9dd383e493a3530fafc7
diff -urN /usr/ports/misc/goblin/files/patch-Makefile misc/goblin/files/patch-Makefile
--- /usr/ports/misc/goblin/files/patch-Makefile	Sat Apr 12 22:58:43 2003
+++ misc/goblin/files/patch-Makefile	Thu Apr 24 17:47:27 2003
@@ -1,19 +1,19 @@
---- Makefile.orig	Mon Mar 31 19:07:24 2003
-+++ Makefile	Mon Mar 31 19:08:45 2003
+--- Makefile.orig	Tue Apr 22 02:49:35 2003
++++ Makefile	Thu Apr 24 17:31:11 2003
 @@ -26,13 +26,13 @@
  
  # GNU
  
 -cpp = g++ -c -g -O5 -Wall -pedantic -Iinclude
-+cpp = g++ -c -g -O5 -Wall -pedantic -Iinclude %%CXXFLAGS%%
++cpp = $(CXX) -c $(CXXFLAGS) -pedantic -Iinclude
  # To link with the static library libtcl.*.a
 -link = g++ -lm
-+link = g++ -lm %%LIBS%%
++link = $(CXX) -lm $(LDFLAGS)
  # To link with the shared object libtcl.*.so
  # link = g++ -lm -Wl,-brtl -bbigtoc
  # To link shared object
 -linkShared = g++ -lm -Wl,-shared
-+linkShared = g++ -lm -Wl,-shared %%LIBS%%
++linkShared = $(CXX) -lm -Wl,-shared $(LDFLAGS)
  
  # xlC
  
@@ -32,9 +32,27 @@
 -goblin_include_path = /usr/include
 -goblin_lib_path     = /usr/lib
 -goblin_bin_path     = /usr/bin
-+goblin_include_path = %%PREFIX%%/include
-+goblin_lib_path     = %%PREFIX%%/lib
-+goblin_bin_path     = %%PREFIX%%/bin
++goblin_include_path = $(PREFIX)/include
++goblin_lib_path     = $(PREFIX)/lib
++goblin_bin_path     = $(PREFIX)/bin
  
  
  #------------------------------------------------------------------------
+@@ -683,7 +683,7 @@
+ 
+ shared:	$(objects) goshMain.o goshGraph.o goshLin.o message.o
+ 	$(linkShared) $(objects) goshMain.o goshGraph.o goshLin.o message.o \
+-        -lpthread -o libgoblin.so 
++        -o libgoblin.so 
+ 
+ 
+ 
+@@ -691,7 +691,7 @@
+ 
+ gosh:	goblin $(gosh_objects)
+ 	$(link) $(gosh_objects) goblin.a \
+-        -lpthread -ltcl$(libtcl) -ltk$(libtk) -o gosh
++        -ltcl$(libtcl) -ltk$(libtk) -o gosh
+ 
+ 
+ 
diff -urN /usr/ports/misc/goblin/pkg-plist misc/goblin/pkg-plist
--- /usr/ports/misc/goblin/pkg-plist	Sat Apr 12 22:58:46 2003
+++ misc/goblin/pkg-plist	Sat May  3 01:34:19 2003
@@ -108,7 +108,6 @@
 bin/goblin.%%PORTVER%%/samples/connect7.gob
 bin/goblin.%%PORTVER%%/samples/dodeka.gob
 bin/goblin.%%PORTVER%%/samples/dsearch1.gob
-bin/goblin.%%PORTVER%%/samples/dummy.gob
 bin/goblin.%%PORTVER%%/samples/europe.gob
 bin/goblin.%%PORTVER%%/samples/gedecomp1.gob
 bin/goblin.%%PORTVER%%/samples/gedecomp2.gob
@@ -124,6 +123,7 @@
 bin/goblin.%%PORTVER%%/samples/gsearch1.gob
 bin/goblin.%%PORTVER%%/samples/hamilton57.gob
 bin/goblin.%%PORTVER%%/samples/icosa.gob
+bin/goblin.%%PORTVER%%/samples/lp3a.gob
 bin/goblin.%%PORTVER%%/samples/maxbflow1.gob
 bin/goblin.%%PORTVER%%/samples/maxbflow2.gob
 bin/goblin.%%PORTVER%%/samples/maxbflow3.gob
@@ -231,14 +231,10 @@
 bin/goblin.%%PORTVER%%/stepSingle.gif
 bin/goblin.%%PORTVER%%/stepSingle2.gif
 bin/goblin.%%PORTVER%%/tableauCol.gif
-bin/goblin.%%PORTVER%%/tableauCol.gif2
 bin/goblin.%%PORTVER%%/tableauObj.gif
-bin/goblin.%%PORTVER%%/tableauObj.gif2
 bin/goblin.%%PORTVER%%/tableauPivot.gif
 bin/goblin.%%PORTVER%%/tableauRHS.gif
-bin/goblin.%%PORTVER%%/tableauRHS.gif2
 bin/goblin.%%PORTVER%%/tableauRow.gif
-bin/goblin.%%PORTVER%%/tableauRow.gif2
 bin/goblin.%%PORTVER%%/tclLogo.gif
 bin/goblin.%%PORTVER%%/title.tk
 bin/goblin.%%PORTVER%%/toggleBrowser.gif
@@ -246,6 +242,7 @@
 bin/goblin.%%PORTVER%%/toggleScript.gif
 bin/goblin.%%PORTVER%%/traceopt.tk
 bin/goblin.%%PORTVER%%/workspace.tk
+include/goblin.%%PORTVER%%/~globals.h
 include/goblin.%%PORTVER%%/absbal.h
 include/goblin.%%PORTVER%%/absbig.h
 include/goblin.%%PORTVER%%/absdig.h
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list