summaryrefslogblamecommitdiff
path: root/math/topcom/Makefile
blob: 72d403737fd73641af5ca7b8dff9e21240cb420e (plain) (tree)
1
2
3
                      
                      
                 




















                                                                                      






                                                                                                                     









                                                                                           


                                                                                                           
                      
PORTNAME=	topcom
DISTVERSION=	0.17.8
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	http://www.rambau.wm.uni-bayreuth.de/Software/
DISTNAME=	${PORTNAME:tu}-${DISTVERSION}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Computing triangulations of point configurations and oriented matroids

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libcddgmp.so:math/cddlib \
		libgmp.so:math/gmp

USES=		autoreconf gmake localbase:ldflags
GNU_CONFIGURE=	yes

CFLAGS+=	-I${LOCALBASE}/include/cdd/
LDFLAGS+=	-lgmp -lgmpxx -lcddgmp

WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}

OPTIONS_DEFINE=		SOPLEX # SOPLEX shouldn't be made default because SoPlex's license prevents packaging.

SOPLEX_DESC=		Build with SoPlex linear programming problem solver
SOPLEX_CXXFLAGS=	-I${LOCALBASE}/include/soplex
SOPLEX_LIB_DEPENDS=	libsoplex.so:math/SoPlex
SOPLEX_BROKEN=		not compatible with SoPlex-5.0.2 - missing header, reported to the upstream author vie e-mail

post-extract:
	@${RM} -r ${WRKSRC}/external

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile*" \
		| ${XARGS} ${REINPLACE_CMD} ' \
			s|\.\./external/lib/libcddgmp\.a|${LOCALBASE}/lib/libcddgmp.so| ; \
			s|\.\./external/lib/libgmp\.a|${LOCALBASE}/lib/libgmp.so| ; \
			s|\.\./external/lib/libgmpxx\.a|${LOCALBASE}/lib/libgmpxx.so|'

post-patch-SOPLEX-off:
	@${REINPLACE_CMD} -e 's|AC_CHECK_LIB(soplex,|AC_CHECK_LIB(soplex_disabled,|' ${WRKSRC}/configure.ac

.include <bsd.port.mk>