package/libgta: new package
authorRomain Naour <romain.naour@gmail.com>
Tue, 26 Dec 2017 21:10:06 +0000 (22:10 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 31 Dec 2017 16:58:39 +0000 (17:58 +0100)
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/libgta/Config.in [new file with mode: 0644]
package/libgta/libgta.hash [new file with mode: 0644]
package/libgta/libgta.mk [new file with mode: 0644]

index 50bc87a8e4425732e41414d0934354207a678401..829c2d67d777bff63ac2973d9ea4be95ed75e58a 100644 (file)
@@ -1466,6 +1466,7 @@ F:        package/iqvlinux/
 F:     package/irrlicht/
 F:     package/liblinear/
 F:     package/lensfun/
+F:     package/libgta/
 F:     package/libspatialindex/
 F:     package/linux-syscall-support/
 F:     package/lugaru/
index fe03e08292899ee87bc053db6d8ecc69afe04b49..e6e37cff00c56073d59558398595d44b80985f08 100644 (file)
@@ -1130,6 +1130,7 @@ menu "Graphics"
        source "package/libglew/Config.in"
        source "package/libglfw/Config.in"
        source "package/libglu/Config.in"
+       source "package/libgta/Config.in"
        source "package/libgtk2/Config.in"
        source "package/libgtk3/Config.in"
        source "package/libmediaart/Config.in"
diff --git a/package/libgta/Config.in b/package/libgta/Config.in
new file mode 100644 (file)
index 0000000..894dced
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBGTA
+       bool "libgta"
+       select BR2_PACKAGE_BZIP2
+       select BR2_PACKAGE_ZLIB
+       select BR2_PACKAGE_XZ
+       help
+         Libgta is a portable library that implements the Generic
+         Tagged Array (GTA) file format.
+
+         http://gta.nongnu.org
diff --git a/package/libgta/libgta.hash b/package/libgta/libgta.hash
new file mode 100644 (file)
index 0000000..d5fceb4
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 1d2ff713955eee28310de082a8fd8e236403c27dee3716ba1238c56e6643e4fb  libgta-1.0.8.tar.xz
+sha256 36b6d3fa47916943fd5fec313c584784946047ec1337a78b440e5992cb595f89  COPYING
diff --git a/package/libgta/libgta.mk b/package/libgta/libgta.mk
new file mode 100644 (file)
index 0000000..1189fee
--- /dev/null
@@ -0,0 +1,29 @@
+################################################################################
+#
+# libgta
+#
+################################################################################
+
+LIBGTA_VERSION = 1.0.8
+LIBGTA_SITE = http://download.savannah.nongnu.org/releases/gta
+LIBGTA_SOURCE = libgta-$(LIBGTA_VERSION).tar.xz
+LIBGTA_INSTALL_STAGING = YES
+LIBGTA_DEPENDENCIES = host-pkgconf bzip2 xz zlib
+LIBGTA_LICENSE = LGPL-2.1+
+LIBGTA_LICENSE_FILES = COPYING
+
+LIBGTA_CONF_OPTS += -DGTA_BUILD_DOCUMENTATION=OFF
+
+ifeq ($(BR2_STATIC_LIBS),)
+LIBGTA_CONF_OPTS += -DGTA_BUILD_SHARED_LIB=ON
+else
+LIBGTA_CONF_OPTS += -DGTA_BUILD_SHARED_LIB=OFF
+endif
+
+ifeq ($(BR2_SHARED_LIBS),)
+LIBGTA_CONF_OPTS += -DGTA_BUILD_STATIC_LIB=ON
+else
+LIBGTA_CONF_OPTS += -DGTA_BUILD_STATIC_LIB=OFF
+endif
+
+$(eval $(cmake-package))