2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-03 12:10:34 +02:00
|
|
|
#
|
|
|
|
# libplayer
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2011-10-03 12:10:34 +02:00
|
|
|
LIBPLAYER_VERSION = 2.0.1
|
|
|
|
LIBPLAYER_SITE = http://libplayer.geexbox.org/releases/
|
|
|
|
LIBPLAYER_SOURCE = libplayer-$(LIBPLAYER_VERSION).tar.bz2
|
|
|
|
|
|
|
|
# When passing the standard buildroot configure arguments, the configure script
|
|
|
|
# breaks on --target and --host options. Thus we need to define a configure cmd
|
|
|
|
# ourselves.
|
|
|
|
define LIBPLAYER_CONFIGURE_CMDS
|
|
|
|
(cd $(@D) && rm -rf config.cache && \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--cross-compile \
|
|
|
|
$(SHARED_STATIC_LIBS_OPTS) \
|
2013-05-30 01:27:17 +02:00
|
|
|
$(LIBPLAYER_CONF_OPT) \
|
2011-10-03 12:10:34 +02:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPLAYER_MPLAYER),y)
|
|
|
|
LIBPLAYER_DEPENDENCIES += mplayer
|
|
|
|
LIBPLAYER_CONF_OPT += --enable-mplayer
|
|
|
|
else
|
|
|
|
LIBPLAYER_CONF_OPT += --disable-mplayer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPLAYER_GSTREAMER),y)
|
|
|
|
LIBPLAYER_DEPENDENCIES += gstreamer
|
|
|
|
LIBPLAYER_CONF_OPT += --enable-gstreamer
|
|
|
|
else
|
|
|
|
LIBPLAYER_CONF_OPT += --disable-gstreamer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPLAYER_PYTHON),y)
|
|
|
|
LIBPLAYER_DEPENDENCIES += python
|
|
|
|
LIBPLAYER_CONF_OPT += --enable-binding-python
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|