summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-07-08 00:39:48 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-07-08 00:39:48 +0000
commit14dfe002816daceb251e9199f7206e257847025b (patch)
treea85e5c550749999512c350b761e1d0477be32003 /science
parentNew port: science/libccp4: Protein X-ray crystallography toolkit (diff)
New port: science/libssm: C++ toolkit for superposition of macromolecules
Notes
Notes: svn path=/head/; revision=474148
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/libssm/Makefile31
-rw-r--r--science/libssm/distinfo3
-rw-r--r--science/libssm/pkg-descr9
-rw-r--r--science/libssm/pkg-plist12
5 files changed, 56 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index ca7bd7a274a8..58879ed49a3f 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -100,6 +100,7 @@
SUBDIR += liblinear
SUBDIR += liboglappth
SUBDIR += libquantum
+ SUBDIR += libssm
SUBDIR += libsvm
SUBDIR += libsvm-python
SUBDIR += libxc
diff --git a/science/libssm/Makefile b/science/libssm/Makefile
new file mode 100644
index 000000000000..dd24b6e67bb8
--- /dev/null
+++ b/science/libssm/Makefile
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+PORTNAME= libssm
+DISTVERSION= 1.4
+CATEGORIES= science
+MASTER_SITES= ftp://ftp.ccp4.ac.uk/opensource/
+DISTNAME= ssm-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= C++ toolkit for superposition of macromolecules
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libccp4c.so:science/libccp4 \
+ libmmdb2.so:science/mmdb2
+
+USES= gmake libtool localbase:ldflags
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-shared --disable-static --enable-ccp4 --with-mmdb=${LOCALBASE}
+INSTALL_TARGET= install-strip
+USE_LDCONFIG= yes
+
+CFLAGS+= -fPIC
+FFLAGS+= -fPIC
+
+xpost-configure:
+ ${REINPLACE_CMD} -e 's| -Wl,--as-needed||; s| -Wl,--no-as-needed||' ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e 's|^archive_cmds=|wl="-Wl,"; archive_cmds=|' ${WRKSRC}/libtool # wl is missing otherwise for some reason
+
+.include <bsd.port.mk>
diff --git a/science/libssm/distinfo b/science/libssm/distinfo
new file mode 100644
index 000000000000..21f9a111f3b1
--- /dev/null
+++ b/science/libssm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1531009874
+SHA256 (ssm-1.4.tar.gz) = ea1a57d019bd69ab04e1b7c4faa2f8451584474a6fc16285c2211ef9f53b2704
+SIZE (ssm-1.4.tar.gz) = 424785
diff --git a/science/libssm/pkg-descr b/science/libssm/pkg-descr
new file mode 100644
index 000000000000..efeb57d282bf
--- /dev/null
+++ b/science/libssm/pkg-descr
@@ -0,0 +1,9 @@
+SSM is a macromolecular coordinate superposition library, written by Eugene
+Krissinel of the EBI.
+
+The library implements the SSM algorithm of protein structure comparison in
+three dimensions, which includes an original procedure of matching graphs built
+on the protein's secondary-structure elements, followed by an iterative
+three-dimensional alignment of protein backbone Calpha atoms.
+
+WWW: https://launchpad.net/ssm
diff --git a/science/libssm/pkg-plist b/science/libssm/pkg-plist
new file mode 100644
index 000000000000..574428708e1b
--- /dev/null
+++ b/science/libssm/pkg-plist
@@ -0,0 +1,12 @@
+bin/superpose
+include/ssm/ssm_align.h
+include/ssm/ssm_csia.h
+include/ssm/ssm_defs.h
+include/ssm/ssm_graph.h
+include/ssm/ssm_malign.h
+include/ssm/ssm_superpose.h
+include/ssm/ssm_vxedge.h
+lib/libssm.so
+lib/libssm.so.2
+lib/libssm.so.2.0.0
+libdata/pkgconfig/ssm.pc