2003-07-19 04:33:07 +00:00
|
|
|
# New ports collection makefile for: lp_solve
|
|
|
|
# Date created: 31 June 2003
|
|
|
|
# Whom: Pedro F. Giffuni <giffunip@asme.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lp_solve
|
2006-10-10 02:05:45 +00:00
|
|
|
PORTVERSION= ${PORTMAJOR_VER}.0.9
|
2003-07-19 04:33:07 +00:00
|
|
|
CATEGORIES= math
|
2006-10-10 02:05:45 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} # http://groups.yahoo.com/group/lp_solve/
|
|
|
|
MASTER_SITE_SUBDIR= lpsolve
|
2006-09-02 10:03:52 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}_source
|
2003-07-19 04:33:07 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Linear Programming Solver
|
|
|
|
|
2006-10-10 02:05:45 +00:00
|
|
|
PORTMAJOR_VER= 5.5
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTMAJOR_VER}
|
2006-09-02 10:18:16 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2003-07-23 15:33:37 +00:00
|
|
|
|
2006-10-10 02:05:45 +00:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
PICFLAG?= -fPIC
|
|
|
|
.else
|
|
|
|
PICFLAG?= -fpic
|
|
|
|
.endif
|
|
|
|
|
2006-09-02 10:03:52 +00:00
|
|
|
pre-build:
|
2006-10-10 02:05:45 +00:00
|
|
|
@${REINPLACE_CMD} -e 's:%%CFLAGS%%:${CFLAGS}:g' -e 's:%%PICFLAG%%:${PICFLAG}:g' -e 's:%%CC%%:${CC}:g' ${WRKSRC}/lp_solve/ccc ${WRKSRC}/demo/ccc ${WRKSRC}/lpsolve55/ccc
|
2003-07-19 04:33:07 +00:00
|
|
|
|
2006-09-02 10:03:52 +00:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/lp_solve ; ${SH} -x ccc
|
|
|
|
cd ${WRKSRC}/demo ; ${SH} -x ccc
|
|
|
|
cd ${WRKSRC}/lpsolve55 ; ${SH} -x ccc
|
2003-07-19 04:33:07 +00:00
|
|
|
|
|
|
|
do-install:
|
2006-09-02 10:03:52 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lp_solve/lp_solve ${PREFIX}/bin
|
2003-07-19 04:33:07 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2006-09-02 10:03:52 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/demo/demo ${EXAMPLESDIR}
|
|
|
|
${MKDIR} ${PREFIX}/include/lpsolve
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lp_lib.h ${PREFIX}/include/lpsolve
|
2006-09-02 12:12:44 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lp_types.h ${PREFIX}/include/lpsolve
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lp_utils.h ${PREFIX}/include/lpsolve
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lp_Hash.h ${PREFIX}/include/lpsolve
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lp_matrix.h ${PREFIX}/include/lpsolve
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lp_mipbb.h ${PREFIX}/include/lpsolve
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lp_SOS.h ${PREFIX}/include/lpsolve
|
2006-09-02 10:03:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lpsolve55/liblpsolve55.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lpsolve55/liblpsolve55.so ${PREFIX}/lib
|
2006-09-02 10:18:16 +00:00
|
|
|
${LN} -sf ${PREFIX}/lib/liblpsolve55.so ${PREFIX}/lib/liblpsolve55.so.1
|
2003-07-19 04:33:07 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|