proj: new package
authorZoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Sat, 16 Dec 2017 23:52:59 +0000 (00:52 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 17 Dec 2017 09:16:53 +0000 (10:16 +0100)
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
[Thomas:
 - switch to the autotools build system, which supports static linking
   properly
 - add <pkg>_LICENSE_FILES
 - add sha256 hash for the tarball, in addition to the md5 one
 - add license file hash
 - squash DEVELOPERS file addition]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/proj/Config.in [new file with mode: 0644]
package/proj/proj.hash [new file with mode: 0644]
package/proj/proj.mk [new file with mode: 0644]

index 63674d7b1acaf5606261a8a29cf84dfc31cb14aa..f820b97dd2d64d507b2e4d05191aea3544e493f1 100644 (file)
@@ -1889,6 +1889,7 @@ F:        utils/scanpypi
 N:     Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
 F:     package/crudini/
 F:     package/grantlee/
+F:     package/proj/
 F:     package/python-configobj/
 F:     package/python-iniparse/
 F:     package/qjson/
index e7435eb70d59ba053cba1c6e3664ed55cc5733ad..1423147064847b79ecde668b24828bbdf07f2bb2 100644 (file)
@@ -1594,6 +1594,7 @@ menu "Miscellaneous"
        source "package/linux-syscall-support/Config.in"
        source "package/mcrypt/Config.in"
        source "package/mobile-broadband-provider-info/Config.in"
+       source "package/proj/Config.in"
        source "package/qemu/Config.in"
        source "package/qpdf/Config.in"
        source "package/shared-mime-info/Config.in"
diff --git a/package/proj/Config.in b/package/proj/Config.in
new file mode 100644 (file)
index 0000000..788aee8
--- /dev/null
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_PROJ
+       bool "proj"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       help
+         proj.4 is a standard UNIX filter function which converts
+         geographic longitude and latitude coordinates into cartesian
+         coordinates (and vice versa), and it is a C API for software
+         developers to include coordinate transformation in their own
+         software.
+
+         http://proj4.org/
+
+comment "proj needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/proj/proj.hash b/package/proj/proj.hash
new file mode 100644 (file)
index 0000000..6a791ba
--- /dev/null
@@ -0,0 +1,5 @@
+# Fetched from http://download.osgeo.org/proj/proj-4.9.3.tar.gz.md5
+md5 d598336ca834742735137c5674b214a1 proj-4.9.3.tar.gz
+# Locally calculated
+sha256 6984542fea333488de5c82eea58d699e4aff4b359200a9971537cd7e047185f7 proj-4.9.3.tar.gz
+sha256 2dcac4af6990093ef48b896bfb81452d46a31b08d46cce34b27e83f93b2e37f6 COPYING
diff --git a/package/proj/proj.mk b/package/proj/proj.mk
new file mode 100644 (file)
index 0000000..5607dc0
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# proj
+#
+################################################################################
+
+PROJ_VERSION = 4.9.3
+PROJ_SOURCE = proj-$(PROJ_VERSION).tar.gz
+PROJ_SITE = http://download.osgeo.org/proj
+PROJ_LICENSE = MIT
+PROJ_LICENSE_FILES = COPYING
+PROJ_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))