summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/Makefile1
-rw-r--r--math/libhomfly/Makefile30
-rw-r--r--math/libhomfly/distinfo3
-rw-r--r--math/libhomfly/files/patch-configure.ac8
-rw-r--r--math/libhomfly/pkg-descr8
5 files changed, 50 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 01c448fa73cc..454b5c6ea067 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -358,6 +358,7 @@
SUBDIR += libbraiding
SUBDIR += libccd
SUBDIR += libflame
+ SUBDIR += libhomfly
SUBDIR += liblbfgs
SUBDIR += libmesh
SUBDIR += libmissing
diff --git a/math/libhomfly/Makefile b/math/libhomfly/Makefile
new file mode 100644
index 000000000000..5d053e8a9634
--- /dev/null
+++ b/math/libhomfly/Makefile
@@ -0,0 +1,30 @@
+# Created by: thierry@pompo.net
+# $FreeBSD$
+
+PORTNAME= libhomfly
+DISTVERSION= 1.02r6
+CATEGORIES= math
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Library to compute the homfly polynomial of knots and link
+
+LICENSE= PD
+
+LIB_DEPENDS= libgc-threaded.so:devel/boehm-gc-threaded
+
+USE_GITHUB= yes
+GH_ACCOUNT= miguelmarco
+
+USES= autoreconf libtool localbase
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+TEST_TARGET= check
+
+PLIST_FILES= include/homfly.h \
+ lib/libhomfly.a \
+ lib/libhomfly.so \
+ lib/libhomfly.so.0 \
+ lib/libhomfly.so.0.0.0
+
+.include <bsd.port.mk>
diff --git a/math/libhomfly/distinfo b/math/libhomfly/distinfo
new file mode 100644
index 000000000000..4c66f5e0a200
--- /dev/null
+++ b/math/libhomfly/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1588250209
+SHA256 (miguelmarco-libhomfly-1.02r6_GH0.tar.gz) = cf5d5031c905318127c83fdffc891deb097c77ee48cdd0131f839ea6ecb64a84
+SIZE (miguelmarco-libhomfly-1.02r6_GH0.tar.gz) = 24498
diff --git a/math/libhomfly/files/patch-configure.ac b/math/libhomfly/files/patch-configure.ac
new file mode 100644
index 000000000000..cb366c337c12
--- /dev/null
+++ b/math/libhomfly/files/patch-configure.ac
@@ -0,0 +1,8 @@
+--- configure.ac.orig 2018-11-08 13:08:16 UTC
++++ configure.ac
+@@ -1,4 +1,4 @@
+-AC_INIT([libhomfly], [1.02r5], [mmarco@unizar.es])
++AC_INIT([libhomfly], [1.02r6], [mmarco@unizar.es])
+ AC_CONFIG_AUX_DIR([build-aux])
+ AC_CONFIG_MACRO_DIR([m4])
+ AM_INIT_AUTOMAKE([foreign -Wall])
diff --git a/math/libhomfly/pkg-descr b/math/libhomfly/pkg-descr
new file mode 100644
index 000000000000..6785963e4299
--- /dev/null
+++ b/math/libhomfly/pkg-descr
@@ -0,0 +1,8 @@
+Library to compute the homfly polynomial of a link
+
+This is basically a conversion of the program written by Robert J Jenkins Jr
+into a shared library. It accepts as entry a character string, formatted in the
+same way as the input files that the original code used. The returned value is
+the string that the original program would print on screen.
+
+WWW: https://github.com/miguelmarco/libhomfly