configs/bananapro: bump Linux to 4.10.4
[buildroot-gz.git] / package / libmpeg2 / libmpeg2.mk
blob124c7499dba30479c83fe484cc1f4523fe37455c
1 ################################################################################
3 # libmpeg2
5 ################################################################################
7 LIBMPEG2_VERSION = 0.5.1
8 LIBMPEG2_SITE = http://libmpeg2.sourceforge.net/files
9 LIBMPEG2_LICENSE = GPLv2+
10 LIBMPEG2_LICENSE_FILES = COPYING
11 LIBMPEG2_INSTALL_STAGING = YES
12 LIBMPEG2_AUTORECONF = YES
13 LIBMPEG2_CONF_OPTS = --without-x --disable-directx
15 ifeq ($(BR2_PACKAGE_SDL),y)
16 LIBMPEG2_CONF_ENV += ac_cv_prog_SDLCONFIG=$(STAGING_DIR)/usr/bin/sdl-config
17 LIBMPEG2_CONF_OPTS += --enable-sdl
18 LIBMPEG2_DEPENDENCIES += sdl
19 else
20 LIBMPEG2_CONF_OPTS += --disable-sdl
21 endif
23 ifneq ($(BR2_PACKAGE_LIBMPEG2_BINS),y)
24 define LIBMPEG2_REMOVE_BINS
25 rm -f $(addprefix $(TARGET_DIR)/usr/bin/,\
26 mpeg2dec corrupt_mpeg2 extract_mpeg2)
27 endef
29 LIBMPEG2_POST_INSTALL_TARGET_HOOKS += LIBMPEG2_REMOVE_BINS
30 endif
32 $(eval $(autotools-package))