binutils: update to 2.43.1
[openadk.git] / package / vlc / Makefile
blobccf59458d6a14b30bfeaf95028bec14bb25ac8b3
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:= 3.0.20
8 PKG_RELEASE:= 1
9 PKG_HASH:= adc7285b4d2721cddf40eb5270cada2aaa10a334cb546fd55a06353447ba29b5
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_X264
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_OGG:= enable ogg support
27 PKGFB_WITH_OGG:= libogg
28 PKGFS_WITH_OGG:= libogg
29 PKGFD_WITH_OPUS:= enable opus support
30 PKGFB_WITH_OPUS:= opus
31 PKGFS_WITH_OPUS:= libopus
32 PKGFD_WITH_SPEEX:= enable speex support
33 PKGFB_WITH_SPEEX:= speex
34 PKGFS_WITH_SPEEX:= libspeex
35 PKGFD_WITH_THEORA:= enable theora support
36 PKGFB_WITH_THEORA:= libtheora
37 PKGFS_WITH_THEORA:= libtheora
38 PKGFD_WITH_VPX:= enable vpx support
39 PKGFB_WITH_VPX:= libvpx
40 PKGFS_WITH_VPX:= libvpx
41 PKGFD_WITH_X264:= enable h264 support
42 PKGFB_WITH_X264:= libx264
43 PKGFS_WITH_X264:= libx264
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-swscale \
70 --disable-avformat \
71 --disable-avcodec \
72 --disable-mpg123
74 ifeq ($(ADK_TARGET_ARCH_ARM_WITH_NEON),)
75 CONFIGURE_ARGS+= --disable-neon
76 endif
78 ifneq ($(ADK_PACKAGE_VLC_WITH_BLURAY),)
79 CONFIGURE_ARGS+= --enable-bluray
80 else
81 CONFIGURE_ARGS+= --disable-bluray
82 endif
83 ifneq ($(ADK_PACKAGE_VLC_WITH_MAD),)
84 CONFIGURE_ARGS+= --enable-mad
85 else
86 CONFIGURE_ARGS+= --disable-mad
87 endif
88 ifneq ($(ADK_PACKAGE_VLC_WITH_OGG),)
89 CONFIGURE_ARGS+= --enable-ogg
90 else
91 CONFIGURE_ARGS+= --disable-ogg
92 endif
93 ifneq ($(ADK_PACKAGE_VLC_WITH_OPUS),)
94 CONFIGURE_ARGS+= --enable-opus
95 else
96 CONFIGURE_ARGS+= --disable-opus
97 endif
98 ifneq ($(ADK_PACKAGE_VLC_WITH_SPEEX),)
99 CONFIGURE_ARGS+= --enable-speex
100 else
101 CONFIGURE_ARGS+= --disable-speex
102 endif
103 ifneq ($(ADK_PACKAGE_VLC_WITH_THEORA),)
104 CONFIGURE_ARGS+= --enable-theora
105 else
106 CONFIGURE_ARGS+= --disable-theora
107 endif
108 ifneq ($(ADK_PACKAGE_VLC_WITH_VPX),)
109 CONFIGURE_ARGS+= --enable-vpx
110 else
111 CONFIGURE_ARGS+= --disable-vpx
112 endif
113 ifneq ($(ADK_PACKAGE_VLC_WITH_X264),)
114 CONFIGURE_ARGS+= --enable-x264
115 else
116 CONFIGURE_ARGS+= --disable-x264
117 endif
119 vlc-install:
120 $(INSTALL_DIR) $(IDIR_VLC)/usr/bin
121 $(INSTALL_DIR) $(IDIR_VLC)/usr/lib/vlc/plugins
122 $(CP) $(WRKINST)/usr/lib/libvlc*.so* \
123 $(IDIR_VLC)/usr/lib
124 $(INSTALL_BIN) $(WRKINST)/usr/bin/{c,}vlc \
125 $(IDIR_VLC)/usr/bin
126 $(CP) $(WRKINST)/usr/lib/vlc/plugins/* \
127 $(IDIR_VLC)/usr/lib/vlc/plugins
128 -rm $(IDIR_VLC)/usr/lib/vlc/plugins/*/*.la
129 -rm $(IDIR_VLC)/usr/lib/vlc/plugins/*/*.a
131 include ${ADK_TOPDIR}/mk/pkg-bottom.mk