From 2b39ef7d1fc3395b0dbc45f0587b2b39d4bdc211 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9verin=20Lemaignan?= <severin.lemaignan@laas.fr>
Date: Wed, 1 Sep 2010 14:34:08 +0200
Subject: [PATCH] [wip/sysdep] Added a set of sysdeps used by BioMove3D

---
 sysdep/glpk.mk   | 45 +++++++++++++++++++++++++++++++++++++++++++++
 sysdep/gts.mk    | 44 ++++++++++++++++++++++++++++++++++++++++++++
 sysdep/libxpm.mk | 39 +++++++++++++++++++++++++++++++++++++++
 sysdep/qhull.mk  | 45 +++++++++++++++++++++++++++++++++++++++++++++
 sysdep/xforms.mk | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 220 insertions(+)
 create mode 100644 sysdep/glpk.mk
 create mode 100644 sysdep/gts.mk
 create mode 100644 sysdep/libxpm.mk
 create mode 100644 sysdep/qhull.mk
 create mode 100644 sysdep/xforms.mk

diff --git a/sysdep/glpk.mk b/sysdep/glpk.mk
new file mode 100644
index 00000000..7d220c30
--- /dev/null
+++ b/sysdep/glpk.mk
@@ -0,0 +1,45 @@
+#
+# Copyright (c) 2009 LAAS/CNRS
+# All rights reserved.
+#
+# Redistribution and use  in source  and binary  forms,  with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+#   1. Redistributions of  source  code must retain the  above copyright
+#      notice and this list of conditions.
+#   2. Redistributions in binary form must reproduce the above copyright
+#      notice and  this list of  conditions in the  documentation and/or
+#      other materials provided with the distribution.
+#
+#                                    Severin Lemaignan on Wed 1 Sep 2010
+#
+
+# The GLPK (GNU Linear Programming Kit) package is intended for
+# solving large-scale linear programming (LP), mixed integer
+# programming (MIP), and other related problems. It is a set of
+# routines written in ANSI C and organized in the form of a callable
+# library.
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH}+
+GLPK_DEPEND_MK:=	${GLPK_DEPEND_MK}+
+
+ifeq (+,$(DEPEND_DEPTH))
+DEPEND_PKG+=		glpk
+endif
+
+ifeq (+,$(GLPK_DEPEND_MK)) # ---------------------------------------------
+
+PREFER.glpk?=		system
+DEPEND_USE+=		glpk
+DEPEND_ABI.glpk?=	glpk>=4.36
+
+SYSTEM_SEARCH.glpk=	\
+	include/glpk/glpk.h \
+	lib/libglpk.so
+
+SYSTEM_PKG.Linux-fedora.glpk=glpk-devel
+
+endif # GLPK_DEPEND_MK ---------------------------------------------------
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH:+=}
diff --git a/sysdep/gts.mk b/sysdep/gts.mk
new file mode 100644
index 00000000..101c494d
--- /dev/null
+++ b/sysdep/gts.mk
@@ -0,0 +1,44 @@
+#
+# Copyright (c) 2009 LAAS/CNRS
+# All rights reserved.
+#
+# Redistribution and use  in source  and binary  forms,  with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+#   1. Redistributions of  source  code must retain the  above copyright
+#      notice and this list of conditions.
+#   2. Redistributions in binary form must reproduce the above copyright
+#      notice and  this list of  conditions in the  documentation and/or
+#      other materials provided with the distribution.
+#
+#                                    Severin Lemaignan on Wed 1 Sep 2010
+#
+
+# GTS provides a set of useful functions to deal with 3D surfaces
+# meshed with interconnected triangles including collision detection,
+# multiresolution models, constrained Delaunay triangulations and
+# robust set operations (union, intersection, differences).
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH}+
+GTS_DEPEND_MK:=	${GTS_DEPEND_MK}+
+
+ifeq (+,$(DEPEND_DEPTH))
+DEPEND_PKG+=		gts
+endif
+
+ifeq (+,$(GTS_DEPEND_MK)) # ---------------------------------------------
+
+PREFER.gts?=		system
+DEPEND_USE+=		gts
+DEPEND_ABI.gts?=	gts>=2003.1
+
+SYSTEM_SEARCH.gts=	\
+	include/gts.h \
+	lib/libgts.so
+
+SYSTEM_PKG.Linux-fedora.gts=gts-devel
+
+endif # GTS_DEPEND_MK ---------------------------------------------------
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH:+=}
diff --git a/sysdep/libxpm.mk b/sysdep/libxpm.mk
new file mode 100644
index 00000000..5ffe4513
--- /dev/null
+++ b/sysdep/libxpm.mk
@@ -0,0 +1,39 @@
+#
+# Copyright (c) 2009 LAAS/CNRS
+# All rights reserved.
+#
+# Redistribution and use  in source  and binary  forms,  with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+#   1. Redistributions of  source  code must retain the  above copyright
+#      notice and this list of conditions.
+#   2. Redistributions in binary form must reproduce the above copyright
+#      notice and  this list of  conditions in the  documentation and/or
+#      other materials provided with the distribution.
+#
+#                                    Severin Lemaignan on Wed 1 Sep 2010
+#
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH}+
+LIBXPM_DEPEND_MK:=	${LIBXPM_DEPEND_MK}+
+
+ifeq (+,$(DEPEND_DEPTH))
+DEPEND_PKG+=		libXpm
+endif
+
+ifeq (+,$(LIBXPM_DEPEND_MK)) # ---------------------------------------------
+
+PREFER.libXpm?=		system
+DEPEND_USE+=		libXpm
+DEPEND_ABI.libXpm?=	libXpm>=3.5.7
+
+SYSTEM_SEARCH.libXpm=	\
+	include/X11/xpm.h \
+	lib/libXpm.so
+
+SYSTEM_PKG.Linux-fedora.libXpm=libXpm-devel
+
+endif # LIBXPM_DEPEND_MK ---------------------------------------------------
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH:+=}
diff --git a/sysdep/qhull.mk b/sysdep/qhull.mk
new file mode 100644
index 00000000..0c32f19c
--- /dev/null
+++ b/sysdep/qhull.mk
@@ -0,0 +1,45 @@
+#
+# Copyright (c) 2009 LAAS/CNRS
+# All rights reserved.
+#
+# Redistribution and use  in source  and binary  forms,  with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+#   1. Redistributions of  source  code must retain the  above copyright
+#      notice and this list of conditions.
+#   2. Redistributions in binary form must reproduce the above copyright
+#      notice and  this list of  conditions in the  documentation and/or
+#      other materials provided with the distribution.
+#
+#                                    Severin Lemaignan on Wed 1 Sep 2010
+#
+
+# Qhull is a general dimension convex hull program that reads a set
+# of points from stdin, and outputs the smallest convex set that
+# contains the points to stdout.  It also generates Delaunay
+# triangulations, Voronoi diagrams, furthest-site Voronoi diagrams,
+# and halfspace intersections about a point.
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH}+
+QHULL_DEPEND_MK:=	${QHULL_DEPEND_MK}+
+
+ifeq (+,$(DEPEND_DEPTH))
+DEPEND_PKG+=		qhull
+endif
+
+ifeq (+,$(QHULL_DEPEND_MK)) # ---------------------------------------------
+
+PREFER.qhull?=		system
+DEPEND_USE+=		qhull
+DEPEND_ABI.qhull?=	qhull>=2003.1
+
+SYSTEM_SEARCH.qhull=	\
+	include/qhull/qhull.h \
+	lib/libqhull.so
+
+SYSTEM_PKG.Linux-fedora.qhull=qhull-devel
+
+endif # QHULL_DEPEND_MK ---------------------------------------------------
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH:+=}
diff --git a/sysdep/xforms.mk b/sysdep/xforms.mk
new file mode 100644
index 00000000..64913ef1
--- /dev/null
+++ b/sysdep/xforms.mk
@@ -0,0 +1,47 @@
+#
+# Copyright (c) 2009 LAAS/CNRS
+# All rights reserved.
+#
+# Redistribution and use  in source  and binary  forms,  with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+#   1. Redistributions of  source  code must retain the  above copyright
+#      notice and this list of conditions.
+#   2. Redistributions in binary form must reproduce the above copyright
+#      notice and  this list of  conditions in the  documentation and/or
+#      other materials provided with the distribution.
+#
+#                                    Severin Lemaignan on Wed 1 Sep 2010
+#
+
+# XForms is a GUI toolkit based on Xlib for X Window Systems. It
+# features a rich set of objects, such as buttons, sliders, and menus
+# etc. integrated into an easy and efficient object/event callback
+# execution model that allows fast and easy construction of
+# X-applications. In addition, the library is extensible and new
+# objects can easily be created and added to the library.
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH}+
+XFORMS_DEPEND_MK:=	${XFORMS_DEPEND_MK}+
+
+ifeq (+,$(DEPEND_DEPTH))
+DEPEND_PKG+=		xforms
+endif
+
+ifeq (+,$(XFORMS_DEPEND_MK)) # ---------------------------------------------
+
+PREFER.xforms?=		system
+DEPEND_USE+=		xforms
+DEPEND_ABI.xforms?=	xforms>=1.0.90
+
+SYSTEM_SEARCH.xforms=	\
+	include/forms.h \
+	lib/libforms.so	\
+	lib/libformsGL.so	\
+
+SYSTEM_PKG.Linux-fedora.xforms=xforms-devel
+
+endif # XFORMS_DEPEND_MK ---------------------------------------------------
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH:+=}
-- 
GitLab