X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Flibplayer%2Flibplayer.mk;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Flibplayer%2Flibplayer.mk;h=ee5362dc4689e44d04791422de1b773bf6204f13;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/libplayer/libplayer.mk b/cirros-testvm/src-cirros/buildroot-2015.05/package/libplayer/libplayer.mk new file mode 100644 index 0000000..ee5362d --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/libplayer/libplayer.mk @@ -0,0 +1,47 @@ +################################################################################ +# +# libplayer +# +################################################################################ + +LIBPLAYER_VERSION = 2.0.1 +LIBPLAYER_SITE = http://libplayer.geexbox.org/releases +LIBPLAYER_SOURCE = libplayer-$(LIBPLAYER_VERSION).tar.bz2 +LIBPLAYER_LICENSE = LGPLv2.1+ +LIBPLAYER_LICENSE_FILES = COPYING + +# 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) \ + $(LIBPLAYER_CONF_OPTS) \ + ) +endef + +ifeq ($(BR2_PACKAGE_LIBPLAYER_MPLAYER),y) +LIBPLAYER_DEPENDENCIES += mplayer +LIBPLAYER_CONF_OPTS += --enable-mplayer +else +LIBPLAYER_CONF_OPTS += --disable-mplayer +endif + +ifeq ($(BR2_PACKAGE_LIBPLAYER_GSTREAMER),y) +LIBPLAYER_DEPENDENCIES += gstreamer +LIBPLAYER_CONF_OPTS += --enable-gstreamer +else +LIBPLAYER_CONF_OPTS += --disable-gstreamer +endif + +ifeq ($(BR2_PACKAGE_LIBPLAYER_PYTHON),y) +LIBPLAYER_DEPENDENCIES += python +LIBPLAYER_CONF_OPTS += --enable-binding-python +endif + +$(eval $(autotools-package))