Bladeren bron

package/shapelib: bump to version 1.4.1

This new version needs proj as a dependency, and provides an
autotools-based build system.

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Zoltan Gyarmati 7 jaren geleden
bovenliggende
commit
333f560595
3 gewijzigde bestanden met toevoegingen van 10 en 15 verwijderingen
  1. 6 0
      package/shapelib/Config.in
  2. 1 1
      package/shapelib/shapelib.hash
  3. 3 14
      package/shapelib/shapelib.mk

+ 6 - 0
package/shapelib/Config.in

@@ -1,5 +1,8 @@
 config BR2_PACKAGE_SHAPELIB
 config BR2_PACKAGE_SHAPELIB
 	bool "shapelib"
 	bool "shapelib"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_PROJ
 	help
 	help
 	  The Shapefile C Library provides the ability to write simple
 	  The Shapefile C Library provides the ability to write simple
 	  C programs for reading, writing and updating (to a limited
 	  C programs for reading, writing and updating (to a limited
@@ -7,3 +10,6 @@ config BR2_PACKAGE_SHAPELIB
 	  (.dbf).
 	  (.dbf).
 
 
 	  http://shapelib.maptools.org/
 	  http://shapelib.maptools.org/
+
+comment "shapelib needs a toolchain w/ C++, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS

+ 1 - 1
package/shapelib/shapelib.hash

@@ -1,2 +1,2 @@
 # Locally computed
 # Locally computed
-sha256 23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f  shapelib-1.3.0.tar.gz
+sha256 a4c94817365761a3a4c21bb3ca1c680a6bdfd3edd61df9fdd291d3e7645923b3  shapelib-1.4.1.tar.gz

+ 3 - 14
package/shapelib/shapelib.mk

@@ -4,22 +4,11 @@
 #
 #
 ################################################################################
 ################################################################################
 
 
-SHAPELIB_VERSION = 1.3.0
+SHAPELIB_VERSION = 1.4.1
 SHAPELIB_SITE = http://download.osgeo.org/shapelib
 SHAPELIB_SITE = http://download.osgeo.org/shapelib
 SHAPELIB_LICENSE = MIT or LGPL-2.0
 SHAPELIB_LICENSE = MIT or LGPL-2.0
 SHAPELIB_LICENSE_FILES = web/license.html LICENSE.LGPL
 SHAPELIB_LICENSE_FILES = web/license.html LICENSE.LGPL
 SHAPELIB_INSTALL_STAGING = YES
 SHAPELIB_INSTALL_STAGING = YES
+SHAPELIB_DEPENDENCIES = proj
 
 
-define SHAPELIB_BUILD_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
-endef
-
-define SHAPELIB_INSTALL_STAGING_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(STAGING_DIR)/usr/ lib_install
-endef
-
-define SHAPELIB_INSTALL_TARGET_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(TARGET_DIR)/usr/ bin_install
-endef
-
-$(eval $(generic-package))
+$(eval $(autotools-package))