2012-05-28 14:44:26 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.148 2012/05/28 18:44:26 ajacoutot Exp $
|
2004-07-09 21:49:42 -04:00
|
|
|
|
2005-02-19 22:28:27 -05:00
|
|
|
SHARED_ONLY= Yes
|
2003-07-20 17:09:29 -04:00
|
|
|
|
2010-05-05 04:43:35 -04:00
|
|
|
COMMENT-main= VideoLAN client; multimedia player
|
2011-11-16 08:33:15 -05:00
|
|
|
COMMENT-jack= JACK audio output module for VLC
|
2007-06-18 19:14:20 -04:00
|
|
|
|
2012-04-23 09:47:08 -04:00
|
|
|
V= 2.0.1
|
2004-07-09 21:49:42 -04:00
|
|
|
DISTNAME= vlc-${V}
|
2010-07-30 02:58:57 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2012-05-28 14:44:26 -04:00
|
|
|
REVISION-main= 1
|
2011-11-16 08:33:15 -05:00
|
|
|
PKGNAME-jack= vlc-jack-${V}
|
2003-07-20 17:09:29 -04:00
|
|
|
CATEGORIES= x11
|
2004-12-16 02:40:20 -05:00
|
|
|
MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${V}/
|
2012-04-23 09:47:08 -04:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2010-05-05 04:43:35 -04:00
|
|
|
|
2012-04-23 09:47:08 -04:00
|
|
|
SHARED_LIBS= vlc 2.0 \
|
|
|
|
vlccore 2.0
|
2003-07-20 17:09:29 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.videolan.org/vlc/
|
|
|
|
|
2010-05-05 04:43:35 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
|
2012-04-23 09:47:08 -04:00
|
|
|
# LGPLv2.1+ and GPLv2+
|
2007-09-15 16:04:18 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= patents
|
2003-07-20 17:09:29 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2012-04-23 09:47:08 -04:00
|
|
|
WANTLIB-common= dbus-1 m ${MODGETTEXT_WANTLIB}
|
|
|
|
WANTLIB-main= GL ICE lib/qt4/QtGui QtCore SM SDL SDL_image X11 Xau \
|
2011-11-16 08:33:15 -05:00
|
|
|
Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes Xi Xinerama \
|
2012-04-23 09:47:08 -04:00
|
|
|
Xpm Xrandr Xrender Xxf86vm ass atk-1.0 avcodec avformat \
|
|
|
|
avutil bluray bz2 c cairo cddb drm dvbpsi dvdnav dvdread \
|
|
|
|
ebml enca stdc++ expat ffi fontconfig freetype fribidi gcrypt \
|
|
|
|
gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 \
|
|
|
|
gmp gnutls gobject-2.0 gpg-error gsm gthread-2.0 gtk-x11-2.0 \
|
|
|
|
hogweed jpeg matroska mp3lame nettle notify orc-0.4 ogg \
|
|
|
|
p11-kit pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1 \
|
2012-05-28 14:44:26 -04:00
|
|
|
png portaudio postproc pthread-stubs pthread samplerate \
|
2012-04-23 09:47:08 -04:00
|
|
|
sndio schroedinger-1.0>=2.0 sndio speex speexdsp swscale tag \
|
|
|
|
tar tasn1 tiff theoradec theoraenc usbhid vorbis vorbisenc \
|
|
|
|
vpx webp x264 xcb-composite xcb-keysyms xcb-randr xcb-render \
|
|
|
|
xcb-shape xcb-shm xcb-xfixes xcb-xv xcb xml2 xvidcore z \
|
|
|
|
${WANTLIB-common}
|
|
|
|
WANTLIB-jack= jack vlccore ${WANTLIB-common}
|
|
|
|
|
|
|
|
AUTOCONF_VERSION= 2.68
|
|
|
|
AUTOMAKE_VERSION= 1.11
|
2011-11-16 08:33:15 -05:00
|
|
|
|
2011-04-03 17:41:38 -04:00
|
|
|
MODULES= devel/gettext \
|
2012-04-23 09:47:08 -04:00
|
|
|
x11/qt4 \
|
|
|
|
gcc4
|
|
|
|
MODGCC4_VERSION= 4.6
|
|
|
|
MODGCC4_ARCHS= amd64 i386
|
|
|
|
MODGCC4_LANGS= c
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= x11/dbus
|
2011-11-16 08:33:15 -05:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2012-04-23 09:47:08 -04:00
|
|
|
archivers/libtar \
|
2010-11-22 03:36:47 -05:00
|
|
|
audio/libcddb \
|
2012-04-23 09:47:08 -04:00
|
|
|
audio/libsamplerate \
|
2010-11-22 03:36:47 -05:00
|
|
|
audio/libvorbis \
|
2012-04-23 09:47:08 -04:00
|
|
|
audio/portaudio-svn \
|
2010-11-22 03:36:47 -05:00
|
|
|
audio/speex \
|
|
|
|
audio/taglib \
|
|
|
|
devel/fribidi \
|
2012-05-03 02:51:24 -04:00
|
|
|
devel/libdvdread>=4.2.0 \
|
2011-04-21 03:04:56 -04:00
|
|
|
devel/libnotify>=0.7.2 \
|
2011-11-16 08:33:15 -05:00
|
|
|
devel/sdl \
|
2010-11-22 03:36:47 -05:00
|
|
|
devel/sdl-image \
|
2011-11-16 08:33:15 -05:00
|
|
|
graphics/ffmpeg>=20110408 \
|
2010-11-22 03:36:47 -05:00
|
|
|
graphics/libdvbpsi \
|
|
|
|
graphics/png \
|
2011-11-16 08:33:15 -05:00
|
|
|
multimedia/libass \
|
2012-04-23 09:47:08 -04:00
|
|
|
multimedia/libbluray \
|
2012-05-03 02:51:24 -04:00
|
|
|
multimedia/libdvdnav>=4.2.0 \
|
2010-11-22 03:36:47 -05:00
|
|
|
multimedia/libmatroska \
|
|
|
|
multimedia/schroedinger>=1.0.10 \
|
|
|
|
multimedia/x264 \
|
2012-04-23 09:47:08 -04:00
|
|
|
security/gnutls \
|
|
|
|
security/libgcrypt \
|
2010-11-22 03:36:47 -05:00
|
|
|
textproc/libebml \
|
|
|
|
textproc/libxml \
|
2011-11-16 08:33:15 -05:00
|
|
|
x11/gtk+2 \
|
2010-11-22 03:36:47 -05:00
|
|
|
x11/qt4
|
2011-11-16 08:33:15 -05:00
|
|
|
LIB_DEPENDS-jack= ${LIB_DEPENDS} \
|
|
|
|
${BUILD_PKGPATH} \
|
|
|
|
audio/jack
|
2012-05-28 14:44:26 -04:00
|
|
|
BUILD_DEPENDS= net/livemedia>=20120204p0 \
|
|
|
|
${MODGNU_AUTOCONF_DEPENDS} \
|
2012-04-23 09:47:08 -04:00
|
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
|
|
devel/libtool
|
2011-12-03 18:34:04 -05:00
|
|
|
RUN_DEPENDS-main= devel/desktop-file-utils \
|
|
|
|
x11/gtk+2,-guic
|
2011-11-16 08:33:15 -05:00
|
|
|
RUN_DEPENDS-jack= ${BUILD_PKGPATH}
|
2012-04-23 09:47:08 -04:00
|
|
|
|
|
|
|
MAKE_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION} AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
|
2003-07-20 17:09:29 -04:00
|
|
|
|
2011-06-24 03:19:08 -04:00
|
|
|
CPPFLAGS= -I${X11BASE}/include -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng
|
|
|
|
|
2010-05-05 04:43:35 -04:00
|
|
|
USE_GMAKE= Yes
|
2012-05-28 14:44:26 -04:00
|
|
|
# Fails to link _pic libs properly resulting in undefined symbols in the live555 plugin
|
|
|
|
USE_LIBTOOL= gnu
|
2012-04-23 09:47:08 -04:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
|
|
CONFIGURE_STYLE= gnu
|
2010-05-05 04:43:35 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autotools
|
2011-04-03 17:41:38 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-a52 \
|
|
|
|
--disable-alsa \
|
2010-09-17 08:15:20 -04:00
|
|
|
--disable-altivec \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-bonjour \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-caca \
|
2012-04-23 09:47:08 -04:00
|
|
|
--disable-crystalhd \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-dc1394 \
|
2011-04-03 17:41:38 -04:00
|
|
|
--disable-dca \
|
2012-04-23 09:47:08 -04:00
|
|
|
--disable-decklink \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-dirac \
|
|
|
|
--disable-dv \
|
|
|
|
--disable-flac \
|
2010-09-17 08:15:20 -04:00
|
|
|
--disable-fluidsynth \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-gme \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-gnomevfs \
|
|
|
|
--disable-goom \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-kate \
|
2011-04-03 17:41:38 -04:00
|
|
|
--disable-libmpeg2 \
|
2012-05-28 14:44:26 -04:00
|
|
|
--disable-libproxy \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-libva \
|
2012-04-23 09:47:08 -04:00
|
|
|
--disable-linsys \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-lua \
|
2011-04-03 17:41:38 -04:00
|
|
|
--disable-mad \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-mod \
|
2011-05-06 04:18:54 -04:00
|
|
|
--disable-mpc \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-mtp \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-neon \
|
|
|
|
--disable-projectm \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-pulse \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-shout \
|
2012-04-23 09:47:08 -04:00
|
|
|
--disable-sid \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-smb \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-sqlite \
|
|
|
|
--disable-svg \
|
|
|
|
--disable-theora \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-tiger \
|
2011-11-16 08:33:15 -05:00
|
|
|
--disable-twolame \
|
2010-05-08 20:16:26 -04:00
|
|
|
--disable-udev \
|
2010-09-17 08:15:20 -04:00
|
|
|
--disable-upnp \
|
2012-04-23 09:47:08 -04:00
|
|
|
--disable-v4l2 \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-zvbi \
|
2007-11-10 20:37:54 -05:00
|
|
|
--enable-real \
|
2010-05-05 04:43:35 -04:00
|
|
|
--enable-realrtsp \
|
2010-06-20 09:56:11 -04:00
|
|
|
--without-contrib \
|
|
|
|
--without-tuning
|
2011-06-24 03:19:08 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
|
2012-05-28 14:44:26 -04:00
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -L${LOCALBASE}/live/liveMedia \
|
|
|
|
-L${LOCALBASE}/live/groupsock -L${LOCALBASE}/live/BasicUsageEnvironment \
|
|
|
|
-L${LOCALBASE}/live/UsageEnvironment" \
|
|
|
|
LOCALBASE="${LOCALBASE}" \
|
2011-11-16 08:33:15 -05:00
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/qt4/pkgconfig"
|
2007-11-10 20:37:54 -05:00
|
|
|
|
2012-04-23 09:47:08 -04:00
|
|
|
PSEUDO_FLAVORS= no_jack
|
2006-12-23 20:57:16 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2011-11-16 08:33:15 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2011-10-21 14:20:14 -04:00
|
|
|
|
2011-11-16 08:33:15 -05:00
|
|
|
.if !${FLAVOR:L:Mno_jack}
|
|
|
|
MULTI_PACKAGES+=-jack
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.arch.mk>
|
2011-10-21 14:20:14 -04:00
|
|
|
|
2012-04-23 09:47:08 -04:00
|
|
|
.if !${BUILD_PACKAGES:M-jack}
|
|
|
|
CONFIGURE_ARGS+=--disable-jack
|
2006-12-23 20:57:16 -05:00
|
|
|
.endif
|
|
|
|
|
2010-05-05 04:43:35 -04:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
|
|
PKG_ARGS+=-Damd64=1
|
2005-12-24 04:01:17 -05:00
|
|
|
.else
|
2010-05-05 04:43:35 -04:00
|
|
|
PKG_ARGS+=-Damd64=0
|
2005-12-24 04:01:17 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2010-05-05 04:43:35 -04:00
|
|
|
PKG_ARGS+=-Di386=1
|
2005-12-21 23:45:38 -05:00
|
|
|
.else
|
2010-05-05 04:43:35 -04:00
|
|
|
PKG_ARGS+=-Di386=0
|
2005-12-24 04:01:17 -05:00
|
|
|
.endif
|
|
|
|
|
2012-04-23 09:47:08 -04:00
|
|
|
pre-configure:
|
|
|
|
@cp ${FILESDIR}/sndio.c ${WRKSRC}/modules/audio_output
|
|
|
|
@cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
|
2012-04-24 16:47:39 -04:00
|
|
|
./bootstrap
|
2012-04-23 09:47:08 -04:00
|
|
|
|
2006-12-23 20:57:16 -05:00
|
|
|
post-install:
|
2011-12-23 10:01:59 -05:00
|
|
|
@find ${PREFIX}/lib/vlc -name '*.la' -print | xargs rm
|
2006-12-23 20:57:16 -05:00
|
|
|
|
2003-07-20 17:09:29 -04:00
|
|
|
.include <bsd.port.mk>
|