aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-01-31 17:01:23 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-01-31 17:01:23 +0800
commit63dfcb8119a8d2546e4b23fdd34c0407a6d36bae (patch)
treef093d0ca75cab2008c6c06864f4849bfac805b2c /math
parent3619ee19243e5cbbc669206a330c69bb436f34ac (diff)
downloadfreebsd-ports-gnome-63dfcb8119a8d2546e4b23fdd34c0407a6d36bae.tar.gz
freebsd-ports-gnome-63dfcb8119a8d2546e4b23fdd34c0407a6d36bae.tar.zst
freebsd-ports-gnome-63dfcb8119a8d2546e4b23fdd34c0407a6d36bae.zip
- Fix LICENSE
- Add LICENSE_FILE - Fix CONFLICTS - Strip library - Switch to new test framework - Simplify docs installation
Diffstat (limited to 'math')
-rw-r--r--math/glpk/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/math/glpk/Makefile b/math/glpk/Makefile
index 6750de7c5513..b3d5f689c5dd 100644
--- a/math/glpk/Makefile
+++ b/math/glpk/Makefile
@@ -3,28 +3,30 @@
PORTNAME= glpk
PORTVERSION= 4.55
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= GNU
MAINTAINER= ports@FreeBSD.org
COMMENT= GNU Linear Programming Kit
-LICENSE= GPLv3
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgmp.so:math/gmp
+CONFLICTS= goblin-[0-9]*
+
GNU_CONFIGURE= yes
USES= gmake libtool localbase
USE_LDCONFIG= yes
CFLAGS+= -trigraphs
CPPFLAGS+= -D_LSEEK_DECLARED
-CONFIGURE_ARGS+= --with-gmp
-CONFLICTS= goblin-[0-9]*
+CONFIGURE_ARGS= --with-gmp
+INSTALL_TARGET= install-strip
+TEST_TARGET= check
-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}
+PORTDOCS= *
OPTIONS_DEFINE= IODBC MYSQL DOCS
@@ -40,14 +42,13 @@ MYSQL_USES= mysql
post-patch:
@${REINPLACE_CMD} -e "s;\/usr\/include\/mysql;${LOCALBASE}\/include\/mysql;g" \
- ${WRKSRC}/configure
+ ${WRKSRC}/configure
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC}/doc ; \
- ${INSTALL_DATA} ${DOCS1} ${DOCS2:S|^|notes/|} ${STAGEDIR}${DOCSDIR}
-
-check regression-test test: build
- @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check)
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} cnfsat.pdf glpk.pdf gmpl.pdf \
+ graphs.pdf miplib2.txt miplib3.txt netlib.txt ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/doc/notes && ${INSTALL_DATA} dfeas.pdf gomory.pdf \
+ keller.pdf scaling.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>