blob: 218f083969fab1411e224a6a79f1d729531d79df [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -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] = "81b2239b94cad0886222cde4f53cb49d34905aad2a1317244a0c30a553db2315"
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"