rework kernel build process, changes to kernelconfig are reflected now
[openadk.git] / package / vlc / Makefile
blob149a44fb6b0251c1d7245f1cfb8718d13684d6c9
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
6 PKG_NAME:= vlc
7 PKG_VERSION:= 2.2.4
8 PKG_RELEASE:= 1
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
14 PKG_NEEDS:= threads
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
50 TARGET_CFLAGS+= -fPIC
52 AUTOTOOL_STYLE:= autoreconf
53 CONFIGURE_ENV+= ac_cv_func_sched_getaffinity=no
54 CONFIGURE_ARGS+= --disable-lua \
55 --disable-dbus \
56 --disable-a52 \
57 --disable-fribidi \
58 --disable-skins2 \
59 --disable-dvdnav \
60 --disable-libxml2 \
61 --disable-jack \
62 --disable-xcb \
63 --disable-taglib \
64 --without-kde-solid \
65 --enable-run-as-root \
66 --enable-libgcrypt \
67 --disable-optimizations \
68 --disable-static \
69 --disable-avcodec
71 ifeq ($(ADK_TARGET_ARCH_ARM_WITH_NEON),)
72 CONFIGURE_ARGS+= --disable-neon
73 endif
75 ifneq ($(ADK_PACKAGE_VLC_WITH_BLURAY),)
76 CONFIGURE_ARGS+= --enable-bluray
77 else
78 CONFIGURE_ARGS+= --disable-bluray
79 endif
80 ifneq ($(ADK_PACKAGE_VLC_WITH_MAD),)
81 CONFIGURE_ARGS+= --enable-mad
82 else
83 CONFIGURE_ARGS+= --disable-mad
84 endif
85 ifneq ($(ADK_PACKAGE_VLC_WITH_MATROSKA),)
86 CONFIGURE_ARGS+= --enable-mkv
87 else
88 CONFIGURE_ARGS+= --disable-mkv
89 endif
90 ifneq ($(ADK_PACKAGE_VLC_WITH_OGG),)
91 CONFIGURE_ARGS+= --enable-ogg
92 else
93 CONFIGURE_ARGS+= --disable-ogg
94 endif
95 ifneq ($(ADK_PACKAGE_VLC_WITH_OPUS),)
96 CONFIGURE_ARGS+= --enable-opus
97 else
98 CONFIGURE_ARGS+= --disable-opus
99 endif
100 ifneq ($(ADK_PACKAGE_VLC_WITH_SPEEX),)
101 CONFIGURE_ARGS+= --enable-speex
102 else
103 CONFIGURE_ARGS+= --disable-speex
104 endif
105 ifneq ($(ADK_PACKAGE_VLC_WITH_THEORA),)
106 CONFIGURE_ARGS+= --enable-theora
107 else
108 CONFIGURE_ARGS+= --disable-theora
109 endif
110 ifneq ($(ADK_PACKAGE_VLC_WITH_VPX),)
111 CONFIGURE_ARGS+= --enable-vpx
112 else
113 CONFIGURE_ARGS+= --disable-vpx
114 endif
116 vlc-install:
117 $(INSTALL_DIR) $(IDIR_VLC)/usr/bin
118 $(INSTALL_DIR) $(IDIR_VLC)/usr/lib/vlc/plugins
119 $(CP) $(WRKINST)/usr/lib/libvlc*.so* \
120 $(IDIR_VLC)/usr/lib
121 $(INSTALL_BIN) $(WRKINST)/usr/bin/{c,}vlc \
122 $(IDIR_VLC)/usr/bin
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