Merge pull request #2855 from pullmoll/osg

New package: osg-3.4.0
This commit is contained in:
Jürgen Buchmüller 2015-10-31 12:31:39 +01:00
commit 7c44192cd3
11 changed files with 180 additions and 0 deletions

View file

@ -2254,3 +2254,24 @@ libhidapi-hidraw.so.0 hidapi-0.8.0rc1_1
libhidapi-libusb.so.0 hidapi-0.8.0rc1_1
libu2f-host.so.0 libu2f-host-1.0.0_1
libsqlcipher.so.0 sqlcipher-3.3.1_1
libgta.so.0 libgta-1.0.7_1
libgdal.so.20 libgdal-2.0.1_1
libosgViewer.so.130 osg-3.4.0_1
libosgShadow.so.130 osg-3.4.0_1
libosgParticle.so.130 osg-3.4.0_1
libOpenThreads.so.20 osg-3.4.0_1
libosgFX.so.130 osg-3.4.0_1
libosgText.so.130 osg-3.4.0_1
libosgUI.so.130 osg-3.4.0_1
libosg.so.130 osg-3.4.0_1
libosgAnimation.so.130 osg-3.4.0_1
libosgDB.so.130 osg-3.4.0_1
libosgManipulator.so.130 osg-3.4.0_1
libosgSim.so.130 osg-3.4.0_1
libosgTerrain.so.130 osg-3.4.0_1
libosgWidget.so.130 osg-3.4.0_1
libosgQt.so.130 osg-3.4.0_1
libosgUtil.so.130 osg-3.4.0_1
libosgVolume.so.130 osg-3.4.0_1
libosgGA.so.130 osg-3.4.0_1
libosgPresentation.so.130 osg-3.4.0_1

1
srcpkgs/libgdal-devel Symbolic link
View file

@ -0,0 +1 @@
libgdal

1
srcpkgs/libgdal-tools Symbolic link
View file

@ -0,0 +1 @@
libgdal

45
srcpkgs/libgdal/template Normal file
View file

@ -0,0 +1,45 @@
# Template file for 'libgdal'
pkgname=libgdal
version=2.0.1
revision=1
wrksrc=gdal-${version}
build_style=gnu-configure
hostmakedepends="automake libtool gettext-devel pkg-config python python-numpy"
makedepends="expat-devel libxml2-devel giflib-devel libopenexr-devel libpng-devel
jasper-devel tiff-devel poppler-glib-devel liblzma-devel openjpeg2 opencl2-headers
pcre-devel sqlite-devel"
short_desc="Geospatial Data Abstraction Library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="http://www.gdal.org/"
distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
checksum=2564c91ed8ed36274ee31002a25798f5babc4221e879cb5013867733d80f9920
pre_configure() {
mv configure.{in,ac}
sed -i configure.ac -e "/AC_PROG_RANLIB/d"
autoreconf -if
}
post_install() {
vinstall gdal.pc 644 usr/lib/pkgconfig
vlicense LICENSE.TXT
}
libgdal-tools_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
}
}
libgdal-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}

2
srcpkgs/libgdal/update Normal file
View file

@ -0,0 +1,2 @@
site=http://download.osgeo.org/gdal
pattern='\K[\d]+\.[\d]+\.[\d]+'

1
srcpkgs/libgta-devel Symbolic link
View file

@ -0,0 +1 @@
libgta

30
srcpkgs/libgta/template Normal file
View file

@ -0,0 +1,30 @@
# Template file for 'libgta'
pkgname=libgta
version=1.0.7
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="bzip2-devel liblzma-devel zlib-devel"
short_desc="Generic Tagged Arrays"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-2.1"
homepage="http://gta.nongnu.org"
distfiles="${NONGNU_SITE}/gta/${pkgname}-${version}.tar.xz"
checksum=85763f6b1a223d89e4ac000f5048d1d5bcd39b315192bca4e123fd89c24a0db5
post_install() {
# Also install the cmake find script
vinstall cmake/FindGTA.cmake 644 usr/lib/cmake/GTA
}
libgta-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}

1
srcpkgs/osg-devel Symbolic link
View file

@ -0,0 +1 @@
osg

View file

@ -0,0 +1,15 @@
This time it's the other way round: both GNU libc and musl libc
have <endian.h> so use defined(__linux__) to use this header
file for setting the target's endianness.
--- src/osgPlugins/osc/osc/OscHostEndianness.h 2015-07-23 13:14:00.000000000 +0200
+++ src/osgPlugins/osc/osc/OscHostEndianness.h 2015-10-31 06:39:02.503234496 +0100
@@ -51,7 +51,7 @@
#else
- #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__)
+ #if defined(__linux__) || defined(__ANDROID__) || defined(__CYGWIN__)
#include <endian.h>
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
#ifndef __LITTLE_ENDIAN__

View file

@ -0,0 +1,11 @@
--- src/OpenThreads/pthreads/PThread.cpp 2015-04-07 20:01:12.000000000 +0200
+++ src/OpenThreads/pthreads/PThread.cpp 2015-10-31 06:24:45.189319272 +0100
@@ -27,7 +27,7 @@
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
-#if !defined ANDROID
+#if defined __GLIBC__ && !defined ANDROID
#include <sys/unistd.h>
#endif
#endif

52
srcpkgs/osg/template Normal file
View file

@ -0,0 +1,52 @@
# Template file for 'osg'
pkgname=osg
version=3.4.0
revision=1
wrksrc=OpenSceneGraph-${version}
build_style=cmake
# don't use /usr/lib64 on 64bit platforms
configure_args="-DLIB_POSTFIX= $(vopt_if qt '-DOSG_USE_QT=1' '-DOSG_USE_QT=0')"
hostmakedepends="cmake pkg-config unzip xrandr"
makedepends="MesaLib-devel gtkglext-devel libcurl-devel giflib-devel librsvg-devel
jasper-devel tiff-devel libgdal-devel libgta-devel ffmpeg-devel xine-lib-devel
SDL2-devel gst-plugins-base1-devel
$(vopt_if openexr libopenexr-devel)
$(vopt_if poppler poppler-glib-devel)
$(vopt_if qt qt5-devel)
$(vopt_if vnc libvncserver-devel)"
depends="xrandr"
short_desc="OpenSceneGraph: high performance real-time graphics toolkit"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-3"
homepage="http://www.openscenegraph.org"
distfiles="http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip"
checksum=5c727d84755da276adf8c4a4a3a8ba9c9570fc4b4969f06f1d2e9f89b1e3040e
build_options="openexr poppler qt vnc"
build_options_default="openexr poppler vnc"
desc_option_openexr="Enable support for high dynamic range images"
desc_option_poppler="Enable support for creating PDF"
desc_option_vnc="Enable support for VNC server"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" qt"
else
# cmake can't check this when cross compiling
configure_args+=" -DPOPPLER_HAS_CAIRO_EXITCODE=0"
configure_args+=" -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=0"
fi
post_install() {
# Also install the cmake script FindOSG.cmake for developers to use
vinstall CMakeModules/FindOSG.cmake 644 usr/lib/cmake/OSG
}
osg-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}