pkgsrc/multimedia/mplayer-share/options.mk
leot 33383c2b01 Update gmplayer, mencoder, mplayer and mplayer-share to 1.2.
pkgsrc changes:
 * Various misc fixes (thanks to pkglint)
 * Do not pass --with-dvdread-config and --with-dvdnav-config, the
   dvdread-config and dvdnav-config seems that no longer exist.
 * Avoid to pass --enable-libvorbis otherwise libvorbis can not be recognised by
   the mplayer configure script.
 * (re)Use patches from multimedia/ffmpeg2 instead of using mplayer-specific
   ones

Changes:
1.2: "FrameCounter"
  Decoders:
  * Hardware accelerated decoding on OS X via VDA.
  * Internal libmpeg2 disabled by default, on the assumption
    that nobody really needs it anymore.

  Other:
  * "run" slave/keybinding command now supports expanding properties
  * better support for > 8 bit formats in -vo gl
  * support for XYZ color space in -vo gl
  * -vo gl now supports OSD (not EOSD though) with GLES backend.
  * GLES backend now uses GLES v2 with YUV support via shaders
  * -vo gl supports rotated display without needing video filters via
    -monitor-orientation command-line option.
  * -vo gl now has an OSX/Cocoa backend, so it should be a better
    alternative to -vo corevideo now.
  * -vo gl2 renamed to -vo gl_tiled to stop people from assuming it is
    better than -vo gl (it is in many ways worse).
  * Fixes for DVB, teletext and closed-caption based subtitles.
  * Support teletext and CC subtitles in WTV.
  * Support binding keys corresponding to non-ASCII characters.
  * Limited -endpos support for -dump*
  * Danish messages header file renamed from help_mp-dk.h to help_mp-da.h
    in order to comply with ISO 639 language code (configure language
    options will now require da instead of dk)
  * configure: options --enable-gtk1, --with-glib-config= and
    --with-gtk-config= removed
  * Change ID3 genre name for genre ID 67 from "Psychadelic"
    to "Psychedelic"
  * support for audio bin/cue images

  Ports:
  * Windows: support file names as UTF-8 in slave mode and passing
    file names as wchar command line arguments.
  * Android: MPlayer can be run from adb shell and display videos
    via OpenGL ES.
    Note that just a bit of seeking etc. would cause reproducible
    system reboots after just a few seconds on my Galaxy S2.
  * Android: -wid is supported. This should allow using MPlayer in slave
    mode, a native window pointer needs to be passed as -wid. Untested.

  GUI:
  * Support for TV/DVB
  * Various improvements of the context menu and the preferences dialog
  * Revision of the user interface texts
  * Console message with information on deprecated (but still supported)
    entries in the skin configuration file
  * New symbol character (r) and new dynamic label variables ($D, $U, $P)
  * New items (pimage, rpotmeter)
  * Updated skins (avifile, Blue, Blue-small, Clearlooks, Corelian,
    disappearer, mentalic, mplayer_red, nativeRed, neutron, phony, plastic,
    slim, softgrip, standard, trium, tvisor, xanim)
  * Video can be rotated
  * New GUI message: evSetRotation
  * GUI now officially needs GTK+ and GLib versions 2 (it hadn't compiled
    with versions 1 for quite some time)
  * Support for audio and video bin/cue image playback
  * Support for Audio CD / (Super) Video CD / DVD image and DVD copy playback
    through the respective scheme (cd://, vcd://, dvd://)
  * Support for arbitrary non-binary data file cue sheets (i.e. cue sheets
    describing playlists for data files containing multiple titles)

  FFmpeg:
  * Version 2.8 with local patches

Thanks to wiz@ for misc private discussion.
2015-11-21 09:47:23 +00:00

376 lines
9.7 KiB
Makefile

# $NetBSD: options.mk,v 1.53 2015/11/21 09:47:23 leot Exp $
.if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*)
# Note: This expression is the same as ${PKGBASE}, but the latter is
# not defined yet, so we cannot use it here.
PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
.include "../../mk/oss.buildlink3.mk"
.include "../../multimedia/libvdpau/available.mk"
.include "../../comms/lirc/available.mk"
# -------------------------------------------------------------------------
# Define PKG_SUPPORTED_OPTIONS based on the current package and system.
# -------------------------------------------------------------------------
# Note: It is a good practice that all PKG_SUPPORTED_OPTIONS are
# enabled or disabled with --enable-option or --disable-option.
# It is better to add missing libs via EXTRA_LIBS, when it is possible,
# instead of patching the configure script in order to make the update of
# the packages easier.
# Options supported by both mplayer* or mencoder*.
PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv png theora vorbis x264 debug
PKG_SUPPORTED_OPTIONS+= dvdread dvdnav
.if ${OSS_TYPE} != "none"
PKG_SUPPORTED_OPTIONS+= oss
.endif
PKG_SUPPORTED_OPTIONS+= faad
PKG_SUGGESTED_OPTIONS+= faad
# Set options based on the specific package being built.
.if !empty(PKGNAME:M*mplayer*)
PKG_SUPPORTED_OPTIONS+= aalib caca esound ggi mplayer-menu nas pulseaudio sdl
.if ${VDPAU_AVAILABLE} == "yes"
PKG_SUPPORTED_OPTIONS+= vdpau
.endif
.if ${LIRC_AVAILABLE} == "yes"
PKG_SUPPORTED_OPTIONS+= lirc
.endif
. if ${OPSYS} != "SunOS"
PKG_SUPPORTED_OPTIONS+= arts
. endif
.elif !empty(PKGNAME:M*mencoder*)
PKG_SUPPORTED_OPTIONS+= faac lame
.endif
# OS-specific options.
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD"
PKG_SUPPORTED_OPTIONS+= cdparanoia
.elif ${OPSYS} == "SunOS"
PKG_SUPPORTED_OPTIONS+= mlib
.endif
.if ${OPSYS} == "Linux"
PKG_SUPPORTED_OPTIONS+= vidix
.endif
# TODO: v4l2 option probably could be supported on Linux and OpenBSD too
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/videoio.h)
PKG_SUPPORTED_OPTIONS+= v4l2
PKG_SUGGESTED_OPTIONS+= v4l2
.endif
# Platform-specific options.
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
${MACHINE_ARCH} == "powerpc"
PKG_SUPPORTED_OPTIONS+= mplayer-runtime-cpudetection
.endif
.if ${MACHINE_ARCH} == "i386"
PKG_SUPPORTED_OPTIONS+= mplayer-default-cflags mplayer-win32
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "alpha"
PKG_SUPPORTED_OPTIONS+= mplayer-real
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
PKG_SUPPORTED_OPTIONS+= mplayer-ssse3
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
PKG_SUPPORTED_OPTIONS+= xvid
.endif
# -------------------------------------------------------------------------
# Define PKG_SUGGESTED_OPTIONS.
# -------------------------------------------------------------------------
.for o in cdparanoia dv esound gif jpeg \
dvdread dvdnav \
lame mad mplayer-menu \
mplayer-default-cflags mplayer-runtime-cpudetection \
nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau lirc
. if !empty(PKG_SUPPORTED_OPTIONS:M${o})
PKG_SUGGESTED_OPTIONS+= ${o}
. endif
.endfor
.if ${OPSYS} == "Linux"
PKG_SUGGESTED_OPTIONS+= vidix
.endif
# -------------------------------------------------------------------------
# Handle extra libraries (part 1)
# -------------------------------------------------------------------------
EXTRA_LIBS=
# -------------------------------------------------------------------------
# Handle chosen options.
# -------------------------------------------------------------------------
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Maalib)
CONFIGURE_ARGS+= --enable-aa
. include "../../graphics/aalib/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-aa
.endif
.if !empty(PKG_OPTIONS:Marts)
CONFIGURE_ARGS+= --enable-arts
EXTRA_LIBS+= -lartsc
. include "../../audio/arts/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-arts
.endif
.if !empty(PKG_OPTIONS:Mcaca)
CONFIGURE_ARGS+= --enable-caca
. include "../../graphics/libcaca/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-caca
.endif
.if !empty(PKG_OPTIONS:Mcdparanoia)
CONFIGURE_ARGS+= --enable-cdparanoia
. include "../../audio/cdparanoia/buildlink3.mk"
CFLAGS+= -I${BUILDLINK_PREFIX.cdparanoia}/include/cdparanoia
.else
CONFIGURE_ARGS+= --disable-cdparanoia
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug --disable-sighandler
INSTALL_UNSTRIPPED= yes
.endif
.if !empty(PKG_OPTIONS:Mdts)
# The configure handling for --enable-libdca is broken.
# However, it works if you omit the argument and let
# configure autodetect support.
#CONFIGURE_ARGS+= --enable-libdca
. include "../../audio/libdca/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-libdca
.endif
.if !empty(PKG_OPTIONS:Mdv)
CONFIGURE_ARGS+= --enable-libdv
. include "../../multimedia/libdv/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-libdv
.endif
.if !empty(PKG_OPTIONS:Mdvdread)
CONFIGURE_ARGS+= --enable-dvdread
. include "../../multimedia/libdvdread/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-dvdread
.endif
.if !empty(PKG_OPTIONS:Mdvdnav)
CONFIGURE_ARGS+= --enable-dvdnav
. include "../../multimedia/libdvdnav/buildlink3.mk"
#CFLAGS+= -I${BUILDLINK_PREFIX.libdvdnav}/include/dvdnav
.else
CONFIGURE_ARGS+= --disable-dvdnav
.endif
.if !empty(PKG_OPTIONS:Mesound)
CONFIGURE_ARGS+= --enable-esd
. include "../../audio/esound/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-esd
.endif
.if !empty(PKG_OPTIONS:Mfaac)
CONFIGURE_ARGS+= --enable-faac
EXTRA_LIBS+= -lfaac
. include "../../audio/faac/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-faac
.endif
.if !empty(PKG_OPTIONS:Mfaad)
CONFIGURE_ARGS+= --enable-faad
. include "../../audio/faad2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-faad
.endif
.if !empty(PKG_OPTIONS:Mggi)
CONFIGURE_ARGS+= --enable-ggi
. include "../../graphics/libggi/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-ggi
.endif
.if !empty(PKG_OPTIONS:Mgif)
CONFIGURE_ARGS+= --enable-gif
. include "../../graphics/giflib/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-gif
.endif
.if !empty(PKG_OPTIONS:Mjpeg)
CONFIGURE_ARGS+= --enable-jpeg
. include "../../mk/jpeg.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-jpeg
.endif
.if !empty(PKG_OPTIONS:Mlame)
CONFIGURE_ARGS+= --enable-mp3lame
. include "../../audio/lame/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-mp3lame
.endif
.if !empty(PKG_OPTIONS:Mmad)
CONFIGURE_ARGS+= --enable-mad
. include "../../audio/libmad/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-mad
.endif
.if !empty(PKG_OPTIONS:Mmlib)
CONFIGURE_ARGS+= --enable-mlib
.else
CONFIGURE_ARGS+= --disable-mlib
.endif
.if !empty(PKG_OPTIONS:Mmplayer-menu)
CONFIGURE_ARGS+= --enable-menu
.else
CONFIGURE_ARGS+= --disable-menu
.endif
.if !empty(PKG_OPTIONS:Mmplayer-real)
CONFIGURE_ARGS+= --enable-real
DEPENDS+= realplayer-codecs>=8nb2:../../multimedia/realplayer-codecs
.else
CONFIGURE_ARGS+= --disable-real
.endif
.if !empty(PKG_OPTIONS:Mmplayer-runtime-cpudetection)
CONFIGURE_ARGS+= --enable-runtime-cpudetection
.else
CONFIGURE_ARGS+= --disable-runtime-cpudetection
.endif
.if !empty(PKG_OPTIONS:Mmplayer-win32)
CONFIGURE_ARGS+= --enable-win32dll
DEPENDS+= win32-codecs>=011227:../../multimedia/win32-codecs
.else
CONFIGURE_ARGS+= --disable-win32dll
.endif
.if !empty(PKG_OPTIONS:Mnas)
CONFIGURE_ARGS+= --enable-nas
. include "../../audio/nas/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-nas
.endif
.if ${OSS_TYPE} != "none" && !empty(PKG_OPTIONS:Moss)
CONFIGURE_ARGS+= --enable-ossaudio
.else
CONFIGURE_ARGS+= --disable-ossaudio
.endif
.if !empty(PKG_OPTIONS:Mpng)
CONFIGURE_ARGS+= --enable-png
. include "../../graphics/png/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-png
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
CONFIGURE_ARGS+= --enable-pulse
. include "../../devel/glib2/buildlink3.mk"
. include "../../audio/pulseaudio/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-pulse
.endif
.if !empty(PKG_OPTIONS:Msdl)
CONFIGURE_ARGS+= --enable-sdl
. include "../../devel/SDL/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-sdl
.endif
.if !empty(PKG_OPTIONS:Mtheora)
CONFIGURE_ARGS+= --enable-theora
. include "../../multimedia/libtheora/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-theora
.endif
.if empty(PKG_OPTIONS:Mv4l2)
CONFIGURE_ARGS+= --disable-tv-v4l2
.endif
# disable vidix if not in options
.if empty(PKG_OPTIONS:Mvidix)
CONFIGURE_ARGS+= --disable-vidix
.endif
.if !empty(PKG_OPTIONS:Mvorbis)
. include "../../audio/libvorbis/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-libvorbis
.endif
.if !empty(PKG_OPTIONS:Mx264)
CONFIGURE_ARGS+= --enable-x264
EXTRA_LIBS+= -lx264
. include "../../multimedia/x264-devel/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-x264
.endif
.if !empty(PKG_OPTIONS:Mxvid)
CONFIGURE_ARGS+= --enable-xvid
EXTRA_LIBS+= -lxvidcore
. include "../../multimedia/xvidcore/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-xvid
.endif
.if !empty(PKG_OPTIONS:Mmplayer-ssse3)
# needs a recent assembler
.include "../../devel/binutils/buildlink3.mk"
.include "../../devel/binutils/override-as.mk"
.else
CONFIGURE_ARGS+= --disable-ssse3
.endif
.if !empty(PKG_OPTIONS:Mvdpau)
CONFIGURE_ARGS+= --enable-vdpau
. include "../../multimedia/libvdpau/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-vdpau
.endif
.if !empty(PKG_OPTIONS:Mlirc)
CONFIGURE_ARGS+= --enable-lirc
. include "../../comms/lirc/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-lirc
.endif
# -------------------------------------------------------------------------
# Handle extra libraries (part 1)
# -------------------------------------------------------------------------
.if ${EXTRA_LIBS} != ""
CONFIGURE_ARGS+= --extra-libs=${EXTRA_LIBS:C/^ //:Q}
.endif
.endif # defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*)