d613b75b1d
to fix DVB support. (which still is broken for tuners using hardware pid filtering, like when running webcamd with "-m dvb-usb-init.force_pid_filter_usage=1".) - Add patches to fix build of ports depending on libxine to: audio/amarok, graphics/gimageview [1], graphics/pornview [1], graphics/osg [2], graphics/osg-devel [2], multimedia/emotion, x11/kdelibs4 [3], multimedia/kmplayer, multimedia/konverter, multimedia/qdvdauthor [4], multimedia/vdr-plugin-xineliboutput, multimedia/xfce4-media [5], multimedia/xine_artsplugin, multimedia/k9copy-kde4 [6] - Fix RUN_DEPENDS= xine... which should be LIB_DEPENDS for audio/atunes . [7] - Mark multimedia/phonon-xine BROKEN which refuses to build with libxine 1.2.x and is deprecated upstream. [3] - Disable XINE knob for x11/eaglemode for which I don't have a fix. [2] - Note: multimedia/kaffeine runs after rakuco's x11/kdelibs4 fix, but it only shows a green window at least with mp4 or ts files. (avi files and audio still work.) It seems the kaffeine developers have found this too and are now switching away from libxine in their git repo - so I guess we'll have a broken kaffeine at least until they release a new version. - Bump PORTREVISIONs for ports depending on libxine by default. - Add optional libbluray support to multimedia/libxine and multimedia/vdr-plugin-xineliboutput. PR: ports/165057 [6] Submitted by: nox (self) [6], rakuco [3] Approved by: dinoex (maintainer, via irc) [1], amdmi3 (maintainer, via private email) [2], kde@ (rakuco, via irc) [3], Phil Oleson <oz@nixil.net> (maintainer, via private email) [4], xfce@ (rene, via irc) [5], Eduardo Gielamo Oliveira <egoliveira@gmail.com> (maintainer) [6], lme (maintainer, via irc) [7] Thanx to: Darren Salt (upstream libxine maintainer) for a few hints on irc to help with patching ports depending on deprecated libxine features
238 lines
6 KiB
Makefile
238 lines
6 KiB
Makefile
# New ports collection makefile for: Open Scene Graph
|
|
# Date created: 26 Apr 2001
|
|
# Whom: Randall Hopper <aa8vb@nc.rr.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= osg
|
|
PORTVERSION= 2.9.11
|
|
PORTREVISION= 3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.openscenegraph.org/downloads/developer_releases/ \
|
|
http://mirror.amdmi3.ru/distfiles/
|
|
PKGNAMESUFFIX= -devel
|
|
DISTNAME= OpenSceneGraph-${PORTVERSION}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= C++ OpenGL scene graph library for real-time rendering
|
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
png.6:${PORTSDIR}/graphics/png \
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
CONFLICTS= osg-[0-9]*
|
|
|
|
USE_ZIP= yes
|
|
USE_CMAKE= yes
|
|
USE_GL= gl glu
|
|
USE_GNOME= pkgconfig
|
|
USE_XORG= x11
|
|
USE_LDCONFIG= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
PLIST_SUB= OSG_VERSION=${PORTVERSION} \
|
|
OSG_SHLIBVER=71 \
|
|
OPENTHREADS_VERSION=2.5.0 \
|
|
OPENTHREADS_SHLIBVER=12
|
|
|
|
PORTSCOUT= limitw:1,odd
|
|
|
|
OPTIONS= CURL "Support for cURL" off \
|
|
FREETYPE "Support for FreeType" on \
|
|
GDAL "Support for GDAL" off \
|
|
GIF "Support for giflib" on \
|
|
INVENTOR "Support for SGI OpenInventor" off \
|
|
JASPER "Support for JPEG2000" off \
|
|
XINE "Support for Xine" off \
|
|
ITK "Support for InsightToolkit" off \
|
|
VNC "Support for LibVNCServer" off \
|
|
OPENEXR "Support for OpenEXR" off \
|
|
FFMPEG "Support for FFmpeg" off \
|
|
SVG "Support for SVG through librsvg2" off \
|
|
PDF "Support for PDF through poppler" off \
|
|
XRANDR "Use Xrandr" on \
|
|
SDL "Use SDL (joystick support in present3d)" off
|
|
|
|
# broken (openvrml from ports is too old)
|
|
# OPENVRML "Support for OpenVRML" off
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
# GUI toolkits are only needed for building examples, which are not even installed
|
|
FORCE_IGNORE= FLTK GLUT FOX Qt3 Qt4 wxWidgets OpenAL GtkGl # only for examples
|
|
FORCE_IGNORE+= COLLADA Performer OurDCMTK XUL FBX # not in ports
|
|
FORCE_REQUIRE= Threads OpenGL X11 JPEG PNG TIFF ZLIB # common & lightweight
|
|
|
|
# options that affect FIND_PACKAGE
|
|
.if defined(WITH_CURL)
|
|
FORCE_REQUIRE+= CURL
|
|
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl
|
|
PLIST_SUB+= CURL=""
|
|
.else
|
|
FORCE_IGNORE+= CURL
|
|
PLIST_SUB+= CURL="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_FREETYPE)
|
|
FORCE_REQUIRE+= FreeType
|
|
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
|
|
PLIST_SUB+= FREETYPE=""
|
|
.else
|
|
FORCE_IGNORE+= FreeType
|
|
PLIST_SUB+= FREETYPE="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_GDAL)
|
|
FORCE_REQUIRE+= GDAL
|
|
LIB_DEPENDS+= gdal.16:${PORTSDIR}/graphics/gdal
|
|
PLIST_SUB+= GDAL=""
|
|
.else
|
|
FORCE_IGNORE+= GDAL
|
|
PLIST_SUB+= GDAL="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_GIF)
|
|
FORCE_REQUIRE+= GIFLIB
|
|
LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib
|
|
PLIST_SUB+= GIF=""
|
|
.else
|
|
FORCE_IGNORE+= GIFLIB
|
|
PLIST_SUB+= GIF="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_INVENTOR)
|
|
FORCE_REQUIRE+= Inventor
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libInventor.so:${PORTSDIR}/graphics/inventor
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libInventor.so:${PORTSDIR}/graphics/inventor
|
|
PLIST_SUB+= INVENTOR=""
|
|
.else
|
|
FORCE_IGNORE+= Inventor
|
|
PLIST_SUB+= INVENTOR="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_JASPER)
|
|
FORCE_REQUIRE+= Jasper
|
|
LIB_DEPENDS+= jasper.4:${PORTSDIR}/graphics/jasper
|
|
PLIST_SUB+= JASPER=""
|
|
.else
|
|
FORCE_IGNORE+= Jasper
|
|
PLIST_SUB+= JASPER="@comment "
|
|
.endif
|
|
|
|
#.if defined(WITH_OPENVRML)
|
|
#FORCE_REQUIRE+= OpenVRML
|
|
#LIB_DEPENDS+= openvrml.8:${PORTSDIR}/www/openvrml
|
|
#PLIST_SUB+= OPENVRML=""
|
|
#.else
|
|
FORCE_IGNORE+= OpenVRML
|
|
PLIST_SUB+= OPENVRML="@comment "
|
|
#.endif
|
|
|
|
.if defined(WITH_XINE)
|
|
FORCE_REQUIRE+= Xine
|
|
LIB_DEPENDS+= xine.2:${PORTSDIR}/multimedia/libxine
|
|
PLIST_SUB+= XINE=""
|
|
.else
|
|
FORCE_IGNORE+= Xine
|
|
PLIST_SUB+= XINE="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_ITK)
|
|
FORCE_REQUIRE+= ITK
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/InsightToolkit/UseITK.cmake:${PORTSDIR}/science/InsightToolkit
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/InsightToolkit/UseITK.cmake:${PORTSDIR}/science/InsightToolkit
|
|
PLIST_SUB+= ITK=""
|
|
CXXFLAGS+= -DVCL_CAN_STATIC_CONST_INIT_FLOAT=0
|
|
.else
|
|
FORCE_IGNORE+= ITK
|
|
PLIST_SUB+= ITK="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_VNC)
|
|
FORCE_REQUIRE+= LibVNCServer
|
|
LIB_DEPENDS+= vncserver.0:${PORTSDIR}/net/libvncserver
|
|
PLIST_SUB+= VNC=""
|
|
.else
|
|
FORCE_IGNORE+= LibVNCServer
|
|
PLIST_SUB+= VNC="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_OPENEXR)
|
|
FORCE_REQUIRE+= OpenEXR
|
|
LIB_DEPENDS+= IlmImf.6:${PORTSDIR}/graphics/OpenEXR
|
|
PLIST_SUB+= OPENEXR=""
|
|
.else
|
|
FORCE_IGNORE+= OpenEXR
|
|
PLIST_SUB+= OPENEXR="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_FFMPEG)
|
|
FORCE_REQUIRE+= FFmpeg
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
|
PLIST_SUB+= FFMPEG=""
|
|
.else
|
|
FORCE_IGNORE+= FFmpeg
|
|
PLIST_SUB+= FFMPEG="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_SDL)
|
|
FORCE_REQUIRE+= SDL
|
|
USE_SDL= sdl
|
|
.else
|
|
FORCE_IGNORE+= SDL
|
|
.endif
|
|
|
|
# options that affect PKG_CHECK_MODULES
|
|
.if defined(WITH_SVG)
|
|
FORCE_REQUIRE+= RSVG
|
|
LIB_DEPENDS+= rsvg-2:${PORTSDIR}/graphics/librsvg2
|
|
PLIST_SUB+= SVG=""
|
|
.else
|
|
FORCE_IGNORE+= RSVG
|
|
PLIST_SUB+= SVG="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_PDF)
|
|
FORCE_REQUIRE+= Poppler-glib
|
|
LIB_DEPENDS+= poppler-glib.8:${PORTSDIR}/graphics/poppler-glib
|
|
PLIST_SUB+= PDF=""
|
|
.else
|
|
FORCE_IGNORE+= Poppler-glib
|
|
PLIST_SUB+= PDF="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_SVG) || defined(WITH_PDF)
|
|
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
|
|
.endif
|
|
|
|
# other options
|
|
.if defined(WITHOUT_XRANDR)
|
|
CMAKE_ARGS+= -DOSGVIEWER_USE_XRANDR:BOOL=OFF
|
|
.else
|
|
CMAKE_ARGS+= -DOSGVIEWER_USE_XRANDR:BOOL=ON
|
|
USE_XORG+= xrandr
|
|
.endif
|
|
|
|
.if defined(WITHOUT_XRANDR)
|
|
CMAKE_ARGS+= -DOSGVIEWER_USE_XRANDR:BOOL=OFF
|
|
.else
|
|
CMAKE_ARGS+= -DOSGVIEWER_USE_XRANDR:BOOL=ON
|
|
USE_XORG+= xrandr
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC}/CMakeModules -type f -print0 | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g'
|
|
@${REINPLACE_CMD} -e '/FIND_LIBRARY.*DL_LIBRARY/ d' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.for p in ${FORCE_REQUIRE}
|
|
@${REINPLACE_CMD} -e '/FIND_PACKAGE.*${p}/ s|)$$| REQUIRED&|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.endfor
|
|
.for p in ${FORCE_IGNORE}
|
|
@${REINPLACE_CMD} -e '/FIND_PACKAGE.*${p}/ s|^|#|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|