ports/118265: update math/glpk to version 4.24

Pedro F. Giffuni giffunip at tutopia.com
Mon Nov 26 19:10:02 UTC 2007


>Number:         118265
>Category:       ports
>Synopsis:       update math/glpk to version 4.24
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 26 19:10:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.2-Release (amd64)
>Organization:
>Environment:
FreeBSD kakumen.cable.net.co 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 08:43:30 UTC 2007     root at portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  amd64

>Description:
- Update to latest version of glpk.
- include headers required for building gmpl support in math/clp
- remover -fPIC hack for amd64 which doesn't seem necessary anymore.
>How-To-Repeat:

>Fix:
diff -ruN glpk.orig/Makefile glpk/Makefile
--- glpk.orig/Makefile	Mon Nov 26 11:45:58 2007
+++ glpk/Makefile	Mon Nov 26 13:33:38 2007
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	glpk
-PORTVERSION=	4.21
+PORTVERSION=	4.24
 CATEGORIES=	math
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	glpk
@@ -23,11 +23,19 @@
 USE_LDCONFIG=	yes
 CFLAGS+=	-trigraphs
 
+GMPL_H= 	glpavl.h glpdmp.h glplib.h glpmpl.h glprng.h glpstd.h
+GMPLDIR=	${LOCALBASE}/include/gmpl
+
 .if !defined(NOPORTDOCS)
 PORTDOCS=	bench.txt bench1.txt glpk.ps glpk_faq.txt gmpl.ps opb.txt
 .endif
 
 post-install:
+	@${MKDIR} ${GMPLDIR}
+	for incfile in ${GMPL_H} ; do \
+		${INSTALL_DATA} ${WRKSRC}/include/$${incfile} ${GMPLDIR} ; \
+	done
+
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 	for docfile in ${PORTDOCS} ; do \
@@ -35,10 +43,4 @@
 	done
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "amd64"
-CFLAGS+=	-fPIC
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN glpk.orig/distinfo glpk/distinfo
--- glpk.orig/distinfo	Mon Nov 26 11:45:58 2007
+++ glpk/distinfo	Mon Nov 26 11:48:16 2007
@@ -1,3 +1,3 @@
-MD5 (glpk-4.21.tar.gz) = a41df71415c97fc5c541d19547ced10a
-SHA256 (glpk-4.21.tar.gz) = 3be04106ef18b1f92af9fe7936ecb675a04cabab72ff65e1a03bf2205d99d549
-SIZE (glpk-4.21.tar.gz) = 1413712
+MD5 (glpk-4.24.tar.gz) = 765dcecc20dc6b80362e65c755f41976
+SHA256 (glpk-4.24.tar.gz) = 23326c9dd21762159b6fa946e41e0e95d233c6e9f9a69134ef10e3541cd516c9
+SIZE (glpk-4.24.tar.gz) = 1449575
diff -ruN glpk.orig/pkg-plist glpk/pkg-plist
--- glpk.orig/pkg-plist	Mon Nov 26 11:45:58 2007
+++ glpk/pkg-plist	Mon Nov 26 13:34:10 2007
@@ -1,6 +1,13 @@
 bin/glpsol
 include/glpk.h
+include/gmpl/glpavl.h
+include/gmpl/glpdmp.h
+include/gmpl/glplib.h
+include/gmpl/glpmpl.h
+include/gmpl/glprng.h
+include/gmpl/glpstd.h
+ at dirrm include/gmpl
 lib/libglpk.a
 lib/libglpk.la
 lib/libglpk.so
-lib/libglpk.so.6
+lib/libglpk.so.9


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list