From: Ladislav Michl <la...@linux-mips.org> Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- rules/libtag.in | 17 ++++++++++++++ rules/libtag.make | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 rules/libtag.in create mode 100644 rules/libtag.make
diff --git a/rules/libtag.in b/rules/libtag.in new file mode 100644 index 000000000..17132b49e --- /dev/null +++ b/rules/libtag.in @@ -0,0 +1,17 @@ +## SECTION=multimedia_libs + +menuconfig LIBTAG + tristate + prompt "libtag " + select HOST_CMAKE + select ZLIB if LIBTAG_ZLIB + help + A library for reading and editing the meta-data of several + popular audio formats. + +if LIBTAG + +config LIBTAG_ZLIB + bool "zlib support" + +endif diff --git a/rules/libtag.make b/rules/libtag.make new file mode 100644 index 000000000..8d26a56da --- /dev/null +++ b/rules/libtag.make @@ -0,0 +1,60 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Ladislav Michl <la...@linux-mips.org> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBTAG) += libtag + +# +# Paths and names +# +LIBTAG_VERSION := 1.13.1 +LIBTAG_MD5 := 2fe6089da73ad414aa1b982b83415362 +LIBTAG := taglib-$(LIBTAG_VERSION) +LIBTAG_SUFFIX := tar.gz +LIBTAG_URL := https://taglib.org/releases/$(LIBTAG).$(LIBTAG_SUFFIX) +LIBTAG_SOURCE := $(SRCDIR)/$(LIBTAG).$(LIBTAG_SUFFIX) +LIBTAG_DIR := $(BUILDDIR)/$(LIBTAG) +LIBTAG_LICENSE := LGPL-2.1-or-later +LIBTAG_LICENSE_FILES := \ + file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c \ + file://COPYING.MPL;md5=bfe1f75d606912a4111c90743d6c7325 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBTAG_CONF_TOOL := cmake +LIBTAG_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_TESTING=OFF \ + -DBUILD_EXAMPLES=OFF \ + -DWITH_ZLIB=$(call ptx/onoff, PTXCONF_LIBTAG_ZLIB) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libtag.targetinstall: + @$(call targetinfo) + + @$(call install_init, libtag) + @$(call install_fixup, libtag,PRIORITY,optional) + @$(call install_fixup, libtag,SECTION,base) + @$(call install_fixup, libtag,AUTHOR,"Ladislav Michl <la...@linux-mips.org>") + @$(call install_fixup, libtag,DESCRIPTION,missing) + + $(call install_lib, libtag, 0, 0, 0644, libtag) + + @$(call install_finish, libtag) + + @$(call touch) + +# vim: syntax=make -- 2.39.2