ports/93547: Update math/glpk to version 4.9
Pedro F. Giffuni
giffunip at asme.org
Sun Feb 19 02:40:09 UTC 2006
>Number: 93547
>Category: ports
>Synopsis: Update math/glpk to version 4.9
>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: Sun Feb 19 02:40:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Pedro F. Giffuni
>Release: 6.0-Release (amd64)
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #12: Sat Feb 11 13:45:47 COT 2006 root at etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION amd64
>Description:
glpk doesn't have the option for generating a shared library, but on amd64 I need to build glpk with -fPIC in order to link dynamically a package called SYMPHONY (part of COIN-OR). While looking at the glpk port I also noticed there is a new version so I updated it.
While here, pet portlint by renaming a "file" variable with docus. Of course this must be reviewed by the maintainer.
>How-To-Repeat:
>Fix:
Patch follows:
diff -ruN glpk.orig/Makefile glpk/Makefile
--- glpk.orig/Makefile Sat Feb 18 20:16:49 2006
+++ glpk/Makefile Sat Feb 18 21:16:50 2006
@@ -6,7 +6,7 @@
#
PORTNAME= glpk
-PORTVERSION= 4.8
+PORTVERSION= 4.9
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= glpk
@@ -22,9 +22,15 @@
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- for file in ${DOCFILES} ; do \
- ${INSTALL_DATA} ${WRKSRC}/doc/$$file ${DOCSDIR} ; \
+ for docus in ${DOCFILES} ; do \
+ ${INSTALL_DATA} ${WRKSRC}/doc/$$docus ${DOCSDIR} ; \
done
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
+.include <bsd.port.post.mk>
diff -ruN glpk.orig/distinfo glpk/distinfo
--- glpk.orig/distinfo Sat Feb 18 20:16:49 2006
+++ glpk/distinfo Sat Feb 18 20:57:53 2006
@@ -1,2 +1,3 @@
-MD5 (glpk-4.8.tar.gz) = ec4df7a56a4ed98369c9f0bc7c82322b
-SIZE (glpk-4.8.tar.gz) = 972875
+MD5 (glpk-4.9.tar.gz) = e1aecaf58adaaf155d178a95e46f8d77
+SHA256 (glpk-4.9.tar.gz) = 473e8d1f69cd5be1fae2e31a9992e020cc2150d3892eec8c2fb85ac97633584d
+SIZE (glpk-4.9.tar.gz) = 1018189
diff -ruN glpk.orig/pkg-plist glpk/pkg-plist
--- glpk.orig/pkg-plist Sat Feb 18 20:16:49 2006
+++ glpk/pkg-plist Sat Feb 18 21:20:15 2006
@@ -2,10 +2,12 @@
bin/tspsol
include/glpavl.h
include/glpdmp.h
+include/glphbm.h
include/glpiet.h
include/glpinv.h
include/glpios.h
include/glpipm.h
+include/glpipp.h
include/glpk.h
include/glplib.h
include/glplpp.h
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list