summaryrefslogtreecommitdiff
path: root/media-libs/sg
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/sg
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/sg')
-rw-r--r--media-libs/sg/Manifest7
-rw-r--r--media-libs/sg/files/1.4-doc.patch20
-rw-r--r--media-libs/sg/files/1.4-opengl.patch98
-rw-r--r--media-libs/sg/metadata.xml8
-rw-r--r--media-libs/sg/sg-1.5.ebuild75
5 files changed, 208 insertions, 0 deletions
diff --git a/media-libs/sg/Manifest b/media-libs/sg/Manifest
new file mode 100644
index 000000000000..fb32ec11c100
--- /dev/null
+++ b/media-libs/sg/Manifest
@@ -0,0 +1,7 @@
+AUX 1.4-doc.patch 526 SHA256 1b8aa95f81921f8bc4f0c5a920464411eb771087632f459fc1e1fe00901794cb SHA512 9e9d48b51264c5d91ef3536630dee112001dd7b2e55a7a3024165f3249efe187b0a77a5fd5b12858c33c3c1171c5f2fe72c4eaf76ddc2d9a7d17b593396cb63d WHIRLPOOL 6dfe22cdc261c0b7f25dea4efa50d881c49c83bdc35ff9b64a70116f4ee6d82d528b10c7ccb7952060ccb76a9e2f98d809d1d905d36a9126a8f69f14c6bc8512
+AUX 1.4-opengl.patch 2304 SHA256 eb17a5c419e3e586e80aafe19620f4db0c5e066348568e65de2885db876299d9 SHA512 9ef41aff50c7676ef1f2cd9ab6ffe966ee0761cfc748078d76f46d5f2f40107fac9717ebbe93713a8a7196cc23179b3bf4ec9904be80434d2958e133aea990c6 WHIRLPOOL 20177709728a6b9912191d0ce542cfddf072a962e3b646b584698fb57db37add81494cd83e3f7d65f2d5bb3a4ee6ce9451fcd7f4da25974872454fef989f730b
+DIST sg-1.5.tar.gz 2859299 SHA256 e7d499c33b87bd50c4b83b84e23a2aebd70ed01a3c9a7f4512d36216da487784 SHA512 0e1f931b51e7bdecedc1bb17275d87e7549abf3d4d9eff6daf74cbc97ad1bea94b256fe4accfe27bd0a67f0637bb0d3b363d748f57edd73e07e922d2ea6e24c0 WHIRLPOOL 2341df50012afb8e581cbca5913ee29b9db6e90788a5513ff9a14113c9eac462774fc97c7c13473b7639c6883ba225ac3f8fbffc384c77aa1394659b014ed413
+EBUILD sg-1.5.ebuild 1682 SHA256 c7d5a6baaaa51c1760625f045dae4dc44a0bd3b2c1e2f77a5be0a11f3ba19889 SHA512 d224a379a38817592fa1a84958b94f63da7488995a0cea6f1ba0fd12ff47c535b4f66659e86250f6f21b2a0befce1944d99718ee5a526dcce053c1cd303883a7 WHIRLPOOL 7fb9dd7d25146755d72b94bd4ab0f8094bc9da767f37ade3bd3e26bd9429550b994f0367498d38b3a0d7f979bf88748f9d846ee73653967e04a4c317c774a387
+MISC ChangeLog 2597 SHA256 e29dab4a596b10028efd9cb864fc1b6cf41ac995acd39ece5084758ed5753f0b SHA512 af5277fbf59d825d58b0b445a3080eed093f6986835c196ea13b32e454de98be7836fe4c0dfea86b3afd8c036c78e522d6cb21bae0213988347d722574abce2a WHIRLPOOL e316bf298d89882888d0d073e1bd5947e12168f64c5f84e457382042bf69de77d736b3dafc2592b8d7a8afe81a040e07d7ea81bbc97f53b7f7882788e6f37dd2
+MISC ChangeLog-2015 1829 SHA256 68d7356c382e826c00d22cab1d70a7c5fefade4bf3233713481fdc6d7232204d SHA512 4f247c7c87df196569b90ffc226d112b3b11f70de7fb1b97e5c1ee2d6a352715d2abfede88fc591ebeab36b30f0c210fa50d0aba14257266fa20071819ecb240 WHIRLPOOL cc98b5678ba6271a3fc9ecb51b4e9a81a12f07c3bbca6701f867111887ec6f0fd8e15d4e57f24cc7e69b106db316666fa4e0429c202351d4b91d668b0a86c123
+MISC metadata.xml 259 SHA256 bbfbeb80ffccffa8e7f837d2c93e994bbe024d565ae3a31d30c6646e80a684c8 SHA512 19fb78cf4029c154954a40df40e28fc8d98a8b7e6b42f97259f664d44c29b284feffb9d073cadc7f90b5654a64b2466e186cb677d3a11830206f173eb9057706 WHIRLPOOL 75b8dd1a97dde63f9cc9f73b5951eaf54579460763ef7cbe6f3a9a0739070601d762152ea00df8b476b80e92e5c29b611a494bac5ab747298942530cabe0ee84
diff --git a/media-libs/sg/files/1.4-doc.patch b/media-libs/sg/files/1.4-doc.patch
new file mode 100644
index 000000000000..cfc1b21b20cb
--- /dev/null
+++ b/media-libs/sg/files/1.4-doc.patch
@@ -0,0 +1,20 @@
+diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am
+index 3ee562c..7f424e8 100644
+--- a/doc/doxygen/Makefile.am
++++ b/doc/doxygen/Makefile.am
+@@ -29,13 +29,11 @@
+ ## Author: Michael Holst
+ ## ###########################################################################
+
+-docdir = @prefix@/doc/sg
+-
+ doc_DATA = sg_doc
+
+ sg_doc:
+ $(doxygen_path) $(top_srcdir)/doc/doxygen/sg.dox
+
+ install-docDATA:
+- mkdir -p $(docdir)
+- cp -r ../api $(docdir)/
++ mkdir -p $(DESTDIR)/@docdir@
++ cp -r ../api $(DESTDIR)/@docdir@/
diff --git a/media-libs/sg/files/1.4-opengl.patch b/media-libs/sg/files/1.4-opengl.patch
new file mode 100644
index 000000000000..f6b32cf1d286
--- /dev/null
+++ b/media-libs/sg/files/1.4-opengl.patch
@@ -0,0 +1,98 @@
+diff --git a/configure.ac b/configure.ac
+index 68ff24a..a2cd6b5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -844,9 +844,6 @@ AC_OUTPUT([
+
+ src/base/Makefile
+
+- src/gl/Makefile
+- src/glu/Makefile
+- src/glw/Makefile
+ src/ogl/Makefile
+ src/vgl/Makefile
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index ad9562f..7d5173c 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -35,5 +35,5 @@
+ AUTOMAKE_OPTIONS = no-dependencies
+ SUFFIXES = .y .l .H .h .m .C .cc .c .f .java .o
+ always_built_SUBDIRS = ogl vgl
+-SUBDIRS = base @gl@ @glu@ @glw@ $(always_built_SUBDIRS) aaa_inc aaa_lib .
++SUBDIRS = base $(always_built_SUBDIRS) aaa_inc aaa_lib .
+
+diff --git a/src/aaa_inc/GL/Makefile.am b/src/aaa_inc/GL/Makefile.am
+index 10efb6b..0d5b8b7 100644
+--- a/src/aaa_inc/GL/Makefile.am
++++ b/src/aaa_inc/GL/Makefile.am
+@@ -37,27 +37,6 @@ SUFFIXES = .y .l .H .h .m .C .cc .c .f .java .o
+ always_built_SUBDIRS =
+ SUBDIRS = $(always_built_SUBDIRS) .
+
+-if BUILD_GL
+-GL_HEADS = gl.h glx.h osmesa.h wmesa.h xmesa.h
+-else
+-GL_HEADS =
+-endif
+-
+-if BUILD_GLU
+-GLU_HEADS = glu.h
+-else
+-GLU_HEADS =
+-endif
+-
+-if BUILD_GLW
+-GLW_HEADS = GLwDrawA.h
+-else
+-GLW_HEADS =
+-endif
+-
+-includedir = ${prefix}/include/GL
+-include_HEADERS = ${GL_HEADS} ${GLU_HEADS} ${GLW_HEADS}
+-
+ distclean-local: clean-local
+
+ clean-local:
+diff --git a/src/aaa_lib/Makefile.am b/src/aaa_lib/Makefile.am
+index bb93779..0512c45 100644
+--- a/src/aaa_lib/Makefile.am
++++ b/src/aaa_lib/Makefile.am
+@@ -41,32 +41,16 @@ BASE_LIBS = ../base/libbase.la
+ OGL_LIBS = ../ogl/libogl.la
+ VGL_LIBS = ../vgl/libvgl.la
+
+-GL_LIBS = ../gl/libGL.la
+-if BUILD_GL
+-LIBGL = libGL.la
+-else
+-LIBGL =
+-endif
++GL_LIBS = ${libdir}/libGL.la
+
+-GLU_LIBS = ../glu/libGLU.la
+-if BUILD_GLU
+-LIBGLU = libGLU.la
+-else
+-LIBGLU =
+-endif
++GLU_LIBS = ${libdir}/libGLU.la
+
+-GLW_LIBS = ../glw/libGLw.la
+-if BUILD_GLW
+-LIBGLW = libGLw.la
+-else
+-LIBGLW =
+-endif
++GLW_LIBS = ${libdir}/libGLw.la
+
+-libdir = ${prefix}/lib
+ lib_LTLIBRARIES = libsg.la ${LIBGL} ${LIBGLU} ${LIBGLW}
+
+ libsg_la_SOURCES =
+-libsg_la_LIBADD = ${BASE_LIBS} ${OGL_LIBS} ${VGL_LIBS}
++libsg_la_LIBADD = ${BASE_LIBS} ${OGL_LIBS} ${VGL_LIBS} -lGL -lGLU -lGLw -lXm -lmaloc -lXaw
+ libsg_la_LDFLAGS = -version-info ${FETK_VERSION}
+
+ libGL_la_SOURCES =
diff --git a/media-libs/sg/metadata.xml b/media-libs/sg/metadata.xml
new file mode 100644
index 000000000000..8425c0d53cb0
--- /dev/null
+++ b/media-libs/sg/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-libs/sg/sg-1.5.ebuild b/media-libs/sg/sg-1.5.ebuild
new file mode 100644
index 000000000000..d45b893fa2b6
--- /dev/null
+++ b/media-libs/sg/sg-1.5.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils multilib
+
+DESCRIPTION="Socket Graphics tool for displaying polygons"
+HOMEPAGE="http://fetk.org/codes/sg/index.html"
+SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-2"
+IUSE="doc static-libs"
+
+RDEPEND="
+ dev-libs/maloc
+ virtual/glu
+ x11-libs/libXaw
+ x11-libs/motif
+ || (
+ ( media-libs/mesa x11-libs/libGLw )
+ media-libs/opengl-apple
+ )"
+DEPEND="
+ ${RDEPEND}
+ doc? (
+ media-gfx/graphviz
+ app-doc/doxygen
+ )"
+
+S="${WORKDIR}"/${PN}
+
+PATCHES=(
+ "${FILESDIR}"/1.4-opengl.patch
+ "${FILESDIR}"/1.4-doc.patch
+ )
+
+src_prepare() {
+ rm src/{gl,glu,glw} -rf || die
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local sg_include
+ local sg_lib
+ local myeconfargs
+
+ sg_include="${EPREFIX}"/usr/include
+ sg_lib="${EPREFIX}"/usr/$(get_libdir)
+ export FETK_LIBRARY="${sg_lib}"
+ export FETK_MOTIF_LIBRARY="${sg_lib}"
+ export FETK_GL_LIBRARY="${sg_lib}"
+ export FETK_GLU_LIBRARY="${sg_lib}"
+ export FETK_GLW_LIBRARY="${sg_lib}"
+ export FETK_INCLUDE="${sg_include}"
+ export FETK_GLW_INCLUDE="${sg_include}"
+ export FETK_GLU_INCLUDE="${sg_include}"
+ export FETK_GL_INCLUDE="${sg_include}"/GL
+ export FETK_MOTIF_INCLUDE="${sg_include}"
+
+ use doc || myeconfargs+=( --with-doxygen= --with-dot= )
+
+ myeconfargs+=( --enable-glforce --enable-gluforce --enable-glwforce )
+
+ myeconfargs+=(
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+ --disable-triplet
+ )
+ autotools-utils_src_configure
+}