summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-08-24 14:24:26 +0000
committeragc <agc@pkgsrc.org>1999-08-24 14:24:26 +0000
commit0f4749a9e06205f8482cf70f80fdff722899d23e (patch)
tree69817df43ff08436bda0833ab62301cc1c5ba833 /math
parent1a54d29bbcb5113f79947fc2af95cc14f114c1c6 (diff)
downloadpkgsrc-0f4749a9e06205f8482cf70f80fdff722899d23e.tar.gz
Initial import of cassowary-0.50, an incremental constraint solving
toolkit that efficiently solves systems of linear equalities and inequalities, into the NetBSD packages collection. Constraints may be either requirements or preferences. Client code specifies the constraints to be maintained, and the solver updates the constrained variables to have values that satisfy the constraints. Version 0.50 of the solving toolkit adds support for a one-way finite domain subsolver.
Diffstat (limited to 'math')
-rw-r--r--math/cassowary/Makefile27
-rw-r--r--math/cassowary/files/md53
-rw-r--r--math/cassowary/files/patch-sum4
-rw-r--r--math/cassowary/patches/patch-aa22
-rw-r--r--math/cassowary/patches/patch-ab16
-rw-r--r--math/cassowary/pkg/COMMENT1
-rw-r--r--math/cassowary/pkg/DESCR13
-rw-r--r--math/cassowary/pkg/PLIST55
8 files changed, 141 insertions, 0 deletions
diff --git a/math/cassowary/Makefile b/math/cassowary/Makefile
new file mode 100644
index 00000000000..4533e6fa46f
--- /dev/null
+++ b/math/cassowary/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/08/24 14:24:26 agc Exp $
+#
+
+DISTNAME= cassowary-0.50
+CATEGORIES= math
+MASTER_SITES= http://www.cs.washington.edu/research/constraints/cassowary/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.cs.washington.edu/research/constraints/cassowary/
+
+DEPENDS+= guile-1.3:../../lang/guile
+BUILD_DEPENDS+= ${LOCALBASE}/bin/bison:../../devel/bison
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+
+CONFIGURE_ARGS+= --with-guile-prefix=${LOCALBASE}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+DEPENDS+= egcs-1.1.2:../../lang/egcs
+MAKE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/cassowary/files/md5 b/math/cassowary/files/md5
new file mode 100644
index 00000000000..428240550ff
--- /dev/null
+++ b/math/cassowary/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/08/24 14:24:26 agc Exp $
+
+MD5 (cassowary-0.50.tar.gz) = 68ed957e217a8d0802709084dc51f060
diff --git a/math/cassowary/files/patch-sum b/math/cassowary/files/patch-sum
new file mode 100644
index 00000000000..a0701aced78
--- /dev/null
+++ b/math/cassowary/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/08/24 14:24:26 agc Exp $
+
+MD5 (patch-aa) = b21220ed2c64fbcdecfd8f161fc84b99
+MD5 (patch-ab) = 12397a228af7d007df4bc76316db1b07
diff --git a/math/cassowary/patches/patch-aa b/math/cassowary/patches/patch-aa
new file mode 100644
index 00000000000..8aa7421bae8
--- /dev/null
+++ b/math/cassowary/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/08/24 14:24:27 agc Exp $
+
+Use NetBSD's own pkg libtool
+
+--- configure 1999/08/23 14:29:48 1.1
++++ configure 1999/08/23 14:30:43
+@@ -1819,6 +1819,7 @@
+ fi
+
+
++if false; then
+ # Check for any special flags to pass to ltconfig.
+ libtool_flags="--cache-file=$cache_file"
+ test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
+@@ -1976,6 +1977,7 @@
+ # Redirect the config.log output again, so that the ltconfig log is not
+ # clobbered by the next message.
+ exec 5>>./config.log
++fi
+
+
+ ## ACE == AC-Extended -- this was SCWM_ARG_PATH
diff --git a/math/cassowary/patches/patch-ab b/math/cassowary/patches/patch-ab
new file mode 100644
index 00000000000..267d9593c79
--- /dev/null
+++ b/math/cassowary/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/08/24 14:24:27 agc Exp $
+
+--- c++/Cassowary.h 1999/08/23 15:31:16 1.1
++++ c++/Cassowary.h 1999/08/23 15:31:24
+@@ -47,6 +47,11 @@
+ typedef double Number;
+
+ typedef long FDNumber;
++
++#ifndef MINLONG
++#include <limits.h>
++#define MINLONG LONG_MIN
++#endif
+
+ enum { FDN_NOTSET = MINLONG };
+
diff --git a/math/cassowary/pkg/COMMENT b/math/cassowary/pkg/COMMENT
new file mode 100644
index 00000000000..387271d90bb
--- /dev/null
+++ b/math/cassowary/pkg/COMMENT
@@ -0,0 +1 @@
+a constraint-solving toolkit for linear equalities and inequalities
diff --git a/math/cassowary/pkg/DESCR b/math/cassowary/pkg/DESCR
new file mode 100644
index 00000000000..d0af03c4110
--- /dev/null
+++ b/math/cassowary/pkg/DESCR
@@ -0,0 +1,13 @@
+Cassowary is an incremental constraint solving toolkit that
+efficiently solves systems of linear equalities and inequalities.
+Constraints may be either requirements or preferences. Client code
+specifies the constraints to be maintained, and the solver updates the
+constrained variables to have values that satisfy the constraints.
+Version 0.50 of the solving toolkit adds support for a one-way finite
+domain subsolver.
+
+A technical report is included in the distribution that describes the
+algorithm, interface, and implementation of the Cassowary solver.
+Additionally, the distribution contains toy sample applications
+written in Smalltalk, C++, Java, and Python, and a more complex
+example Java applet, the "Constraint Drawing Application".
diff --git a/math/cassowary/pkg/PLIST b/math/cassowary/pkg/PLIST
new file mode 100644
index 00000000000..d8fc042bfb0
--- /dev/null
+++ b/math/cassowary/pkg/PLIST
@@ -0,0 +1,55 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/08/24 14:24:27 agc Exp $
+lib/libcassowary.a
+lib/libcassowary.so.0.0
+lib/cassowary/bench
+lib/cassowary/tests
+lib/cassowary/tests/ClTests
+lib/libconstraints.a
+include/Cl.h
+include/ClC.h
+include/cassowary/Cassowary.h
+include/cassowary/ClAbstractVariable.h
+include/cassowary/ClDummyVariable.h
+include/cassowary/ClObjectiveVariable.h
+include/cassowary/ClSlackVariable.h
+include/cassowary/ClConstraint.h
+include/cassowary/ClConstraintHash.h
+include/cassowary/ClEditConstraint.h
+include/cassowary/ClEditOrStayConstraint.h
+include/cassowary/ClErrors.h
+include/cassowary/ClLinearConstraint.h
+include/cassowary/ClLinearEquation.h
+include/cassowary/ClLinearExpression.h
+include/cassowary/ClLinearExpression_fwd.h
+include/cassowary/ClLinearInequality.h
+include/cassowary/ClSolver.h
+include/cassowary/ClSimplexSolver.h
+include/cassowary/ClFDSolver.h
+include/cassowary/ClFDBinaryOneWayConstraint.h
+include/cassowary/ClFDConstraint.h
+include/cassowary/ClStayConstraint.h
+include/cassowary/ClStrength.h
+include/cassowary/ClSymbolicWeight.h
+include/cassowary/ClTableau.h
+include/cassowary/ClFDVariable.h
+include/cassowary/ClFDConnectorVariable.h
+include/cassowary/ClFloatVariable.h
+include/cassowary/ClVariable.h
+include/cassowary/ClReader.h
+include/cassowary/ClTypedefs.h
+include/cassowary/ClMap.h
+include/cassowary/ClSet.h
+include/cassowary/ClPoint.h
+include/cassowary/auto_ptr.h
+include/cassowary/config-inline.h
+include/cassowary/debug.h
+include/cassowary_scm.h
+include/cassowary_scm.hpp
+include/cl-snarf.h
+share/guile/site/cassowary/libconstraints.so.0.0
+share/guile/site/cassowary/libconstraints.a
+doc/cassowary-tr.pdf
+doc/cassowary-tr.ps.gz
+@dirrm lib/cassowary
+@dirrm include/cassowary
+@dirrm share/guile/site/cassowary