shapelib: new package
authorZoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Sun, 31 Jul 2016 12:45:50 +0000 (14:45 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 21 Sep 2016 13:55:23 +0000 (15:55 +0200)
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
[Thomas:
 - adjust the license: it's MIT or LGPLv2, add web/license.html to the
   license files
 - rewrap Config.in help text
 - add entry to the DEVELOPERS file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/shapelib/Config.in [new file with mode: 0644]
package/shapelib/shapelib.hash [new file with mode: 0644]
package/shapelib/shapelib.mk [new file with mode: 0644]

index 605af965b2f39c9aa6014fbcf16a92cb428f3035..8205a82f5654ea88f4ac79bd769ee3dcd97cf6b7 100644 (file)
@@ -1578,4 +1578,5 @@ F:        package/python-configobj/
 F:     package/python-iniparse/
 F:     package/qjson/
 F:     package/quazip/
+F:     package/shapelib/
 F:     package/tinc/
index a9f6bc71733e9882fc1d73436bdd7f97f929d474..dd220e8b5deee791ecbc752947cc72836f99e769 100644 (file)
@@ -1338,6 +1338,7 @@ endif
        source "package/protobuf-c/Config.in"
        source "package/qhull/Config.in"
        source "package/qlibc/Config.in"
+       source "package/shapelib/Config.in"
        source "package/sphinxbase/Config.in"
        source "package/startup-notification/Config.in"
        source "package/tinycbor/Config.in"
diff --git a/package/shapelib/Config.in b/package/shapelib/Config.in
new file mode 100644 (file)
index 0000000..aa2297b
--- /dev/null
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SHAPELIB
+       bool "shapelib"
+       help
+         The Shapefile C Library provides the ability to write simple
+         C programs for reading, writing and updating (to a limited
+         extent) ESRI Shapefiles, and the associated attribute file
+         (.dbf).
+
+         http://shapelib.maptools.org/
diff --git a/package/shapelib/shapelib.hash b/package/shapelib/shapelib.hash
new file mode 100644 (file)
index 0000000..f3f812e
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f  shapelib-1.3.0.tar.gz
diff --git a/package/shapelib/shapelib.mk b/package/shapelib/shapelib.mk
new file mode 100644 (file)
index 0000000..1e9c16f
--- /dev/null
@@ -0,0 +1,25 @@
+################################################################################
+#
+# shapelib
+#
+################################################################################
+
+SHAPELIB_VERSION = 1.3.0
+SHAPELIB_SITE = http://download.osgeo.org/shapelib
+SHAPELIB_LICENSE = MIT or LGPLv2
+SHAPELIB_LICENSE_FILES = web/license.html LICENSE.LGPL
+SHAPELIB_INSTALL_STAGING = YES
+
+define SHAPELIB_BUILD_CMDS
+       $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define SHAPELIB_INSTALL_STAGING_CMDS
+       $(MAKE) -C $(@D) PREFIX=$(STAGING_DIR)/usr/ lib_install
+endef
+
+define SHAPELIB_INSTALL_TARGET_CMDS
+       $(MAKE) -C $(@D) PREFIX=$(TARGET_DIR)/usr/ bin_install
+endef
+
+$(eval $(generic-package))