Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2019 00:55:54 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520600 - in head/math: . csdp csdp/files
Message-ID:  <201912220055.xBM0ts5f074976@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Dec 22 00:55:53 2019
New Revision: 520600
URL: https://svnweb.freebsd.org/changeset/ports/520600

Log:
  New port: math/csdp: Solver for semidefinite programming problems

Added:
  head/math/csdp/
  head/math/csdp/Makefile   (contents, props changed)
  head/math/csdp/distinfo   (contents, props changed)
  head/math/csdp/files/
  head/math/csdp/files/patch-Makefile   (contents, props changed)
  head/math/csdp/pkg-descr   (contents, props changed)
Modified:
  head/math/Makefile

Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile	Sun Dec 22 00:44:05 2019	(r520599)
+++ head/math/Makefile	Sun Dec 22 00:55:53 2019	(r520600)
@@ -197,6 +197,7 @@
     SUBDIR += cppad
     SUBDIR += crlibm
     SUBDIR += cryptominisat
+    SUBDIR += csdp
     SUBDIR += curv
     SUBDIR += cvc3
     SUBDIR += cvc4

Added: head/math/csdp/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/csdp/Makefile	Sun Dec 22 00:55:53 2019	(r520600)
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME=	csdp
+DISTVERSIONPREFIX=	releases/
+DISTVERSION=	6.2.0
+CATEGORIES=	math
+PKGNAMEPREFIX=	coin-or-
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Solver for semidefinite programming problems
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libblas.so:math/blas \
+		liblapack.so:math/lapack
+
+USES=		gmake
+USE_GITHUB=	yes
+GH_ACCOUNT=	coin-or
+GH_PROJECT=	Csdp
+USE_LDCONFIG=	yes
+
+MAKE_ARGS=	FREEBSD_CFLAGS="${CFLAGS}" FREEBSD_LIBS="${LIBS} -L${LOCALBASE}/lib"
+
+BINARY_ALIAS=	make=${GMAKE}
+
+PLIST_FILES=	bin/complement \
+		bin/csdp \
+		bin/graphtoprob \
+		bin/rand_graph \
+		bin/theta
+
+post-stage:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
+
+.include <bsd.port.mk>

Added: head/math/csdp/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/csdp/distinfo	Sun Dec 22 00:55:53 2019	(r520600)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1576975110
+SHA256 (coin-or-Csdp-releases-6.2.0_GH0.tar.gz) = 3d341974af1f8ed70e1a37cc896e7ae4a513375875e5b46db8e8f38b7680b32f
+SIZE (coin-or-Csdp-releases-6.2.0_GH0.tar.gz) = 523556

Added: head/math/csdp/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/csdp/files/patch-Makefile	Sun Dec 22 00:55:53 2019	(r520600)
@@ -0,0 +1,33 @@
+--- Makefile.orig	2017-07-25 18:44:57 UTC
++++ Makefile
+@@ -11,11 +11,11 @@
+ #
+ # CFLAGS settings for 64 bit Linux/unix systems.
+ #
+-export CFLAGS=-m64 -march=native -mtune=native -Ofast -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
++CFLAGS=$(FREEBSD_CFLAGS) -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
+ #
+ # LIBS settings for 64 bit Linux/unix systems.
+ #
+-export LIBS=-static -L../lib -lsdp -llapack -lblas -lm
++LIBS=$(FREEBSD_LIBS) -L../lib -lsdp -llapack -lblas -lm
+ #
+ #
+ # On most systems, this should handle everything.
+@@ -38,11 +38,11 @@ unitTest:
+ #
+ 
+ install:
+-	cp -f solver/csdp /usr/local/bin
+-	cp -f theta/theta /usr/local/bin
+-	cp -f theta/graphtoprob /usr/local/bin
+-	cp -f theta/complement /usr/local/bin
+-	cp -f theta/rand_graph /usr/local/bin
++	cp -f solver/csdp $(DESTDIR)$(PREFIX)/bin
++	cp -f theta/theta $(DESTDIR)$(PREFIX)/bin
++	cp -f theta/graphtoprob $(DESTDIR)$(PREFIX)/bin
++	cp -f theta/complement $(DESTDIR)$(PREFIX)/bin
++	cp -f theta/rand_graph $(DESTDIR)$(PREFIX)/bin
+ 
+ #
+ # Clean out all of the directories.

Added: head/math/csdp/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/csdp/pkg-descr	Sun Dec 22 00:55:53 2019	(r520600)
@@ -0,0 +1,10 @@
+CSDP is a library of routines that implements a predictor corrector variant of
+the semidefinite programming algorithm of Helmberg, Rendl, Vanderbei, and
+Wolkowicz. The main advantages of this code are that it is written to be used as
+a callable subroutine, it is written in C for efficiency, the code runs in
+parallel on shared memory multi-processor systems, and it makes effective use of
+sparsity in the constraint matrices. CSDP has been compiled on many different
+systems. The code should work on any system with an ANSI C Compiler and
+BLAS/LAPACK libraries.
+
+WWW: https://github.com/coin-or/Csdp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912220055.xBM0ts5f074976>