mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 16:24:17 -09:00
The proj package includes command line applications. Those have always been disabled in Buildroot. Those applications can be useful for scripting, and also for runtime testing the libraries. This commit adds a package Kconfig option to enable those apps. Tested-by: Zoltan Gyarmati <zgyarmati@zgyarmati.de> Acked-by: Zoltan Gyarmati <zgyarmati@zgyarmati.de> Signed-off-by: Julien Olivain <ju.o@free.fr>
42 lines
979 B
Makefile
42 lines
979 B
Makefile
################################################################################
|
|
#
|
|
# proj
|
|
#
|
|
################################################################################
|
|
|
|
PROJ_VERSION = 9.5.1
|
|
PROJ_SITE = http://download.osgeo.org/proj
|
|
PROJ_LICENSE = MIT
|
|
PROJ_LICENSE_FILES = COPYING
|
|
PROJ_INSTALL_STAGING = YES
|
|
PROJ_DEPENDENCIES = host-pkgconf host-sqlite sqlite
|
|
|
|
PROJ_CFLAGS = $(TARGET_CFLAGS)
|
|
PROJ_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
|
PROJ_CFLAGS += -O0
|
|
PROJ_CXXFLAGS += -O0
|
|
endif
|
|
|
|
PROJ_CONF_OPTS = \
|
|
-DBUILD_APPS=$(if $(BR2_PACKAGE_PROJ_APPS),ON,OFF) \
|
|
-DCMAKE_C_FLAGS="$(PROJ_CFLAGS)" \
|
|
-DCMAKE_CXX_FLAGS="$(PROJ_CXXFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
PROJ_DEPENDENCIES += libcurl
|
|
PROJ_CONF_OPTS += -DENABLE_CURL=ON
|
|
else
|
|
PROJ_CONF_OPTS += -DENABLE_CURL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
PROJ_DEPENDENCIES += tiff
|
|
PROJ_CONF_OPTS += -DENABLE_TIFF=ON
|
|
else
|
|
PROJ_CONF_OPTS += -DENABLE_TIFF=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|