Skip to content

Commit 85e531d

Browse files
committed
Initial copy/commit.
1 parent f4bd4a5 commit 85e531d

File tree

8 files changed

+234
-1
lines changed

8 files changed

+234
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
meta-osg
22
========
33

4-
Yocto layer for OpenSceneGraph and related libraries.
4+
Yocto layer for OpenSceneGraph and various OSG extension NodeKits,
5+
including their dependencies.

conf/layer.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# We have a conf and classes directory, add to BBPATH
2+
BBPATH .= ":${LAYERDIR}"
3+
4+
# We have a recipes-* directories, add to BBFILES
5+
BBFILES += " \
6+
${LAYERDIR}/recipes-*/*.bb \
7+
${LAYERDIR}/recipes-*/*.bbappend \
8+
"
9+
10+
BBFILE_COLLECTIONS += "osg"
11+
BBFILE_PATTERN_jetson-tk1 = "^${LAYERDIR}/"
12+
BBFILE_PRIORITY_jetson-tk1 = "6"

recipes-deps/gdal_1.11.0.bb

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
SUMMARY = "GDAL is a translator library for raster geospatial data formats"
2+
HOMEPAGE = "http://www.gdal.org/"
3+
LICENSE = "MIT"
4+
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=0952e17969fab12227096b5228f23149"
5+
6+
DEPENDS = "proj sqlite3 tiff"
7+
8+
SRC_URI = "http://download.osgeo.org/gdal/${PV}/gdal-${PV}.tar.xz"
9+
10+
S = "${WORKDIR}/gdal-${PV}"
11+
12+
SRC_URI[md5sum] = "31f2c4a7230b40e5fdc3cf12a100f96b"
13+
SRC_URI[sha256sum] = "b5186b5817e94743de1bceef66aeee1461687e14f73bf81034fcf0377eacbcc3"
14+
15+
inherit autotools-brokensep lib_package binconfig
16+
17+
EXTRA_OECONF = " \
18+
--without-perl \
19+
--without-php \
20+
--without-ruby \
21+
--without-python \
22+
--without-grass \
23+
--without-libgrass \
24+
--without-cfitsio \
25+
--without-dds \
26+
--without-gta \
27+
--without-pcidsk \
28+
--without-ogdi \
29+
--without-fme \
30+
--without-hdf4 \
31+
--without-hdf5 \
32+
--without-pg \
33+
--without-jpeg12 \
34+
--without-ogdi \
35+
--without-netcdf \
36+
--without-openjpeg \
37+
--without-fgdb \
38+
--without-ecw \
39+
--without-kakadu \
40+
--without-mrsid \
41+
--without-jp2mrsid \
42+
--without-mrsid_lidar \
43+
--without-msg \
44+
--without-bsb \
45+
--without-grib \
46+
--without-mysql \
47+
--without-ingres \
48+
--without-odbc \
49+
--without-dods_root \
50+
--without-xml2 \
51+
--without-spatialite \
52+
--without-pcre \
53+
--without-dwgdirect \
54+
--without-dwgdirect \
55+
--without-idb \
56+
--without-sde \
57+
--without-sde-version \
58+
--without-epsilon \
59+
--without-webp \
60+
--without-opencl \
61+
--without-opencl-include \
62+
--without-opencl-lib \
63+
--without-freexl \
64+
--without-pam \
65+
--without-poppler \
66+
--without-podofo \
67+
--without-podofo-lib \
68+
--without-podofo-extra-lib-for-test \
69+
--without-static_proj4 \
70+
--without-perl \
71+
--without-php \
72+
--without-ruby \
73+
--without-python \
74+
--without-java \
75+
--without-mdb \
76+
--without-jvm-lib \
77+
--without-jvm-lib-add-rpath \
78+
--without-rasdaman \
79+
--without-armadillo \
80+
--with-pcraster=internal \
81+
--with-geotiff=internal \
82+
--without-sqlite3 \
83+
--without-libtiff \
84+
--with-libjson-c=internal \
85+
--without-expat \
86+
"
87+
88+
#
89+
# --with-sqlite3=${STAGING_LIBDIR} \
90+
# --with-libtiff=${STAGING_LIBDIR} \
91+
# --with-libjson-c=${STAGING_LIBDIR} \
92+
#"
93+
94+
EXTRA_OEMAKE += "INST_DATA="${datadir}/gdal""
95+
96+
PACKAGECONFIG ?= "geos png jasper"
97+
PACKAGECONFIG[geos] = "--with-geos,--without-geos,geos"
98+
PACKAGECONFIG[lzma] = "--with-liblzma,--without-liblzma,xz"
99+
PACKAGECONFIG[png] = "--with-png,--without-png,libpng"
100+
PACKAGECONFIG[gif] = "--with-gif,--without-gif,giflib"
101+
PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg"
102+
PACKAGECONFIG[z] = "--with-libz,--without-libz,zlib"
103+
PACKAGECONFIG[jasper] = "--with-jasper,--without-jasper,jasper"
104+
PACKAGECONFIG[curl] = "--with-curl,--without-curl,curl"
105+
106+
do_configure_prepend () {
107+
sed \
108+
-e 's,/usr/include,NON_EXISTENT_DIR,g' \
109+
-e 's,/usr/lib,NON_EXISTENT_DIR,g' \
110+
-i ${S}/configure.in
111+
}
112+
113+
do_configure_append () {
114+
sed \
115+
-e 's,-Lno/lib,,g' \
116+
-e 's,-Ino/include,,g' \
117+
-i ${S}/GDALmake.opt
118+
}
119+
120+
FILES_${PN} += "${libdir}/gdalplugins"
121+

recipes-deps/geographiclib_1.36.bb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
LICENSE = "MIT"
2+
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7f6709959f8a4f895aa10e357dbbe5bf"
3+
SRC_URI[md5sum] = "c96ffb3ad358047d076c9af7f74635d9"
4+
SRC_URI[sha256sum] = "a93f41d8579b909ee23b593b500fd190739c4a446c13f663f5bb7c9b6707f03d"
5+
SRC_URI = "http://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.36.tar.gz"
6+
7+
S = "${WORKDIR}/GeographicLib-1.36"
8+
9+
inherit autotools
10+
11+
FILES_${PN} += " \
12+
/usr/share/cmake/GeographicLib/FindGeographicLib.cmake \
13+
/usr/lib/python/site-packages/geographiclib/* \
14+
"
15+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
LICENSE = "OSGPL"
2+
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2c38926f611bfbd5a3be0f817c8d2dad"
3+
SRC_URI[md5sum] = "4f95206a1eef218bd007c3b43e1334f5"
4+
SRC_URI[sha256sum] = "d9ae72263d0191855b0f804d93c586d489f119aca0499292acc09bb0fa0b3e6d"
5+
SRC_URI = "http://www.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${PV}.zip"
6+
7+
S = "${WORKDIR}/OpenSceneGraph-${PV}"
8+
9+
DEPENDS += "mesa-gl"
10+
11+
inherit pkgconfig cmake
12+
13+
EXTRA_OECMAKE = " \
14+
-D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1 \
15+
"
16+
17+
FILES_${PN} += " \
18+
/usr/lib/osgPlugins-3.2.1/* \
19+
/usr/bin/osg* \
20+
/usr/bin/present3D \
21+
/usr/lib/libosg* \
22+
/usr/lib/libOpenThread* \
23+
"
24+
25+
FILES_${PN}-dbg += "/usr/lib/osgPlugins-3.2.1/.debug/*"
26+

recipes-osg/osgcairo_1.5.0.bb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
LICENSE = "LGPLv2.1+"
2+
LIC_FILES_CHKSUM = "file://LICENSE;md5=9226151d58bcdf987ed14e7dc8cedcbc"
3+
SRCREV = "152"
4+
SRC_URI = "svn://osgcairo.googlecode.com/svn/tags;module=1.5.0;protocol=http"
5+
6+
S = "${WORKDIR}/1.5.0"
7+
8+
DEPENDS = "openscenegraph"
9+
10+
inherit pkgconfig cmake
11+
12+
FILES_${PN} = " \
13+
/usr/lib/libosgCairo* \
14+
/usr/bin/osgcairo* \
15+
"
16+
17+
FILES_${PN}-dev = " /usr/include/osgCairo "
18+

recipes-osg/osgearth_2.5.bb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
LICENSE = "LGPLv2.1+"
2+
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ae675a42253184be27cabc2a56793cfe"
3+
4+
# SRC_URI[md5sum] = "c532bf5dca74b955393658929c1801d0"
5+
# SRC_URI[sha256sum] = "07745925344bc74dec9e2c441ccaca746c34a67895b93e14326ab2856354b0aa"
6+
# SRC_URI = "https://github.com/gwaldron/osgearth/archive/osgearth-${PV}.zip"
7+
8+
SRCREV = "master"
9+
SRC_URI = "git://github.com/gwaldron/osgearth.git;protocol=http"
10+
11+
# S = "${WORKDIR}/osgearth-osgearth-${PV}"
12+
S = "${WORKDIR}/git"
13+
14+
DEPENDS = "openscenegraph gdal curl"
15+
16+
inherit pkgconfig cmake
17+
18+
FILES_${PN} += " \
19+
/usr/lib/osgdb* \
20+
/usr/lib/libosgEarth* \
21+
/usr/bin/osgearth* \
22+
"
23+

recipes-osg/osgworks_3.0.bb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
LICENSE = "LGPLv2.1+"
2+
LIC_FILES_CHKSUM = "file://include/osgwTools/Version.h.in;md5=ec6c7a13ff6d825b4cae5ec639e7d380"
3+
SRCREV = "565"
4+
SRC_URI = "svn://osgworks.googlecode.com/svn/tags;module=osgWorks_03_00_00;protocol=http"
5+
6+
S = "${WORKDIR}/osgWorks_03_00_00"
7+
8+
DEPENDS = "openscenegraph"
9+
10+
inherit pkgconfig cmake
11+
12+
FILES_${PN} += " \
13+
/usr/share/osgWorks/extra \
14+
/usr/share/osgWorks/data/* \
15+
/usr/lib/* \
16+
"
17+

0 commit comments

Comments
 (0)