aboutsummaryrefslogtreecommitdiff
path: root/math/abacus/Makefile
blob: d0a9b617dee1f5964df08256d5fb91ae6247b6b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: gahr
# $FreeBSD$

PORTNAME=	abacus
DISTVERSION=	3.2betaU1
PORTREVISION=	8
CATEGORIES=	math
MASTER_SITES=	http://www.informatik.uni-koeln.de/abacus/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Branch-And-CUt System

LICENSE=	LGPL21+

LIB_DEPENDS=	libClp.so:${PORTSDIR}/math/coinmp

NO_WRKSUBDIR=	yes

USES=		gmake perl5
USE_PERL5=	build
USE_LDCONFIG=	yes
ALL_TARGET=	abacus
MAKE_ARGS=	CCC="${CXX}" PERL="${PERL}" STRIP="${STRIP_CMD} -x" \
		ARCHIVE="${AR} ${ARFLAGS}" CCFLAG_DEBOPT="${CXXFLAGS}" \
		OSI_INCLUDE="${LOCALBASE}/include/coin"

do-install:
	${INSTALL_DATA} ${WRKSRC}/lib/linux20-gcc44/libabacus-osi.a \
		${STAGEDIR}${PREFIX}/lib
	${INSTALL_LIB} ${WRKSRC}/lib/linux20-gcc44/libabacus-osi.so.1 \
		${STAGEDIR}${PREFIX}/lib
	${LN} -sf libabacus-osi.so.1 \
		${STAGEDIR}${PREFIX}/lib/libabacus-osi.so
	(cd ${WRKSRC}/Include && ${COPYTREE_SHARE} abacus \
		${STAGEDIR}${PREFIX}/include)

.include <bsd.port.mk>