Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
math/lp_solve/DESCR Normal file
View File

@@ -0,0 +1,6 @@
lp_solve is a Mixed Integer Linear Programming (MILP) solver.
It is a free linear (integer) programming solver based on the
revised simplex method and the Branch-and-bound method for the
integers. lp_solve solves pure linear, (mixed) integer/binary,
semi-continuous and special ordered sets (SOS) models.

55
math/lp_solve/Makefile Normal file
View File

@@ -0,0 +1,55 @@
# $NetBSD: Makefile,v 1.4 2012/09/11 23:04:23 asau Exp $
#
DISTNAME= lp_solve_5.5.2.0_source
PKGNAME= ${DISTNAME:S/_source//:S/_5/-5/}
CATEGORIES= math devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lpsolve/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://lpsolve.sourceforge.net/
COMMENT= Mixed Integer Linear Programming (MILP) solver
#LICENSE= LGPL, unclear which version (see lp_lib.h)
WRKSRC= ${WRKDIR}/lp_solve_5.5
SUBST_CLASSES+= dl
SUBST_STAGE.dl= pre-build
SUBST_SED.dl+= -e s,-ldl,${DL_LIBS:Q},g
SUBST_SED.dl+= -e s,^opts=.*,opts=\'${CFLAGS:Q}\',g
SUBST_SED.dl+= -e s,-fpic,-fPIC,g
SUBST_FILES.dl+= lp_solve/ccc
SUBST_FILES.dl+= lpsolve55/ccc
SUBST_FILES.dl+= demo/ccc
.include "../../mk/bsd.fast.prefs.mk"
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64"
LPSOLVE_ARCH= ux64
.else
LPSOLVE_ARCH= ux32
.endif
INSTALLATION_DIRS= bin include/lpsolve lib
do-build:
.for dir in lp_solve lpsolve55 demo
${RUN}${_ULIMIT_CMD} \
cd ${WRKSRC}/${dir} && \
${SETENV} ${MAKE_ENV} ${SH} ccc
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lp_solve/bin/${LPSOLVE_ARCH}/lp_solve \
${DESTDIR}${PREFIX}/bin
.for i in declare.h fortify.h ini.h lp_*.h lpkit.h lpsolve.h ufortify.h yacc_read.h
${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/include/lpsolve
.endfor
.for i in liblpsolve55.a liblpsolve55.so
${INSTALL_LIB} ${WRKSRC}/lpsolve55/bin/${LPSOLVE_ARCH}/${i} \
${DESTDIR}${PREFIX}/lib
.endfor
${LN} -sf liblpsolve55.so ${DESTDIR}${PREFIX}/lib/liblpsolve55.so.1
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

34
math/lp_solve/PLIST Normal file
View File

@@ -0,0 +1,34 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/10/16 15:35:08 wiz Exp $
bin/lp_solve
include/lpsolve/declare.h
include/lpsolve/fortify.h
include/lpsolve/ini.h
include/lpsolve/lp_Hash.h
include/lpsolve/lp_MDO.h
include/lpsolve/lp_MPS.h
include/lpsolve/lp_SOS.h
include/lpsolve/lp_bit.h
include/lpsolve/lp_crash.h
include/lpsolve/lp_explicit.h
include/lpsolve/lp_fortify.h
include/lpsolve/lp_lib.h
include/lpsolve/lp_matrix.h
include/lpsolve/lp_mipbb.h
include/lpsolve/lp_presolve.h
include/lpsolve/lp_price.h
include/lpsolve/lp_pricePSE.h
include/lpsolve/lp_report.h
include/lpsolve/lp_rlp.h
include/lpsolve/lp_scale.h
include/lpsolve/lp_simplex.h
include/lpsolve/lp_solveDLL.h
include/lpsolve/lp_types.h
include/lpsolve/lp_utils.h
include/lpsolve/lp_wlp.h
include/lpsolve/lpkit.h
include/lpsolve/lpsolve.h
include/lpsolve/ufortify.h
include/lpsolve/yacc_read.h
lib/liblpsolve55.a
lib/liblpsolve55.so
lib/liblpsolve55.so.1

View File

@@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.1 2011/05/08 11:52:40 wiz Exp $
BUILDLINK_TREE+= lp_solve
.if !defined(LP_SOLVE_BUILDLINK3_MK)
LP_SOLVE_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.lp_solve+= lp_solve>=5.5.2.0
BUILDLINK_PKGSRCDIR.lp_solve?= ../../math/lp_solve
.endif # LP_SOLVE_BUILDLINK3_MK
BUILDLINK_TREE+= -lp_solve

6
math/lp_solve/distinfo Normal file
View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2010/10/16 15:35:08 wiz Exp $
SHA1 (lp_solve_5.5.2.0_source.tar.gz) = e2830053cf079839b9ce21662cbc886ac6d31c80
RMD160 (lp_solve_5.5.2.0_source.tar.gz) = 23a69c71062747ddf4cbc57120cd7db5f9378ac2
Size (lp_solve_5.5.2.0_source.tar.gz) = 799623 bytes
SHA1 (patch-aa) = 17fbc9c80e5a8c34064d426adf2fdae2ce4a7db1

View File

@@ -0,0 +1,29 @@
$NetBSD: patch-aa,v 1.1.1.1 2010/10/16 15:35:08 wiz Exp $
ftime() is deprecated, use gettimeofday() instead.
--- shared/commonlib.c.orig 2009-02-01 19:31:59.000000000 +0000
+++ shared/commonlib.c
@@ -6,7 +6,7 @@
#elif defined EnhTime
# include <windows.h>
#else
-# include <sys/timeb.h>
+# include <sys/time.h>
#endif
#include <stdlib.h>
@@ -844,10 +844,10 @@ double timeNow(void)
}
return( timeBase + (double) now.QuadPart/(double) freq.QuadPart );
#else
- struct timeb buf;
+ struct timeval buf;
- ftime(&buf);
- return((double)buf.time+((double) buf.millitm)/1000.0);
+ gettimeofday(&buf, NULL);
+ return((double)buf.tv_sec+((double) buf.tv_usec)/1000000.0);
#endif
}