graphics/osg: Fix all platforms 1) Modified current patch to support DragonFly 2) Fixed includes for ffmeg headers 3) The API for ffmpeg's sample format changed, so tell it to use old API. This can be removed when OpenSceneGraph version is upgraded 4) The PLIST was missing ffmpeg plugin. I guess it never built before.diff -r1.9 -r1.10 pkgsrc/graphics/osg/Makefile
(marino)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2011/11/01 06:01:41 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2011/12/11 11:59:06 marino Exp $ | |
2 | 2 | |||
3 | DISTNAME= OpenSceneGraph-${OSGVER} | 3 | DISTNAME= OpenSceneGraph-${OSGVER} | |
4 | PKGNAME= osg-${OSGVER} | 4 | PKGNAME= osg-${OSGVER} | |
5 | PKGREVISION= 6 | 5 | PKGREVISION= 7 | |
6 | CATEGORIES= graphics devel | 6 | CATEGORIES= graphics devel | |
7 | MASTER_SITES= http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-${OSGVER}/source/ | 7 | MASTER_SITES= http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-${OSGVER}/source/ | |
8 | EXTRACT_SUFX= .zip | 8 | EXTRACT_SUFX= .zip | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://www.openscenegraph.org/ | 11 | HOMEPAGE= http://www.openscenegraph.org/ | |
12 | COMMENT= High performance 3D graphics toolkit | 12 | COMMENT= High performance 3D graphics toolkit | |
13 | 13 | |||
14 | LICENSE= gnu-lgpl-v2.1 | 14 | LICENSE= gnu-lgpl-v2.1 | |
15 | 15 | |||
16 | OSGVER= 2.8.3 | 16 | OSGVER= 2.8.3 | |
17 | 17 | |||
18 | PKG_DESTDIR_SUPPORT= user-destdir | 18 | PKG_DESTDIR_SUPPORT= user-destdir | |
@@ -26,19 +26,20 @@ PKGCONFIG_OVERRIDE+= packaging/pkgconfig | @@ -26,19 +26,20 @@ PKGCONFIG_OVERRIDE+= packaging/pkgconfig | |||
26 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | 26 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | |
27 | 27 | |||
28 | .include "../../graphics/cairo/buildlink3.mk" | 28 | .include "../../graphics/cairo/buildlink3.mk" | |
29 | .include "../../graphics/freetype2/buildlink3.mk" | 29 | .include "../../graphics/freetype2/buildlink3.mk" | |
30 | .include "../../graphics/glu/buildlink3.mk" | 30 | .include "../../graphics/glu/buildlink3.mk" | |
31 | .include "../../graphics/jasper/buildlink3.mk" | 31 | .include "../../graphics/jasper/buildlink3.mk" | |
32 | .include "../../mk/jpeg.buildlink3.mk" | 32 | .include "../../mk/jpeg.buildlink3.mk" | |
33 | .include "../../mk/giflib.buildlink3.mk" | 33 | .include "../../mk/giflib.buildlink3.mk" | |
34 | .include "../../graphics/librsvg/buildlink3.mk" | 34 | .include "../../graphics/librsvg/buildlink3.mk" | |
35 | .include "../../graphics/MesaLib/buildlink3.mk" | 35 | .include "../../graphics/MesaLib/buildlink3.mk" | |
36 | .include "../../graphics/openexr/buildlink3.mk" | 36 | .include "../../graphics/openexr/buildlink3.mk" | |
37 | .include "../../graphics/png/buildlink3.mk" | 37 | .include "../../graphics/png/buildlink3.mk" | |
38 | .include "../../graphics/tiff/buildlink3.mk" | 38 | .include "../../graphics/tiff/buildlink3.mk" | |
39 | .include "../../multimedia/ffmpeg/buildlink3.mk" | |||
39 | .include "../../multimedia/xine-lib/buildlink3.mk" | 40 | .include "../../multimedia/xine-lib/buildlink3.mk" | |
40 | .include "../../www/curl/buildlink3.mk" | 41 | .include "../../www/curl/buildlink3.mk" | |
41 | .include "../../x11/libX11/buildlink3.mk" | 42 | .include "../../x11/libX11/buildlink3.mk" | |
42 | .include "../../x11/libXrandr/buildlink3.mk" | 43 | .include "../../x11/libXrandr/buildlink3.mk" | |
43 | .include "../../mk/pthread.buildlink3.mk" | 44 | .include "../../mk/pthread.buildlink3.mk" | |
44 | .include "../../mk/bsd.pkg.mk" | 45 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2010/08/26 13:08:49 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2011/12/11 11:59:06 marino Exp $ | |
2 | bin/osgarchive | 2 | bin/osgarchive | |
3 | bin/osgconv | 3 | bin/osgconv | |
4 | bin/osgfilecache | 4 | bin/osgfilecache | |
5 | bin/osgversion | 5 | bin/osgversion | |
6 | bin/osgviewer | 6 | bin/osgviewer | |
7 | include/OpenThreads/Atomic | 7 | include/OpenThreads/Atomic | |
8 | include/OpenThreads/Barrier | 8 | include/OpenThreads/Barrier | |
9 | include/OpenThreads/Block | 9 | include/OpenThreads/Block | |
10 | include/OpenThreads/Condition | 10 | include/OpenThreads/Condition | |
11 | include/OpenThreads/Config | 11 | include/OpenThreads/Config | |
12 | include/OpenThreads/Exports | 12 | include/OpenThreads/Exports | |
13 | include/OpenThreads/Mutex | 13 | include/OpenThreads/Mutex | |
14 | include/OpenThreads/ReadWriteMutex | 14 | include/OpenThreads/ReadWriteMutex | |
@@ -543,26 +543,27 @@ lib/libosgWidget.so.65 | @@ -543,26 +543,27 @@ lib/libosgWidget.so.65 | |||
543 | lib/osgPlugins-${PKGVERSION}/osgdb_3dc.so | 543 | lib/osgPlugins-${PKGVERSION}/osgdb_3dc.so | |
544 | lib/osgPlugins-${PKGVERSION}/osgdb_3ds.so | 544 | lib/osgPlugins-${PKGVERSION}/osgdb_3ds.so | |
545 | lib/osgPlugins-${PKGVERSION}/osgdb_ac.so | 545 | lib/osgPlugins-${PKGVERSION}/osgdb_ac.so | |
546 | lib/osgPlugins-${PKGVERSION}/osgdb_bmp.so | 546 | lib/osgPlugins-${PKGVERSION}/osgdb_bmp.so | |
547 | lib/osgPlugins-${PKGVERSION}/osgdb_bsp.so | 547 | lib/osgPlugins-${PKGVERSION}/osgdb_bsp.so | |
548 | lib/osgPlugins-${PKGVERSION}/osgdb_bvh.so | 548 | lib/osgPlugins-${PKGVERSION}/osgdb_bvh.so | |
549 | lib/osgPlugins-${PKGVERSION}/osgdb_cfg.so | 549 | lib/osgPlugins-${PKGVERSION}/osgdb_cfg.so | |
550 | lib/osgPlugins-${PKGVERSION}/osgdb_curl.so | 550 | lib/osgPlugins-${PKGVERSION}/osgdb_curl.so | |
551 | lib/osgPlugins-${PKGVERSION}/osgdb_dds.so | 551 | lib/osgPlugins-${PKGVERSION}/osgdb_dds.so | |
552 | lib/osgPlugins-${PKGVERSION}/osgdb_dot.so | 552 | lib/osgPlugins-${PKGVERSION}/osgdb_dot.so | |
553 | lib/osgPlugins-${PKGVERSION}/osgdb_dw.so | 553 | lib/osgPlugins-${PKGVERSION}/osgdb_dw.so | |
554 | lib/osgPlugins-${PKGVERSION}/osgdb_dxf.so | 554 | lib/osgPlugins-${PKGVERSION}/osgdb_dxf.so | |
555 | lib/osgPlugins-${PKGVERSION}/osgdb_exr.so | 555 | lib/osgPlugins-${PKGVERSION}/osgdb_exr.so | |
556 | lib/osgPlugins-${PKGVERSION}/osgdb_ffmpeg.so | |||
556 | lib/osgPlugins-${PKGVERSION}/osgdb_geo.so | 557 | lib/osgPlugins-${PKGVERSION}/osgdb_geo.so | |
557 | lib/osgPlugins-${PKGVERSION}/osgdb_gif.so | 558 | lib/osgPlugins-${PKGVERSION}/osgdb_gif.so | |
558 | lib/osgPlugins-${PKGVERSION}/osgdb_glsl.so | 559 | lib/osgPlugins-${PKGVERSION}/osgdb_glsl.so | |
559 | lib/osgPlugins-${PKGVERSION}/osgdb_gz.so | 560 | lib/osgPlugins-${PKGVERSION}/osgdb_gz.so | |
560 | lib/osgPlugins-${PKGVERSION}/osgdb_hdr.so | 561 | lib/osgPlugins-${PKGVERSION}/osgdb_hdr.so | |
561 | lib/osgPlugins-${PKGVERSION}/osgdb_ive.so | 562 | lib/osgPlugins-${PKGVERSION}/osgdb_ive.so | |
562 | lib/osgPlugins-${PKGVERSION}/osgdb_jp2.so | 563 | lib/osgPlugins-${PKGVERSION}/osgdb_jp2.so | |
563 | lib/osgPlugins-${PKGVERSION}/osgdb_jpeg.so | 564 | lib/osgPlugins-${PKGVERSION}/osgdb_jpeg.so | |
564 | lib/osgPlugins-${PKGVERSION}/osgdb_logo.so | 565 | lib/osgPlugins-${PKGVERSION}/osgdb_logo.so | |
565 | lib/osgPlugins-${PKGVERSION}/osgdb_lwo.so | 566 | lib/osgPlugins-${PKGVERSION}/osgdb_lwo.so | |
566 | lib/osgPlugins-${PKGVERSION}/osgdb_lws.so | 567 | lib/osgPlugins-${PKGVERSION}/osgdb_lws.so | |
567 | lib/osgPlugins-${PKGVERSION}/osgdb_md2.so | 568 | lib/osgPlugins-${PKGVERSION}/osgdb_md2.so | |
568 | lib/osgPlugins-${PKGVERSION}/osgdb_mdl.so | 569 | lib/osgPlugins-${PKGVERSION}/osgdb_mdl.so |
@@ -1,10 +1,11 @@ | @@ -1,10 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.2 2011/09/24 12:58:11 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.3 2011/12/11 11:59:06 marino Exp $ | |
2 | 2 | |||
3 | SHA1 (OpenSceneGraph-2.8.3.zip) = 90502e4cbd47aac1689cc39d25ab62bbe0bba9fc | 3 | SHA1 (OpenSceneGraph-2.8.3.zip) = 90502e4cbd47aac1689cc39d25ab62bbe0bba9fc | |
4 | RMD160 (OpenSceneGraph-2.8.3.zip) = 40a4988f4aefff7dbb6aab5225204ae41c945277 | 4 | RMD160 (OpenSceneGraph-2.8.3.zip) = 40a4988f4aefff7dbb6aab5225204ae41c945277 | |
5 | Size (OpenSceneGraph-2.8.3.zip) = 6740017 bytes | 5 | Size (OpenSceneGraph-2.8.3.zip) = 6740017 bytes | |
6 | SHA1 (patch-ab) = 3707347bed3d597bc50ad81f0e5c974ffb60100a | 6 | SHA1 (patch-ab) = 28049bfe9e70301e5dba5c916ead51a31c86ac6c | |
7 | SHA1 (patch-ac) = bc35c9b0a9c7612137c66018b36b35b9897065be | 7 | SHA1 (patch-ac) = bc35c9b0a9c7612137c66018b36b35b9897065be | |
8 | SHA1 (patch-ad) = 846f4f93104812125bffc8644948637de206bdc0 | 8 | SHA1 (patch-ad) = 846f4f93104812125bffc8644948637de206bdc0 | |
9 | SHA1 (patch-ae) = d882f09acac61f74a25cf3efc8f3b7b3756adae3 | 9 | SHA1 (patch-ae) = d882f09acac61f74a25cf3efc8f3b7b3756adae3 | |
10 | SHA1 (patch-src-osgPlugins-curl-ReaderWriterCURL.cpp) = 4ece011ff1284011b7777f00b838d6673c22bd2a | 10 | SHA1 (patch-src-osgPlugins-curl-ReaderWriterCURL.cpp) = 4ece011ff1284011b7777f00b838d6673c22bd2a | |
11 | SHA1 (patch-src_osgPlugins_ffmpeg_FFmpegHeaders.hpp) = c828563699eb726214995bae63fcf028ff3a374a |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-ab,v 1.1.1.1 2010/08/26 13:08:49 adam Exp $ | 1 | $NetBSD: patch-ab,v 1.2 2011/12/11 11:59:06 marino Exp $ | |
2 | 2 | |||
3 | --- src/osgDB/FileUtils.cpp.orig 2009-01-12 17:28:37.000000000 +0200 | 3 | --- src/osgDB/FileUtils.cpp.orig 2009-01-12 17:28:37.000000000 +0200 | |
4 | +++ src/osgDB/FileUtils.cpp 2009-01-12 17:30:14.000000000 +0200 | 4 | +++ src/osgDB/FileUtils.cpp 2009-01-12 17:30:14.000000000 +0200 | |
5 | @@ -47,7 +47,7 @@ | 5 | @@ -47,7 +47,7 @@ | |
6 | #if (MAC_OS_X_VERSION_MAX_ALLOWED <= 1040) | 6 | #if (MAC_OS_X_VERSION_MAX_ALLOWED <= 1040) | |
7 | #define stat64 stat | 7 | #define stat64 stat | |
8 | #endif | 8 | #endif | |
9 | -#elif defined(__CYGWIN__) || defined(__FreeBSD__) || (defined(__hpux) && !defined(_LARGEFILE64_SOURCE)) | 9 | -#elif defined(__CYGWIN__) || defined(__FreeBSD__) || (defined(__hpux) && !defined(_LARGEFILE64_SOURCE)) | |
10 | +#elif defined(__CYGWIN__) || defined(__FreeBSD__) || defined (__NetBSD__) || (defined(__hpux) && !defined(_LARGEFILE64_SOURCE)) | 10 | +#elif defined(__CYGWIN__) || defined(__FreeBSD__) || defined (__NetBSD__) || (defined(__hpux) || defined(__DragonFly__) && !defined(_LARGEFILE64_SOURCE)) | |
11 | #define stat64 stat | 11 | #define stat64 stat | |
12 | #endif | 12 | #endif | |
13 | 13 |
$NetBSD: patch-src_osgPlugins_ffmpeg_FFmpegHeaders.hpp,v 1.1 2011/12/11 11:59:06 marino Exp $
--- src/osgPlugins/ffmpeg/FFmpegHeaders.hpp.orig 2010-03-19 08:03:02.000000000 +0000
+++ src/osgPlugins/ffmpeg/FFmpegHeaders.hpp
@@ -6,11 +6,12 @@
extern "C"
{
#define __STDC_CONSTANT_MACROS
+#define FF_API_OLD_SAMPLE_FMT 0
#include <errno.h> // for error codes defined in avformat.h
#include <stdint.h>
-#include <avcodec.h>
-#include <avformat.h>
-#include <avdevice.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
+#include <libavdevice/avdevice.h>
#ifdef USE_SWSCALE
#include <swscale.h>