blob: 59bded87f5658efb947394ec9255892c224d8f87 [file] [log] [blame]
Patrick Williamsac13d5f2023-11-24 18:59:46 -06001SUMMARY = "PROJ.4 - Cartographic Projections library"
2HOMEPAGE = "http://trac.osgeo.org/proj/"
3SECTION = "libs"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=f27445198ba1500f508fce2b183ce0ff"
6DEPENDS = "sqlite3 sqlite3-native"
7
8SRC_URI = "http://download.osgeo.org/${BPN}/${BP}.tar.gz"
9SRC_URI[sha256sum] = "91a3695a004ea28db0448a34460bed4cc3b130e5c7d74339ec999efdab0e547d"
10
11inherit cmake lib_package
12
13EXTRA_OECMAKE = "-DBUILD_TESTING=OFF -DSQLITE3_LIBRARY:STRING=sqlite3"
14
15FILES:${PN} += "${datadir}/proj"
16
17BBCLASSEXTEND = "native"
18
19PACKAGECONFIG ?= "curl shared"
20PACKAGECONFIG:append:class-native = " apps"
21
22PACKAGECONFIG[apps] = "-DBUILD_APPS=ON, -DBUILD_APPS=OFF"
23PACKAGECONFIG[curl] = "-DENABLE_CURL=ON,-DENABLE_CURL=OFF,curl"
24PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
25PACKAGECONFIG[tiff] = "-DENABLE_TIFF=ON,-DENABLE_TIFF=OFF,tiff"