2006-03-27 06:04:27 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2006/03/27 11:04:27 jakemsr Exp $
|
2006-03-24 17:43:41 -05:00
|
|
|
|
|
|
|
COMMENT= "multimedia decoding library"
|
|
|
|
|
|
|
|
V= 1.1.1
|
|
|
|
DISTNAME= xine-lib-${V}
|
2006-03-27 06:04:27 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2006-03-24 17:43:41 -05:00
|
|
|
CATEGORIES= multimedia
|
|
|
|
SHARED_LIBS= xine 14.0
|
|
|
|
|
|
|
|
HOMEPAGE= http://xinehq.de/
|
|
|
|
|
|
|
|
MAINTAINER= Jacob Meuser <jakemsr@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xine/}
|
|
|
|
|
|
|
|
WANTLIB= X11 Xext Xinerama Xv freetype \
|
2006-03-27 06:04:27 -05:00
|
|
|
jpeg lcms m usbhid z
|
2006-03-24 17:43:41 -05:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
PKG_ARGS+= -Di386=1
|
|
|
|
.else
|
|
|
|
PKG_ARGS+= -Di386=0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MODULES= gettext
|
|
|
|
BUILD_DEPENDS= ::devel/pkgconfig
|
|
|
|
LIB_DEPENDS= FLAC.5::audio/flac \
|
|
|
|
SDL.3::devel/sdl \
|
|
|
|
a52.0::audio/liba52 \
|
|
|
|
avcodec.7,postproc.7,avutil.1::graphics/ffmpeg \
|
|
|
|
dvdnav.5::multimedia/libdvdnav \
|
|
|
|
mad.2::audio/libmad \
|
|
|
|
mng.3::graphics/libmng \
|
|
|
|
ogg.5::audio/libogg \
|
|
|
|
vorbis.4::audio/libvorbis \
|
|
|
|
speex.3::audio/speex \
|
|
|
|
theora.1::multimedia/libtheora
|
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
|
|
|
|
|
|
|
SUBST_VARS+= V
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--disable-optimizations \
|
|
|
|
--disable-mlib \
|
|
|
|
--disable-opengl \
|
|
|
|
--disable-fb \
|
|
|
|
--disable-vidix \
|
|
|
|
--disable-aalib \
|
|
|
|
--disable-caca \
|
|
|
|
--disable-polypaudio \
|
2006-03-27 06:04:27 -05:00
|
|
|
--disable-oss \
|
2006-03-24 17:43:41 -05:00
|
|
|
--disable-alsa \
|
|
|
|
--disable-arts \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-gnome \
|
|
|
|
--disable-imagemagick \
|
|
|
|
--disable-samba \
|
|
|
|
--disable-vcd \
|
|
|
|
--enable-shared-xv \
|
|
|
|
--disable-static-xv \
|
|
|
|
--with-external-ffmpeg=${LOCALBASE} \
|
|
|
|
--with-external-dvdnav \
|
|
|
|
--with-external-a52dec \
|
|
|
|
--with-external-libmad \
|
|
|
|
--with-internal-vcdlibs
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
FFMPEG_CPPFLAGS="-I${LOCALBASE}/include/ffmpeg -I${LOCALBASE}/include/postproc" \
|
|
|
|
FFMPEG_LIBS="-lavcodec -lavutil -lpostproc -lm -lz -pthread" \
|
|
|
|
FFMPEG_POSTPROC_LIBS="-lpostproc"
|
|
|
|
|
2006-03-27 06:04:27 -05:00
|
|
|
post-patch:
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
cp ${FILESDIR}/i386_set_ldt.c ${WRKSRC}/src/libw32dll/wine/
|
|
|
|
.endif
|
|
|
|
|
2006-03-24 17:43:41 -05:00
|
|
|
.include <bsd.port.mk>
|