depend on CPU_WITH_FPU
[openadk.git] / package / vlc / Makefile
blob7e4f4f0b0aea479efdde568a74ecb3fab12cc799
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.1.4
8 PKG_RELEASE:= 1
9 PKG_HASH:= 3e566c7525478167e18cc53dc75d621e4af91eb40aabb6231e47db25d682d5d3
10 PKG_DESCR:= popular media player
11 PKG_SECTION:= mm/video
12 PKG_BUILDDEP:= ffmpeg xcb-util libtheora libgcrypt libmad
13 PKG_DEPENDS:= libffmpeg xcb-util libtheora libgcrypt
14 PKG_URL:= http://www.videolan.org/vlc/
15 PKG_SITES:= http://download.videolan.org/pub/videolan/vlc/$(PKG_VERSION)/
17 PKG_ARCH_DEPENDS:= !m68k
18 PKG_LIBC_DEPENDS:= glibc musl
20 include $(ADK_TOPDIR)/mk/package.mk
22 $(eval $(call PKG_template,VLC,vlc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
25 TARGET_CFLAGS+= -fPIC
26 CONFIGURE_ENV+= ac_cv_func_sched_getaffinity=no
27 CONFIGURE_ARGS+= --disable-lua \
28 --disable-dbus \
29 --disable-a52 \
30 --disable-fribidi \
31 --disable-qt4 \
32 --disable-skins2 \
33 --disable-dvdnav \
34 --disable-glx \
35 --disable-libxml2 \
36 --disable-smb \
37 --disable-xcb \
38 --without-kde-solid \
39 --enable-libgcrypt \
40 --enable-mad \
41 --enable-theora \
42 --disable-static \
43 --disable-avcodec
45 vlc-install:
46 $(INSTALL_DIR) $(IDIR_VLC)/usr/bin
47 $(INSTALL_DIR) $(IDIR_VLC)/usr/lib/vlc/plugins
48 $(CP) $(WRKINST)/usr/lib/libvlc*.so* \
49 $(IDIR_VLC)/usr/lib
50 $(INSTALL_BIN) $(WRKINST)/usr/bin/{c,}vlc \
51 $(IDIR_VLC)/usr/bin
52 $(CP) $(WRKINST)/usr/lib/vlc/plugins/* \
53 $(IDIR_VLC)/usr/lib/vlc/plugins
54 -rm $(IDIR_VLC)/usr/lib/vlc/plugins/*/*.la
55 -rm $(IDIR_VLC)/usr/lib/vlc/plugins/*/*.a
57 include ${ADK_TOPDIR}/mk/pkg-bottom.mk