1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 1632e91d2a0087e0ef4c3fb4c95c3c2890f7715a9d1d43ffd46329f428cf53be
10 PKG_DESCR
:= popular media player
11 PKG_SECTION
:= mm
/video
12 PKG_DEPENDS
:= libffmpeg xcb-util libgcrypt alsa-lib
13 PKG_BUILDDEP
:= ffmpeg xcb-util libgcrypt alsa-lib
15 PKG_URL
:= http
://www.videolan.org
/vlc
/
16 PKG_SITES
:= http
://download.videolan.org
/pub
/videolan
/vlc
/$(PKG_VERSION
)/
18 PKG_FLAVOURS_VLC
:= WITH_BLURAY WITH_MAD WITH_OGG WITH_OPUS WITH_SPEEX WITH_THEORA
19 PKG_FLAVOURS_VLC
+= WITH_VPX WITH_MATROSKA
20 PKGFD_WITH_BLURAY
:= enable bluray support
21 PKGFB_WITH_BLURAY
:= libbluray
22 PKGFS_WITH_BLURAY
:= libbluray
23 PKGFD_WITH_MAD
:= enable mp3 support
24 PKGFB_WITH_MAD
:= libmad
25 PKGFS_WITH_MAD
:= libmad
26 PKGFD_WITH_MATROSKA
:= enable matroska support
27 PKGFB_WITH_MATROSKA
:= libmatroska
28 PKGFS_WITH_MATROSKA
:= libmatroska
29 PKGFD_WITH_OGG
:= enable ogg support
30 PKGFB_WITH_OGG
:= libogg
31 PKGFS_WITH_OGG
:= libogg
32 PKGFD_WITH_OPUS
:= enable opus support
33 PKGFB_WITH_OPUS
:= opus
34 PKGFS_WITH_OPUS
:= libopus
35 PKGFD_WITH_SPEEX
:= enable speex support
36 PKGFB_WITH_SPEEX
:= speex
37 PKGFS_WITH_SPEEX
:= libspeex
38 PKGFD_WITH_THEORA
:= enable theora support
39 PKGFB_WITH_THEORA
:= libtheora
40 PKGFS_WITH_THEORA
:= libtheora
41 PKGFD_WITH_VPX
:= enable vpx support
42 PKGFB_WITH_VPX
:= libvpx
43 PKGFS_WITH_VPX
:= libvpx
45 include $(ADK_TOPDIR
)/mk
/package.mk
47 $(eval
$(call PKG_template
,VLC
,vlc
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
49 TARGET_CPPFLAGS
+= -D_DEFAULT_SOURCE
52 AUTOTOOL_STYLE
:= autoreconf
53 CONFIGURE_ENV
+= ac_cv_func_sched_getaffinity
=no
54 CONFIGURE_ARGS
+= --disable-lua \
65 --enable-run-as-root \
67 --disable-optimizations \
71 ifeq ($(ADK_TARGET_ARCH_ARM_WITH_NEON
),)
72 CONFIGURE_ARGS
+= --disable-neon
75 ifneq ($(ADK_PACKAGE_VLC_WITH_BLURAY
),)
76 CONFIGURE_ARGS
+= --enable-bluray
78 CONFIGURE_ARGS
+= --disable-bluray
80 ifneq ($(ADK_PACKAGE_VLC_WITH_MAD
),)
81 CONFIGURE_ARGS
+= --enable-mad
83 CONFIGURE_ARGS
+= --disable-mad
85 ifneq ($(ADK_PACKAGE_VLC_WITH_MATROSKA
),)
86 CONFIGURE_ARGS
+= --enable-mkv
88 CONFIGURE_ARGS
+= --disable-mkv
90 ifneq ($(ADK_PACKAGE_VLC_WITH_OGG
),)
91 CONFIGURE_ARGS
+= --enable-ogg
93 CONFIGURE_ARGS
+= --disable-ogg
95 ifneq ($(ADK_PACKAGE_VLC_WITH_OPUS
),)
96 CONFIGURE_ARGS
+= --enable-opus
98 CONFIGURE_ARGS
+= --disable-opus
100 ifneq ($(ADK_PACKAGE_VLC_WITH_SPEEX
),)
101 CONFIGURE_ARGS
+= --enable-speex
103 CONFIGURE_ARGS
+= --disable-speex
105 ifneq ($(ADK_PACKAGE_VLC_WITH_THEORA
),)
106 CONFIGURE_ARGS
+= --enable-theora
108 CONFIGURE_ARGS
+= --disable-theora
110 ifneq ($(ADK_PACKAGE_VLC_WITH_VPX
),)
111 CONFIGURE_ARGS
+= --enable-vpx
113 CONFIGURE_ARGS
+= --disable-vpx
117 $(INSTALL_DIR
) $(IDIR_VLC
)/usr
/bin
118 $(INSTALL_DIR
) $(IDIR_VLC
)/usr
/lib
/vlc
/plugins
119 $(CP
) $(WRKINST
)/usr
/lib
/libvlc
*.so
* \
121 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/{c
,}vlc \
123 $(CP
) $(WRKINST
)/usr
/lib
/vlc
/plugins
/* \
124 $(IDIR_VLC
)/usr
/lib
/vlc
/plugins
125 -rm $(IDIR_VLC
)/usr
/lib
/vlc
/plugins
/*/*.la
126 -rm $(IDIR_VLC
)/usr
/lib
/vlc
/plugins
/*/*.a
128 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk