Edit

IABSD.fr/ports/multimedia/xine-lib/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2022-04-03 11:12:09
    Hash : a1d0efa4
    Message : xine-lib: add upstream fixes, via Brad

  • multimedia/xine-lib/Makefile
  • COMMENT=	multimedia decoding library
    
    DISTNAME=	xine-lib-1.2.12
    REVISION=	2
    CATEGORIES=	multimedia
    MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=xine/}
    EXTRACT_SUFX=	.tar.xz
    
    SHARED_LIBS=	xine	37.0
    
    HOMEPAGE=	https://www.xine-project.org/
    
    MAINTAINER=	Brad Smith <brad@comstyle.com>
    
    # GPLv2
    PERMIT_PACKAGE=	Yes
    
    WANTLIB += ${COMPILER_LIBCXX} EGL FLAC GL GLU ICE SDL SM X11 X11-xcb
    WANTLIB += Xau Xdmcp Xext Xfixes Xinerama Xv XvMCW Xxf86vm aom avcodec
    WANTLIB += avformat avutil bluray bz2 c cdio crypto dav1d drm dvdnav
    WANTLIB += dvdread execinfo expat fontconfig freetype gbm gcrypt glapi
    WANTLIB += gpg-error gsm iconv intl iso9660 jpeg lcms lzma m mng modplug
    WANTLIB += mp3lame mpcdec nfs ogg opus png postproc sndio speex ssl
    WANTLIB += swresample theora theoradec theoraenc udfread usbhid v4l2
    WANTLIB += v4lconvert vcdinfo vorbis vorbisenc vpx x264 x265 xcb xcb-dri2
    WANTLIB += xcb-dri3 xcb-glx xcb-present xcb-shape xcb-shm xcb-sync
    WANTLIB += xcb-xfixes xcb-xv xdg-basedir xml2 xshmfence xvidcore z
    
    XINEAPI_REV=	2.10
    SUBST_VARS+=	XINEAPI_REV
    
    COMPILER=	base-clang ports-gcc
    COMPILER_LANGS=	c
    
    BUILD_DEPENDS=	textproc/xmlto
    LIB_DEPENDS=	audio/flac \
    		audio/libcdio \
    		audio/libmodplug \
    		audio/libogg \
    		audio/libvorbis \
    		audio/musepack \
    		audio/speex \
    		converters/libiconv \
    		devel/gettext,-runtime \
    		devel/libnfs \
    		devel/sdl \
    		graphics/ffmpeg \
    		graphics/jpeg \
    		graphics/libmng \
    		graphics/png \
    		graphics/vcdimager \
    		multimedia/libbluray \
    		multimedia/libdvdnav \
    		multimedia/libtheora \
    		multimedia/libv4l \
    		security/libgcrypt \
    		x11/libxdg-basedir
    
    # Add back fast math flag since we override CFLAGS
    CFLAGS+=	-ffast-math
    
    MAKE_ENV=	V=1
    
    FIX_CRLF_FILES=	src/demuxers/asfheader.c
    
    USE_GMAKE=	Yes
    CONFIGURE_STYLE= autoconf
    AUTOCONF_VERSION= 2.69
    CONFIGURE_ARGS+=--disable-a52dec \
    		--disable-aalib \
    		--disable-dts \
    		--disable-faad \
    		--disable-gdkpixbuf \
    		--disable-gnomevfs \
    		--disable-libmpeg2 \
    		--disable-mad \
    		--disable-optimizations \
    		--disable-real-codecs \
    		--disable-samba \
    		--disable-sftp \
    		--disable-vpx \
    		--disable-w32dll \
    		--disable-wayland \
    		--with-external-dvdnav \
    		--with-fontconfig \
    		--with-freetype \
    		--without-caca \
    		--without-dav1d \
    		--without-esound \
    		--without-gnutls \
    		--without-imagemagick \
    		--without-libaom
    CONFIGURE_ENV=	CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
    		LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
    
    NO_TEST=	Yes
    
    pre-configure:
    	sed -i 's/__u32/u_int32_t/' ${WRKSRC}/src/input/input_pvr.c
    
    post-install:
    	@find ${PREFIX}/lib/xine/plugins -name '*.a' -delete
    
    .include <bsd.port.mk>