svn commit: r419263 - head/math/glpk
Pawel Pekala
pawel at FreeBSD.org
Fri Jul 29 17:31:45 UTC 2016
Author: pawel
Date: Fri Jul 29 17:31:43 2016
New Revision: 419263
URL: https://svnweb.freebsd.org/changeset/ports/419263
Log:
- Update to version 4.55 [1]
- Convert to USES=localbase
- Move OPTIONS block to proper place, use helpers
- Argument --disable-dl for MYSQL=off was dropped because
it made configure script fail when IODBC=on
PR: 203448
Submitted by: pfg [1]
Modified:
head/math/glpk/Makefile
head/math/glpk/distinfo
head/math/glpk/pkg-plist
Modified: head/math/glpk/Makefile
==============================================================================
--- head/math/glpk/Makefile Fri Jul 29 16:03:42 2016 (r419262)
+++ head/math/glpk/Makefile Fri Jul 29 17:31:43 2016 (r419263)
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= glpk
-PORTVERSION= 4.52.1
-PORTREVISION= 3
+PORTVERSION= 4.55
CATEGORIES= math
MASTER_SITES= GNU
@@ -14,57 +13,39 @@ LICENSE= GPLv3
LIB_DEPENDS= libgmp.so:math/gmp
-OPTIONS_DEFINE= IODBC MYSQL DOCS
-IODBC_DESC= MathProg iodbc support
-MYSQL_DESC= MathProg mysql support
-
GNU_CONFIGURE= yes
-USES= gmake libtool
+USES= gmake libtool localbase
USE_LDCONFIG= yes
CFLAGS+= -trigraphs
-CPPFLAGS+= -D_LSEEK_DECLARED -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -D_LSEEK_DECLARED
CONFIGURE_ARGS+= --with-gmp
CONFLICTS= goblin-[0-9]*
-.include <bsd.port.options.mk>
+DOCS1= cnfsat.pdf glpk.pdf gmpl.pdf graphs.pdf miplib2.txt \
+ miplib3.txt netlib.txt
+DOCS2= dfeas.pdf gomory.pdf keller.pdf scaling.pdf
+PORTDOCS= ${DOCS1} ${DOCS2}
-.if ${PORT_OPTIONS:MIODBC} || ${PORT_OPTIONS:MMYSQL}
-CONFIGURE_ARGS+= --enable-dl=dlfcn
-.else
-CONFIGURE_ARGS+= --disable-dl
-.endif
-
-.if ${PORT_OPTIONS:MIODBC}
-CONFIGURE_ARGS+= --enable-odbc
-LIB_DEPENDS+= libiodbc.so:databases/libiodbc
-.else
-CONFIGURE_ARGS+= --disable-odbc
-.endif
-
-.if ${PORT_OPTIONS:MMYSQL}
-CONFIGURE_ARGS+= --enable-mysql
-USE_MYSQL= yes
-.else
-CONFIGURE_ARGS+= --disable-mysql
-.endif
+OPTIONS_DEFINE= IODBC MYSQL DOCS
+
+IODBC_DESC= MathProg iodbc support
+IODBC_CONFIGURE_ON= --enable-dl=dlfcn --enable-odbc
+IODBC_CONFIGURE_OFF= --disable-dl --disable-odbc
+IODBC_LIB_DEPENDS= libiodbc.so:databases/libiodbc
+
+MYSQL_DESC= MathProg mysql support
+MYSQL_CONFIGURE_ON= --enable-dl=dlfcn --enable-mysql
+MYSQL_CONFIGURE_OFF= --disable-mysql
+MYSQL_USES= mysql
post-patch:
@${REINPLACE_CMD} -e "s;\/usr\/include\/mysql;${LOCALBASE}\/include\/mysql;g" \
${WRKSRC}/configure
-DOCS1= cnfsat.pdf glpk.pdf glpk_faq.txt gmpl.pdf graphs.pdf miplib2.txt \
- miplib3.txt netlib.txt
-DOCS2= dfeas.pdf gomory.pdf keller.pdf scaling.pdf updating.pdf
-PORTDOCS= ${DOCS1} ${DOCS2}
-
-post-install:
- @${INSTALL_DATA} ${WRKSRC}/src/glplpx.h ${STAGEDIR}${PREFIX}/include
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- @cd ${WRKSRC}/doc ; \
+ cd ${WRKSRC}/doc ; \
${INSTALL_DATA} ${DOCS1} ${DOCS2:S|^|notes/|} ${STAGEDIR}${DOCSDIR}
-.endif
check regression-test test: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check)
Modified: head/math/glpk/distinfo
==============================================================================
--- head/math/glpk/distinfo Fri Jul 29 16:03:42 2016 (r419262)
+++ head/math/glpk/distinfo Fri Jul 29 17:31:43 2016 (r419263)
@@ -1,2 +1,2 @@
-SHA256 (glpk-4.52.1.tar.gz) = 3231685b9ff92d30ccbb5c21ba7815b25ba59c7d1e5194e57a880dd1ebb3e95b
-SIZE (glpk-4.52.1.tar.gz) = 2812957
+SHA256 (glpk-4.55.tar.gz) = 37090d7f16796ec1034496e182a39d5cc8bb7c9fb5dc48a38b13d620bf2b1de7
+SIZE (glpk-4.55.tar.gz) = 3424345
Modified: head/math/glpk/pkg-plist
==============================================================================
--- head/math/glpk/pkg-plist Fri Jul 29 16:03:42 2016 (r419262)
+++ head/math/glpk/pkg-plist Fri Jul 29 17:31:43 2016 (r419263)
@@ -1,7 +1,6 @@
bin/glpsol
include/glpk.h
-include/glplpx.h
lib/libglpk.a
lib/libglpk.so
lib/libglpk.so.36
-lib/libglpk.so.36.0.1
+lib/libglpk.so.36.1.2
More information about the svn-ports-all
mailing list