[Coin-discuss] FreeBSD port for COIN

David Bremner bremner at unb.ca
Mon Jul 26 17:17:56 EDT 2004


Has anyone thought about a FreeBSD port (in the technical sense of
packaging for the /usr/ports/ hierarchy) for COIN?  I append an
initial stab at it to the end of this message.  It is not really
polished, but does support (via make config) choosing which projects
to build.

I have not extensively tested it (or run portlint) but I thought if
someone else was working on it, we should combine efforts.

David Bremner

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	coin-or
#	coin-or/Makefile
#	coin-or/distinfo
#	coin-or/pkg-descr
#
echo c - coin-or
mkdir -p coin-or > /dev/null 2>&1
echo x - coin-or/Makefile
sed 's/^X//' >coin-or/Makefile << 'END-of-coin-or/Makefile'
X# New ports collection makefile for:   COIN-OR
X# Date created:        May 24 2001
X# Whom:                bremner at unb.ca
X#
X# $FreeBSD$
X#
X
XPORTNAME=      	coin-or
XPORTVERSION=   	2004.07.26
XCATEGORIES=    	math
X
XMASTER_SITES=  	http://www.cs.unb.ca/~bremner/FreeBSD/
XDISTNAME=	COIN
XDISTFILES=	COIN_2004Jul26.tgz
X
XMAINTAINER=    	bremner at unb.ca
XCOMMENT=	Computational infrastructure for operations research
X
XUSE_GMAKE=	YES
XALL_TARGET=	install
XINSTALLS_SHLIB=	YES
XPLIST=${WRKDIR}/PLIST
XBUILD_SUBDIRS=	Coin 
X
XOPTIONS=\
X	Bcp     "Branch-Cut-Price" off\
X	Cgl     "Cut Generator Library" off\
X	Clp     "COIN LP, a simplex solver" off\
X	dylp    "Dynamic LP" off\
X	Dfo     "Derivative-Free Optimization" off \
X	Ipopt   "Interior Point OPTimizer" off\
X	multifario	"Computing implicitly defined manifolds" off\
X	NLPAPI  "Nonlinear Programming API" off\
X	Osi     "Open Solver Interface" off\
X	Ots     "Open Tabu Search" off\
X	Sbb     "Simple Branch and Bound, a branch-and-cut code" off\
X	Smi     "Stochastic Modeling Interface" off\
X	Vol    	"Volume Algorithm" off
X
X
XALL_OPTIONS= Bcp Cgl Clp dylp Dfo Ipopt  multifario NLPAPI \
X	Osi  Ots  Sbb  Smi  Vol    
X
X.include <bsd.port.pre.mk>
X
X.if exists(${OPTIONSFILE})
X.include "${OPTIONSFILE}"
X.endif
X
Xpre-build:
X.for opt in $(ALL_OPTIONS)
X.	if defined(WITH_${opt})
XBUILD_SUBDIRS+=	${opt}
X.	endif
X.endfor
X
Xdo-build:
X.	for MODULE in ${BUILD_SUBDIRS}
X		@(cd ${WRKSRC}/${MODULE}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
X.	endfor
X
X
Xpre-install:
X	@- cd ${WRKSRC} && find bin lib include  -type f >> ${PLIST}
X
Xdo-install:
X	- find ${WRKSRC}/bin -type f -exec ${INSTALL_PROGRAM} {} ${PREFIX}/bin \;
X	find ${WRKSRC}/include -type f -exec ${INSTALL_DATA} {} ${PREFIX}/include \;
X	find ${WRKSRC}/lib -type f -exec ${INSTALL_DATA} {} ${PREFIX}/lib \;
X
X.include <bsd.port.post.mk>
END-of-coin-or/Makefile
echo x - coin-or/distinfo
sed 's/^X//' >coin-or/distinfo << 'END-of-coin-or/distinfo'
XMD5 (COIN_2004Jul26.tgz) = f36deb2b2eb992163a4c1384e885d087
XSIZE (COIN_2004Jul26.tgz) = 16914761
END-of-coin-or/distinfo
echo x - coin-or/pkg-descr
sed 's/^X//' >coin-or/pkg-descr << 'END-of-coin-or/pkg-descr'
XCOIN-OR is a collection of operations research software.  Highlights include:
X
X Bcp - Branch-Cut-Price Framework,
X Cgl - Cut Generator Library,
X Clp - A Simplex Solver,
X Dfo - Derivative Free Optimization,
X Ipopt - Interior Point OPTimizer for general nonlinear programming,
X Osi - Open Solver Interface,
X Ots - Open Source Framework for Tabu Search,
X Sbb - A Branch and Cut code,
X Smi - Stochastic Modeling Interface,
X Vol - Volume Algorithm, 
X VolLp - A sample implementation of the Volume Algorithm for solving general Linear Programs,
X
Xwww: http://www.coin-or.org
END-of-coin-or/pkg-descr
exit






More information about the Coin-discuss mailing list