1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/math/lp_solve/Makefile
Stefan Eßer 986beaaabc Move more WWW entries from pkg-descr files into Makefiles
The WWW: lines in the pkg-descr files of these ports where not at the
end of those files and have been missed in prior conversion runs.

Approved by:	portmgr (implicit)
2022-09-08 17:43:21 +02:00

51 lines
1.5 KiB
Makefile

PORTNAME= lp_solve
PORTVERSION= 5.5.2.5
CATEGORIES= math
MASTER_SITES= SF/lpsolve/lpsolve/${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}_source
MAINTAINER= mayo@oyam.ca
COMMENT= Linear Programming Solver
WWW= http://tech.groups.yahoo.com/group/lp_solve/
LICENSE= LGPL21
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:R:R}
USE_LDCONFIG= yes
BUILDENV= ${SETENV} TMPDIR="${WRKDIR}"
.include <bsd.port.pre.mk>
.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == mips || \
${ARCH} == powerpc || ${ARCH} == powerpcspe
LPSOLVE_ARCH= ux32
.else
LPSOLVE_ARCH= ux64
.endif
pre-build:
@${FIND} ${WRKSRC} -name "ccc" | ${XARGS} ${REINPLACE_CMD} -e \
"s|^c=.*$$|c='${CC}'|g ; \
s|^opts=.*$$|opts='${CFLAGS}'|g ; \
s|-fpic|-fPIC|g ; \
s|-ldl||g"
do-build:
cd ${WRKSRC}/lp_solve ; ${BUILDENV} ${SH} -x ccc
cd ${WRKSRC}/demo ; ${BUILDENV} ${SH} -x ccc
cd ${WRKSRC}/lpsolve55 ; ${BUILDENV} ${SH} -x ccc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lp_solve/bin/${LPSOLVE_ARCH}/lp_solve ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lpsolve55/bin/${LPSOLVE_ARCH}/liblpsolve55.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/lpsolve55/bin/${LPSOLVE_ARCH}/liblpsolve55.so ${STAGEDIR}${PREFIX}/lib
${LN} -sf liblpsolve55.so ${STAGEDIR}${PREFIX}/lib/liblpsolve55.so.1
@${MKDIR} ${STAGEDIR}${PREFIX}/include/lpsolve
.for i in declare.h fortify.h ini.h lp_*.h lpkit.h lpsolve.h ufortify.h yacc_read.h
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/include/lpsolve
.endfor
.include <bsd.port.post.mk>