1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/math/glpk/Makefile
Stefan Eßer 819f25b36d */*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
2021-10-29 11:50:18 +02:00

53 lines
1.3 KiB
Makefile

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
PORTNAME= glpk
DISTVERSION= 5.0
CATEGORIES= math
MASTER_SITES= GNU
MAINTAINER= dmgk@FreeBSD.org
COMMENT= GNU Linear Programming Kit
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgmp.so:math/gmp
CONFLICTS= goblin
USES= gmake libtool localbase
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -trigraphs
CPPFLAGS+= -D_LSEEK_DECLARED
CONFIGURE_ARGS= --with-gmp
INSTALL_TARGET= install-strip
TEST_TARGET= check
PORTDOCS= *
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
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
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} gomory.pdf keller.pdf \
scf.pdf simplex1.pdf simplex2.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>