2011-06-24 07:17:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.132 2011/06/24 11:17:05 sthen 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
|
2007-06-18 19:14:20 -04:00
|
|
|
|
2010-05-05 04:43:35 -04:00
|
|
|
V= 1.0.6
|
2004-07-09 21:49:42 -04:00
|
|
|
DISTNAME= vlc-${V}
|
2010-07-30 02:58:57 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2011-06-24 07:17:05 -04:00
|
|
|
REVISION-main= 31
|
2011-05-06 04:18:54 -04:00
|
|
|
REVISION-jack= 5
|
|
|
|
REVISION-web= 7
|
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}/
|
2010-05-05 04:43:35 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
SHARED_LIBS= vlc 0.0 \
|
|
|
|
vlccore 0.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>
|
|
|
|
|
2008-09-04 18:58:23 -04:00
|
|
|
# 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
|
|
|
|
|
2011-04-03 17:41:38 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
x11/qt4
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= x11/dbus
|
2007-11-10 20:37:54 -05:00
|
|
|
LIB_DEPENDS-main=${LIB_DEPENDS} \
|
2011-05-06 04:18:54 -04:00
|
|
|
audio/faad \
|
2010-11-22 03:36:47 -05:00
|
|
|
audio/libcddb \
|
|
|
|
audio/libvorbis \
|
|
|
|
audio/speex \
|
|
|
|
audio/taglib \
|
|
|
|
devel/fribidi \
|
|
|
|
devel/libdvdread \
|
2011-04-21 03:04:56 -04:00
|
|
|
devel/libnotify>=0.7.2 \
|
2010-11-22 03:36:47 -05:00
|
|
|
devel/sdl-image \
|
|
|
|
graphics/ffmpeg>=20080620p10 \
|
|
|
|
graphics/libdvbpsi \
|
|
|
|
graphics/png \
|
|
|
|
multimedia/libdvdnav \
|
|
|
|
multimedia/libmatroska \
|
|
|
|
multimedia/schroedinger>=1.0.10 \
|
|
|
|
multimedia/x264 \
|
|
|
|
net/libproxy \
|
|
|
|
textproc/libebml \
|
|
|
|
textproc/libxml \
|
|
|
|
x11/qt4
|
|
|
|
RUN_DEPENDS= devel/desktop-file-utils
|
2005-07-31 15:07:10 -04:00
|
|
|
|
2011-05-04 10:58:39 -04:00
|
|
|
WANTLIB-main= GL GLU ICE lib/qt4/QtGui SM SDL SDL_image X11 Xau \
|
|
|
|
Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrender Xv \
|
|
|
|
Xxf86vm avcodec avformat avutil bz2 c cddb dbus-1 \
|
2011-06-24 07:17:05 -04:00
|
|
|
drm dvbpsi dvdnav dvdread ebml expat faad fontconfig \
|
|
|
|
freetype fribidi gdk_pixbuf-2.0 gio-2.0 glib-2.0 \
|
|
|
|
gmodule-2.0 gobject-2.0 gsm gthread-2.0 jpeg m \
|
|
|
|
matroska modman mp3lame notify orc-0.4 ogg pcre \
|
2011-05-06 04:18:54 -04:00
|
|
|
png postproc proxy pthread-stubs pthread stdc++ \
|
2011-04-19 04:25:24 -04:00
|
|
|
schroedinger-1.0>=2.0 sndio speex swscale tag tiff \
|
2011-05-04 10:58:39 -04:00
|
|
|
theoradec theoraenc usbhid vorbis vorbisenc vpx x264 \
|
|
|
|
xcb-keysyms xcb xml2 z ${WANTLIB}
|
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
|
2010-10-28 07:55:16 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2010-05-05 04:43:35 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2011-03-26 06:05:24 -04:00
|
|
|
AUTOCONF_VERSION= 2.65
|
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 \
|
|
|
|
--disable-cmml \
|
2011-04-03 17:41:38 -04:00
|
|
|
--disable-dca \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-fluidsynth \
|
2010-09-17 08:15:20 -04:00
|
|
|
--disable-dvb \
|
|
|
|
--disable-fluidsynth \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-gme \
|
2005-07-31 15:07:10 -04:00
|
|
|
--disable-gnutls \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-hal \
|
|
|
|
--disable-kate \
|
|
|
|
--disable-libgcrypt \
|
2011-04-03 17:41:38 -04:00
|
|
|
--disable-libmpeg2 \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-libtar \
|
2010-05-08 20:16:26 -04:00
|
|
|
--disable-libv4l2 \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-live555 \
|
|
|
|
--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 \
|
2005-07-31 15:07:10 -04:00
|
|
|
--disable-oss \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-pulse \
|
|
|
|
--disable-remoteosd \
|
2005-07-31 15:07:10 -04:00
|
|
|
--disable-skins2 \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-smb \
|
|
|
|
--disable-tiger \
|
2010-05-08 20:16:26 -04:00
|
|
|
--disable-udev \
|
2010-09-17 08:15:20 -04:00
|
|
|
--disable-upnp \
|
2010-05-05 04:43:35 -04:00
|
|
|
--disable-zvbi \
|
|
|
|
--enable-dvdread \
|
2011-05-06 04:18:54 -04:00
|
|
|
--enable-faad \
|
2007-11-10 20:37:54 -05:00
|
|
|
--enable-real \
|
2010-05-05 04:43:35 -04:00
|
|
|
--enable-realrtsp \
|
|
|
|
--enable-release \
|
2010-06-20 09:56:11 -04:00
|
|
|
--without-contrib \
|
|
|
|
--without-tuning
|
2011-06-24 03:19:08 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
|
2010-05-05 04:43:35 -04:00
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/qt4/pkgconfig" \
|
|
|
|
LOCALBASE=${LOCALBASE}
|
2004-08-04 12:39:21 -04:00
|
|
|
|
2007-11-10 20:37:54 -05:00
|
|
|
MULTI_PACKAGES=-main
|
|
|
|
|
2010-05-05 04:43:35 -04:00
|
|
|
PSEUDO_FLAVORS= no_web no_jack
|
2006-12-23 20:57:16 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_web}
|
2007-11-10 20:37:54 -05:00
|
|
|
MULTI_PACKAGES+=-web
|
2010-05-05 04:43:35 -04:00
|
|
|
COMMENT-web= Mozilla plugin for embedded media playback
|
2010-07-30 02:58:57 -04:00
|
|
|
PKGNAME-web= vlc-web-${V}
|
2010-11-22 03:36:47 -05:00
|
|
|
BUILD_DEPENDS+= devel/xulrunner/1.9,-devel>=1.9
|
2010-06-17 03:42:16 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-mozilla --with-mozilla-sdk-path=${LOCALBASE}/xulrunner1.9
|
2010-06-19 05:46:42 -04:00
|
|
|
CONFIGURE_ENV+= with_mozilla_pkg="libxul"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/nspr -I${LOCALBASE}/xulrunner1.9/include -DOPENBSD
|
2010-06-17 03:42:16 -04:00
|
|
|
PORTPATH= ${WRKDIR}/bin:/usr/bin:/bin:/usr/sbin:/sbin:${DEPBASE}/bin:${LOCALBASE}/bin:${X11BASE}/bin:${LOCALBASE}/xulrunner1.9
|
2010-05-05 04:43:35 -04:00
|
|
|
LIB_DEPENDS-web=${LIB_DEPENDS} \
|
2010-11-22 03:36:47 -05:00
|
|
|
${BASE_PKGPATH} \
|
|
|
|
devel/nspr
|
|
|
|
RUN_DEPENDS-web=${BUILD_PKGPATH}
|
2010-09-17 08:15:20 -04:00
|
|
|
WANTLIB-web= ICE SM X11 Xau Xdmcp Xt Xpm m nspr4 plc4 plds4 \
|
2010-12-31 01:58:18 -05:00
|
|
|
pthread-stubs stdc++ vlc vlccore xcb dbus-1 \
|
|
|
|
${WANTLIB}
|
2006-12-23 20:57:16 -05:00
|
|
|
.endif
|
|
|
|
|
2008-03-24 00:46:26 -04:00
|
|
|
.if !${FLAVOR:L:Mno_jack}
|
|
|
|
MULTI_PACKAGES+=-jack
|
2010-05-05 04:43:35 -04:00
|
|
|
COMMENT-jack= jackd audio output module for VLC
|
2010-07-30 02:58:57 -04:00
|
|
|
FULLPKGNAME-jack=vlc-jack-${V}
|
2010-02-26 13:10:51 -05:00
|
|
|
FULLPKGPATH-jack=x11/vlc,-jack
|
2008-03-24 00:46:26 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-jack
|
2010-05-05 04:43:35 -04:00
|
|
|
LIB_DEPENDS-jack=${LIB_DEPENDS} \
|
2010-11-22 03:36:47 -05:00
|
|
|
${BASE_PKGPATH} \
|
|
|
|
audio/jack
|
2010-05-05 04:43:35 -04:00
|
|
|
# any FLAVOR of VLC will do
|
2010-11-22 03:36:47 -05:00
|
|
|
RUN_DEPENDS-jack=${BASE_PKGPATH}
|
2010-12-31 01:58:18 -05:00
|
|
|
WANTLIB-jack= ${WANTLIB} m jack vlccore dbus-1
|
2008-03-24 00:46:26 -04: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
|
|
|
|
|
2010-06-17 03:42:16 -04:00
|
|
|
pre-configure:
|
2010-06-17 05:17:52 -04:00
|
|
|
@perl -pi -e 's/grep -v /grep -av /' ${WRKSRC}/src/Makefile.in
|
2010-10-28 07:55:16 -04:00
|
|
|
@find ${WRKSRC} -name 'Makefile.in' -exec perl -pi -e 's/-export-symbol-regex/-export-symbols-regex/' {} \;
|
2010-06-17 03:42:16 -04:00
|
|
|
|
2006-12-23 20:57:16 -05:00
|
|
|
post-install:
|
2008-05-16 01:54:09 -04:00
|
|
|
.for _img in 16x16 32x32 48x48 128x128
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/${_img}/apps
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/share/vlc${_img}.png \
|
2010-05-05 04:43:35 -04:00
|
|
|
${PREFIX}/share/icons/hicolor/${_img}/apps/vlc.png
|
2008-05-16 01:54:09 -04:00
|
|
|
.endfor
|
2011-05-16 13:37:59 -04:00
|
|
|
.if !${FLAVOR:L:Mno_web}
|
2011-05-11 05:08:07 -04:00
|
|
|
@rm ${PREFIX}/lib/mozilla/plugins/libvlcplugin.a
|
2011-05-16 13:37:59 -04:00
|
|
|
.endif
|
2011-05-11 05:08:07 -04:00
|
|
|
@find ${PREFIX}/lib/vlc -name '*.a' -print | xargs rm
|
|
|
|
@find ${PREFIX}/lib -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>
|