libamcodec: New Package
PATCH 1/2 libamcodec: New Package
--- package/Config.in | 1 + .../libamcodec/0001-fix_flags_in_makefile.patch | 70 ++++++++++++++++++++++ package/libamcodec/Config.in | 13 ++++ package/libamcodec/libamcodec.hash | 2 + package/libamcodec/libamcodec.mk | 33 ++++++++++ 5 files changed, 119 insertions(+) create mode 100644 package/libamcodec/0001-fix_flags_in_makefile.patch create mode 100644 package/libamcodec/Config.in create mode 100644 package/libamcodec/libamcodec.hash create mode 100644 package/libamcodec/libamcodec.mk
package/Config.in +1 -0
@@ -1087,6 +1087,7 @@ endmenu menu "Multimedia" source "package/bitstream/Config.in" + source "package/libamcodec/Config.in" source "package/libass/Config.in" source "package/libbluray/Config.in" source "package/libdcadec/Config.in"
package/libamcodec/0001-fix_flags_in_makefile.patch new file +70 -0
70 lines not on this page · raw message
package/libamcodec/Config.in new file +13 -0
@@ -0,0 +1,13 @@ +comment "libamcodec needs a toolchain w/ threads" + depends on BR2_arm || BR2_aarch64 + depends on !BR2_TOOLCHAIN_HAS_THREADS + +config BR2_PACKAGE_LIBAMCODEC + bool "libamcodec" + depends on BR2_arm || BR2_aarch64 + depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib + select BR2_PACKAGE_ALSA_LIB + help + Interface library for Amlogic media codecs + + https://github.com/mdrjr/c2_aml_libs.git
package/libamcodec/libamcodec.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 44580255c63bde1544b1376bc8d33f73ef0c634afda5065455a01b77f6e2729b libamcodec-ed1d8b8c54b05c1a02a8ee44c59744e4cbed3d8d.tar.gz
package/libamcodec/libamcodec.mk new file +33 -0
@@ -0,0 +1,33 @@ +################################################################################ +# +# libamcodec +# +################################################################################ + +LIBAMCODEC_VERSION = ed1d8b8c54b05c1a02a8ee44c59744e4cbed3d8d +LIBAMCODEC_SITE = $(call github,mdrjr,c2_aml_libs,$(LIBAMCODEC_VERSION)) +LIBAMCODEC_DEPENDENCIES = alsa-lib + +# This package uses the M_PREFIX variable to construct the header and +# # library paths used when compiling +define LIBAMCODEC_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/amavutils M_PREFIX="$(STAGING_DIR)/usr" + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/amadec M_PREFIX="$(STAGING_DIR)/usr" + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/amcodec PREFIX="$(STAGING_DIR)" +endef + +define LIBAMCODEC_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 0755 $(@D)/amavutils/libamavutils.so $(STAGING_DIR)/usr/lib/libamavutils.so + $(INSTALL) -D -m 0555 $(@D)/amadec/libamadec.so $(STAGING_DIR)/usr/lib/libamadec.so + $(INSTALL) -D -m 0555 $(@D)/amcodec/libamcodec.so $(STAGING_DIR)/usr/lib/libamcodec.so + mkdir -p $(STAGING_DIR)/usr/include/amcodec + cp -rf $(@D)/amcodec/include/* $(STAGING_DIR)/usr/include/amcodec +endef + +define LIBAMCODEC_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/amavutils/libamavutils.so $(TARGET_DIR)/usr/lib/libamavutils.so + $(INSTALL) -D -m 0555 $(@D)/amadec/libamadec.so $(TARGET_DIR)/usr/lib/libamadec.so + $(INSTALL) -D -m 0555 $(@D)/amcodec/libamcodec.so $(TARGET_DIR)/usr/lib/libamcodec.so +endef + +$(eval $(generic-package))
Signature · 1 line
2.8.3
PATCH 2/2 enable amcodec if it is set in the config. based on the libreelec implementation.
--- package/kodi/kodi.mk | 3 +++ 1 file changed, 3 insertions(+)
package/kodi/kodi.mk +3 -0
@@ -56,6 +56,9 @@ endif ifeq ($(BR2_PACKAGE_LIBFSLVPUWRAP),y) KODI_DEPENDENCIES += libfslvpuwrap KODI_CONF_OPTS += --enable-codec=imxvpu +else ifeq ($(BR2_PACKAGE_LIBAMCODEC),y) +KODI_DEPENDENCIES += libamcodec +KODI_CONF_OPTS += --enable-codec=amcodec endif ifeq ($(BR2_PACKAGE_LIBCAP),y)
Signature · 1 line
2.8.3
PATCH 1/2 libamcodec: New Package
In reply to Dagg StomplerHello,
package/libamcodec/0001-fix_flags_in_makefile.patch
Quoted 5 lines · Dagg Stompler
package/libamcodec/0001-fix_flags_in_makefile.patch new file +0
-0
Patches need a description + Signed-off-by. Since the package is fetched from Git, please make it a Git formatted patch (i.e make a Git commit, and run "git format-patch HEAD^").
Quoted 6 lines
package/libamcodec/libamcodec.mk new file +0
-0
package/libamcodec/libamcodec.mk line 9
Quoted 9 lines
package/libamcodec/libamcodec.mk new file +9
-0@@ -0,0 +1,33 @@ +################################################################################ +# +# libamcodec +# +################################################################################ + +LIBAMCODEC_VERSION = ed1d8b8c54b05c1a02a8ee44c59744e4cbed3d8d +LIBAMCODEC_SITE = $(call github,mdrjr,c2_aml_libs,$(LIBAMCODEC_VERSION)) +LIBAMCODEC_DEPENDENCIES = alsa-lib
Has the license situation been resolved? I know you contacted upstream about his. Any feedback?
package/libamcodec/libamcodec.mk line 11
Quoted 2 lines
package/libamcodec/libamcodec.mk new file +2
-0+ +# This package uses the M_PREFIX variable to construct the header and
M_PREFIX or PREFIX
(you use PREFIX when building in the amcodec subdirectory)
package/libamcodec/libamcodec.mk line 12
Quoted 1 line
package/libamcodec/libamcodec.mk new file +1
-0+# # library paths used when compiling
duplicate # sign.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 enable amcodec if it is set in the config. based on the libreelec implementation.
In reply to Dagg StomplerHello,
Quoted 1 line · Dagg Stompler
Signed-off-by Dagg Stompler <[email protected]>
The commit log should rather look like:
kodi: enable optional dependency on libamcodec
This is based on what LibreELEC is doing.
Indeed, the commit title should always have the form:
<package>: <description>.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/2 libamcodec: New Package
In reply to Thomas PetazzoniGreetings,
Quoted 13 lines · Dagg Stompler
package/libamcodec/0001-fix_flags_in_makefile.patch
Quoted 6 lines
package/libamcodec/0001-fix_flags_in_makefile.patch new file +0
-0Patches need a description + Signed-off-by. Since the package is fetched from Git, please make it a Git formatted patch (i.e make a Git commit, and run "git format-patch HEAD^").
ok, I'll do that.
Quoted 10 lines
Quoted 10 lines
package/libamcodec/libamcodec.mk new file +4
-0@@ -0,0 +1,33 @@ +################################################################################ +# +# libamcodec +#
Quoted 9 lines
package/libamcodec/libamcodec.mk line 9
Quoted 5 lines
package/libamcodec/libamcodec.mk new file +5
-0+################################################################################ + +LIBAMCODEC_VERSION = ed1d8b8c54b05c1a02a8ee44c59744e4cbed3d8d +LIBAMCODEC_SITE = $(call github,mdrjr,c2_aml_libs,$(LIBAMCODEC_VERSION)) +LIBAMCODEC_DEPENDENCIES = alsa-libHas the license situation been resolved? I know you contacted upstream about his. Any feedback?
not yet, I can try to contact the dev in charge again.
Quoted 7 lines
package/libamcodec/libamcodec.mk line 11
Quoted 2 lines
package/libamcodec/libamcodec.mk new file +2
-0+ +# This package uses the M_PREFIX variable to construct the header and
M_PREFIXor PREFIX(you use PREFIX when building in the amcodec subdirectory)
update the comment you mean?
Quoted 4 lines
package/libamcodec/libamcodec.mk line 12
Quoted 1 line
package/libamcodec/libamcodec.mk new file +1
-0+# # library paths used when compilingduplicate # sign.
will fix.
Dagg.
PATCH 2/2 enable amcodec if it is set in the config. based on the libreelec implementation.
In reply to Thomas PetazzoniGreetings,
Quoted 8 lines · Dagg Stompler
Quoted 1 line
Signed-off-by Dagg Stompler <[email protected]>The commit log should rather look like:
kodi: enable optional dependency on libamcodec
Quoted 8 lines
This is based on what LibreELEC is doing.
Indeed, the commit title should always have the form:
<package>: <description>.
Thanks!
will resend.
Dagg.
PATCH 1/2 libamcodec: New Package
In reply to daggsHello,
Quoted 4 lines · daggs
Quoted 3 lines
Has the license situation been resolved? I know you contacted upstream about his. Any feedback?
not yet, I can try to contact the dev in charge again.
Maybe add a:
LIBAMCODEC_LICENSE = Unclear
for the moment ?
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
+# This package uses the
M_PREFIXvariable to construct the header and
M_PREFIXor PREFIX(you use PREFIX when building in the amcodec subdirectory)
update the comment you mean?
Yes.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com