summaryrefslogtreecommitdiff
path: root/package/mplayer/Makefile
blob: 5d581264654a6836580a6034a56434df94a78610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		mplayer
PKG_VERSION:=		1.0rc2
PKG_RELEASE:=		2
PKG_MD5SUM:=		7e27e535c2d267637df34898f1b91707
PKG_DESCR:=		popular video player
PKG_SECTION:=		video
PKG_DEPENDS:=		zlib libncurses libmad alsa-lib libvorbis libogg libfaad2 libpthread libpng libjpeg
PKG_URL:=		http://www.mplayerhq.hu
PKG_SITES:=		http://www7.mplayerhq.hu/MPlayer/releases/

DISTFILES:=             MPlayer-${PKG_VERSION}.tar.bz2
WRKDIST=		${WRKDIR}/MPlayer-${PKG_VERSION}

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

BUILD_STYLE:=		auto
INSTALL_STYLE:=		auto

ifeq ($(ADK_X11),y)
CONFIGURE_ARG:=		--enable-x11
else
CONFIGURE_ARG:=		--disable-x11
endif

ifeq (${ADK_LINUX_X86_ALIX1C},y)
CONFIGURE_CPU_OPTS:=	\
			--disable-ssse3 \
			--disable-sse2 \
			--disable-sse \
			--enable-mmxext \
			--enable-3dnowext \
			--enable-mmx \
			--enable-3dnow
else
CONFIGURE_CPU_OPTS:=	\
			--disable-ssse3 \
			--disable-sse2 \
			--disable-sse \
			--disable-mmxext \
			--disable-3dnowext \
			--disable-mmx \
			--disable-3dnow
endif

pre-configure:
	(cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
		./configure \
		--prefix=/usr \
		--confdir=/etc \
		--enable-cross-compile \
		--enable-runtime-cpudetection \
		--target=$(REAL_GNU_TARGET_NAME) \
		--cc=$(TARGET_CC) \
		--host-cc=$(HOSTCC) \
		--with-extraincdir=$(STAGING_DIR)/usr/include \
		--with-extralibdir=$(STAGING_DIR)/usr/lib \
		--disable-mencoder \
		--enable-fbdev \
		--enable-alsa \
		--enable-png \
		--enable-jpeg \
		--enable-mad \
		--enable-faad-external \
		--disable-faad-internal \
		--enable-libvorbis \
		--disable-ossaudio \
		--disable-vm \
		--disable-iconv \
		--disable-lirc \
		--disable-radio-v4l2 \
		--disable-faac \
		--disable-libdv \
		--disable-live \
		--disable-pvr \
		--disable-ftp \
		--disable-v4l2 \
		--disable-ivtv \
		--disable-vidix-internal \
		--disable-dvdread-internal \
		--disable-libdvdcss-internal \
		--disable-freetype \
		--disable-tremor-internal \
		--disable-arts \
		--disable-esd \
		--disable-polyp \
		--disable-jack \
		--disable-openal \
		--disable-nas \
		--disable-sgiaudio \
		--disable-sunaudio \
		--disable-win32waveout \
		--disable-tga \
		--disable-pnm \
		--disable-md5sum \
		--disable-liblzo \
		${CONFIGURE_CPU_OPTS} \
		${CONFIGURE_ARG} \
	);
	

post-install:
	${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
	${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin

include ${TOPDIR}/mk/pkg-bottom.mk