package/libgeotiff: add optional proj dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 3 Feb 2019 22:39:28 +0000 (23:39 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 4 Feb 2019 13:03:56 +0000 (14:03 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libgeotiff/libgeotiff.mk

index 522802cc9490e873788fb14ae248213ba067437f..a4606bc30cfd075a3f437e7d519d253c148a7966 100644 (file)
@@ -26,4 +26,11 @@ else
 LIBGEOTIFF_CONF_OPTS += --without-jpeg
 endif
 
+ifeq ($(BR2_PACKAGE_PROJ),y)
+LIBGEOTIFF_DEPENDENCIES += proj
+LIBGEOTIFF_CONF_OPTS += --with-proj=$(STAGING_DIR)/usr
+else
+LIBGEOTIFF_CONF_OPTS += --without-proj
+endif
+
 $(eval $(autotools-package))