225 lines
5.4 KiB
Makefile
225 lines
5.4 KiB
Makefile
COMMENT-main= VideoLAN client; multimedia player
|
|
COMMENT-jack= JACK audio output module for VLC
|
|
|
|
V= 3.0.17.3
|
|
REVISION-main= 0
|
|
DISTNAME= vlc-${V}
|
|
PKGNAME-main= ${DISTNAME}
|
|
PKGNAME-jack= vlc-jack-${V}
|
|
CATEGORIES= x11
|
|
MASTER_SITES= https://download.videolan.org/pub/videolan/vlc/${V}/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
SHARED_LIBS= vlc 4.0 \
|
|
vlc_xcb_events 0.0 \
|
|
vlccore 4.0
|
|
|
|
HOMEPAGE= https://www.videolan.org/vlc/
|
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
# LGPLv2.1+ and GPLv2+
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB-common= dbus-1 iconv idn intl m pthread
|
|
WANTLIB-main= EGL GL ICE Qt5Core Qt5Gui Qt5Svg Qt5Widgets Qt5X11Extras \
|
|
SDL SDL_image SM X11 X11-xcb Xau Xcomposite Xcursor \
|
|
Xdamage Xdmcp Xext Xfixes Xi Xinerama Xpm Xrandr Xrender \
|
|
Xxf86vm aom archive ass atk-1.0 atk-bridge-2.0 avahi-client \
|
|
avahi-common avcodec avformat avutil b2 bluray brotlidec \
|
|
brotlienc bz2 c cairo cairo-gobject cddb charset crypto dav1d \
|
|
double-conversion drm dvbpsi dvdnav dvdread ebml epoxy execinfo \
|
|
expat ffi fontconfig freetype fribidi gbm gcrypt gdk-3 \
|
|
gdk_pixbuf-2.0 gio-2.0 glapi glib-2.0 gmodule-2.0 gmp gnutls \
|
|
gobject-2.0 gpg-error graphite2 gsm gthread-2.0 gtk-3 harfbuzz \
|
|
hogweed icudata icui18n icuuc idn2 jpeg lcms2 lz4 lzma \
|
|
matroska mp3lame nettle nfs notify ogg opus p11-kit \
|
|
pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pcre2-16 \
|
|
pixman-1 placebo png postproc protobuf-lite rsvg-2 \
|
|
smb2 sndio soxr speex speexdsp ssl swresample swscale \
|
|
tag tar tasn1 theoradec theoraenc tiff udfread unistring \
|
|
usbhid vorbis vorbisenc vpx webp x264 x265 xcb xcb-composite \
|
|
xcb-dri2 xcb-dri3 xcb-glx xcb-keysyms xcb-present xcb-randr \
|
|
xcb-render xcb-shm xcb-sync xcb-xfixes xcb-xv xml2 \
|
|
xshmfence xvidcore z zstd ${WANTLIB-common}
|
|
# v4l2 is dlopen'd
|
|
WANTLIB-main+= v4l2
|
|
|
|
WANTLIB-jack= db execinfo jack vlccore ${WANTLIB-common}
|
|
|
|
AUTOCONF_VERSION= 2.69
|
|
AUTOMAKE_VERSION= 1.16
|
|
AUTORECONF= ./bootstrap
|
|
|
|
MODULES= x11/qt5
|
|
|
|
COMPILER= base-clang ports-gcc
|
|
|
|
WANTLIB-main += ${COMPILER_LIBCXX}
|
|
|
|
LIB_DEPENDS-main= ${MODQT5_LIB_DEPENDS} \
|
|
x11/qt5/qtsvg,-main \
|
|
x11/qt5/qtx11extras \
|
|
archivers/libarchive \
|
|
archivers/libtar \
|
|
audio/libcddb \
|
|
audio/libsoxr \
|
|
audio/libvorbis \
|
|
audio/opus \
|
|
audio/speex \
|
|
audio/taglib \
|
|
devel/fribidi \
|
|
devel/gettext,-runtime \
|
|
devel/harfbuzz \
|
|
devel/libdvdread \
|
|
devel/libidn \
|
|
devel/libnfs \
|
|
devel/libnotify \
|
|
devel/libsmb2 \
|
|
devel/protobuf \
|
|
devel/sdl \
|
|
devel/sdl-image \
|
|
graphics/ffmpeg \
|
|
graphics/libdvbpsi \
|
|
graphics/libplacebo \
|
|
graphics/png \
|
|
multimedia/libass \
|
|
multimedia/libbluray \
|
|
multimedia/libdvdnav \
|
|
multimedia/libmatroska \
|
|
multimedia/libv4l \
|
|
multimedia/x264 \
|
|
multimedia/x265 \
|
|
net/avahi,-libs \
|
|
security/gnutls \
|
|
security/libgcrypt \
|
|
textproc/libebml \
|
|
textproc/libxml \
|
|
x11/dbus \
|
|
x11/gtk+3
|
|
LIB_DEPENDS-jack= ${BUILD_PKGPATH} \
|
|
audio/jack
|
|
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
archivers/gtar \
|
|
devel/bison \
|
|
devel/gettext,-tools \
|
|
devel/libtool
|
|
RUN_DEPENDS-main= devel/desktop-file-utils \
|
|
x11/gtk+3,-guic
|
|
RUN_DEPENDS-jack= ${BUILD_PKGPATH}
|
|
|
|
USE_GMAKE= Yes
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
CONFIGURE_STYLE= autoreconf
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autotools
|
|
CONFIGURE_ARGS+=--disable-a52 \
|
|
--disable-alsa \
|
|
--disable-altivec \
|
|
--disable-aom \
|
|
--disable-aribb25 \
|
|
--disable-aribsub \
|
|
--disable-asdcp \
|
|
--disable-caca \
|
|
--disable-chromaprint \
|
|
--disable-crystalhd \
|
|
--disable-dav1d \
|
|
--disable-dc1394 \
|
|
--disable-dca \
|
|
--disable-decklink \
|
|
--disable-dsm \
|
|
--disable-dv1394 \
|
|
--disable-faad \
|
|
--disable-flac \
|
|
--disable-fluidlite \
|
|
--disable-fluidsynth \
|
|
--disable-freerdp \
|
|
--disable-gme \
|
|
--disable-goom \
|
|
--disable-gst-decode \
|
|
--disable-kate \
|
|
--disable-kwallet \
|
|
--disable-libmpeg2 \
|
|
--disable-libva \
|
|
--disable-linsys \
|
|
--disable-live555 \
|
|
--disable-lua \
|
|
--disable-mad \
|
|
--disable-mfx \
|
|
--disable-microdns \
|
|
--disable-mmal \
|
|
--disable-mpg123 \
|
|
--disable-mod \
|
|
--disable-mpc \
|
|
--disable-mtp \
|
|
--disable-oggspots \
|
|
--disable-opencv \
|
|
--disable-projectm \
|
|
--disable-pulse \
|
|
--disable-samplerate \
|
|
--disable-schroedinger \
|
|
--disable-secret \
|
|
--disable-sftp \
|
|
--disable-shine \
|
|
--disable-shout \
|
|
--disable-sid \
|
|
--disable-smbclient \
|
|
--disable-spatialaudio \
|
|
--disable-srt \
|
|
--disable-svg \
|
|
--disable-theora \
|
|
--disable-tiger \
|
|
--disable-twolame \
|
|
--disable-udev \
|
|
--disable-upnp \
|
|
--disable-vdpau \
|
|
--disable-vnc \
|
|
--disable-vpx \
|
|
--disable-vsxu \
|
|
--disable-zvbi \
|
|
--enable-realrtsp \
|
|
--enable-smb2 \
|
|
--without-contrib \
|
|
--with-kde-solid=${LOCALBASE}/share/apps/solid/actions
|
|
CONFIGURE_ENV+= BUILDCC="${CC}" \
|
|
CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
|
|
LIBS_libvlccore="-lexecinfo" \
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/qt5/pkgconfig" \
|
|
RCC="${LOCALBASE}/bin/rcc-qt5"
|
|
|
|
PSEUDO_FLAVORS= no_jack
|
|
FLAVOR?=
|
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
.if !${FLAVOR:Mno_jack}
|
|
MULTI_PACKAGES+=-jack
|
|
.endif
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
.if !${BUILD_PACKAGES:M-jack}
|
|
CONFIGURE_ARGS+=--disable-jack
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
PKG_ARGS+=-Damd64=1
|
|
.else
|
|
PKG_ARGS+=-Damd64=0
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
PKG_ARGS+=-Di386=1
|
|
.else
|
|
PKG_ARGS+=-Di386=0
|
|
.endif
|
|
|
|
post-extract:
|
|
@ln -sf ${LOCALBASE}/bin/gtar ${WRKDIR}/bin/tar
|
|
|
|
post-install:
|
|
@find ${PREFIX}/lib/vlc -name '*.la' -delete
|
|
|
|
.include <bsd.port.mk>
|