openbsd-ports/x11/mplayer/Makefile

205 lines
4.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.111 2007/02/08 18:58:22 mglocker Exp $
# May not be hard to add more.
ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64 arm
COMMENT= "Movie player supporting MPEG, DivX, AVI, ASF, MOV & more"
DISTNAME= MPlayer-1.0pre8
DIST_SUBDIR= mplayer
PKGNAME= ${DISTNAME:L}p6
CATEGORIES= x11
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://www.mplayerhq.hu/
# GPL
PERMIT_PACKAGE_CDROM= "patents"
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m ncurses ogg pthread stdc++ util z
MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \
http://www2.mplayerhq.hu/MPlayer/releases/ \
http://www.mplayerhq.hu/MPlayer/releases/ \
http://ftp.lug.udel.edu/MPlayer/releases/
# The skins tarball changes on a daily basis so it is mirrored
# locally, do NOT change this.
#MASTER_SITES0= http://www2.mplayerhq.hu/MPlayer/Skin/
MASTER_SITES0= ${MASTER_SITE_BACKUP}
MASTER_SITES1= http://www.nazgul.ch/dev/
MAINTAINER= Bjorn Sandell <biorn@chalmers.se>
SKIN= default
SKINVER= 1.7
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${SKIN}-${SKINVER}${EXTRACT_SUFX}:0
.include <bsd.own.mk>
MODULES= converters/libiconv
LIB_DEPENDS= png::graphics/png \
jpeg::graphics/jpeg \
2005-01-06 16:33:28 -05:00
ungif::graphics/libungif \
cdda_paranoia,cdda_interface:cdparanoia->=3.a9.8:audio/cdparanoia \
theora::multimedia/libtheora \
speex::audio/speex \
mpcdec::audio/libmpcdec \
vorbis::audio/libvorbis \
xvidcore::multimedia/xvidcore \
rtunes.>=0.6::audio/rtunes
PATCHFILES= rtunes_ao.diff:1
CONFDIR= ${SYSCONFDIR}/mplayer
SUBST_VARS= CONFDIR
USE_GMAKE= Yes
CONFIGURE_STYLE= simple
CONFIGURE_ARGS+=--disable-alsa \
2002-05-12 14:50:46 -04:00
--disable-ossaudio \
--disable-nas \
--disable-liblzo \
2004-05-06 03:27:36 -04:00
--disable-caca \
--disable-internal-vidix \
--disable-external-vidix \
--disable-libdv \
--disable-smb \
--disable-external-tremor \
--disable-faac \
--enable-theora \
--enable-select \
--enable-vorbis \
--enable-menu \
--enable-iconv \
--enable-cdparanoia \
--with-extraincdir=${LOCALBASE}/include/libpng:${LOCALBASE}/include \
--with-extralibdir=${LOCALBASE}/lib \
--confdir=${CONFDIR} \
--disable-langinfo \
--disable-fribidi
CONFIGURE_ENV+= TMPDIR="${WRKBUILD}"
.if ${MACHINE_ARCH:Mi386}
CONFIGURE_ARGS+=--enable-runtime-cpudetection
.endif
.if ${MACHINE_ARCH:Mpowerpc}
CONFIGURE_ARGS+=--disable-altivec
2004-06-22 16:34:09 -04:00
.endif
2004-10-18 02:48:08 -04:00
FLAVORS= arts esd sdl ggi debug mad no_x11 aa
2002-06-07 20:48:26 -04:00
FLAVOR?=
.if ${MACHINE_ARCH:Marm}
CONFIGURE_ARGS+=--disable-mp3lib
FLAVOR+= mad
.endif
.if ${FLAVOR:L:Marts}
CONFIGURE_ARGS+=--enable-arts
LIB_DEPENDS+= artsc::x11/kde/arts3
2006-09-18 08:19:39 -04:00
WANTLIB+= glib-2.0 gmodule-2.0 gthread-2.0
.else
CONFIGURE_ARGS+=--disable-arts
.endif
.if ${FLAVOR:L:Mesd}
CONFIGURE_ARGS+=--enable-esd
LIB_DEPENDS+= esd::audio/esound
2004-12-19 07:56:26 -05:00
WANTLIB+= audiofile
.else
CONFIGURE_ARGS+=--disable-esd
.endif
2002-06-29 07:51:22 -04:00
.if ${FLAVOR:L:Mno_x11}
. if ${FLAVOR:L:Msdl} || ${FLAVOR:L:Mggi}
2002-06-29 07:51:22 -04:00
ERRORS+="Fatal: nonsense combination of flavors"
. else
CONFIGURE_ARGS+=--disable-gui \
--disable-gl \
--disable-xv \
--disable-x11 \
--disable-fontconfig \
--disable-freetype
LIB_DEPENDS+= mp3lame:lame-*:audio/lame,no_x11
2002-06-29 07:51:22 -04:00
. endif
.else
CONFIGURE_ARGS+=--enable-gui \
--enable-gl
2002-06-29 07:51:22 -04:00
USE_X11= Yes
2006-09-18 08:19:39 -04:00
LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
mp3lame:lame-*:audio/lame
WANTLIB+= GL X11 Xext Xrender Xinerama Xv Xxf86dga Xxf86vm atk-1.0 \
2006-09-18 08:19:39 -04:00
cairo freetype fontconfig glib-2.0 gmodule-2.0 \
gobject-2.0 glitz intl pango-1.0 pangocairo-1.0 \
2006-09-18 08:19:39 -04:00
pangoft2-1.0
2002-06-29 07:51:22 -04:00
.endif
.if ${FLAVOR:L:Msdl}
CONFIGURE_ARGS+=--enable-sdl \
--with-sdl-config=${LOCALBASE}/bin/sdl-config
LIB_DEPENDS+= SDL:sdl-1.2.4p1,>=1.2.5:devel/sdl
2004-12-19 07:56:26 -05:00
WANTLIB+= usbhid
.else
CONFIGURE_ARGS+=--disable-sdl
.endif
.if ${FLAVOR:L:Mggi}
CONFIGURE_ARGS+=--enable-ggi
LIB_DEPENDS+= ggi::graphics/ggi
.else
CONFIGURE_ARGS+=--disable-ggi
.endif
.if ${FLAVOR:L:Mdebug}
CONFIGURE_ARGS+=--enable-debug=3
.endif
.if ${FLAVOR:L:Mmad}
CONFIGURE_ARGS+=--enable-mad
LIB_DEPENDS+= mad.>=2::audio/libmad
.else
CONFIGURE_ARGS+=--disable-mad
.endif
2004-10-18 02:48:08 -04:00
.if ${MACHINE_ARCH:Mi386}
CONFIGURE_ARGS+=--with-win32libdir=${LOCALBASE}/lib/win32 \
--enable-qtx \
--with-reallibdir=${LOCALBASE}/lib/win32
.else
CONFIGURE_ARGS+=--disable-win32 \
--disable-qtx \
--disable-real
.endif
.if ${FLAVOR:L:Maa}
CONFIGURE_ARGS+=--enable-aa
.if ${FLAVOR:L:Mno_x11}
LIB_DEPENDS+= aa.>=1.3:aalib-*-no_x11:graphics/aalib,no_x11
.else
LIB_DEPENDS+= aa.>=1.3:aalib-*:graphics/aalib
.endif
.else
CONFIGURE_ARGS+=--disable-aa
.endif
2002-10-29 14:48:57 -05:00
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mplayer
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mplayer
${INSTALL_DATA_DIR} ${PREFIX}/share/mplayer/skins/${SKIN}
${INSTALL_DATA} ${WRKDIR}/${SKIN}/* ${PREFIX}/share/mplayer/skins/${SKIN}
cd ${WRKDIST}/etc; ${INSTALL_DATA} input.conf menu.conf codecs.conf \
${PREFIX}/share/examples/mplayer
${INSTALL_DATA} ${WRKDIST}/etc/example.conf \
${PREFIX}/share/examples/mplayer/mplayer.conf
2003-12-16 12:17:14 -05:00
${INSTALL_DATA} ${WRKDIST}/DOCS/HTML/en/*.html ${PREFIX}/share/doc/mplayer
.include <bsd.port.mk>