aboutsummaryrefslogtreecommitdiff
path: root/package/shapelib/shapelib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/shapelib/shapelib.mk')
-rw-r--r--package/shapelib/shapelib.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/shapelib/shapelib.mk b/package/shapelib/shapelib.mk
new file mode 100644
index 0000000000..1e9c16f336
--- /dev/null
+++ b/package/shapelib/shapelib.mk
@@ -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))