2015-05-30 21:08:32 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libextractor
|
2021-04-28 17:42:56 +00:00
|
|
|
PKG_VERSION:=1.11
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=3
|
2015-05-30 21:08:32 +00:00
|
|
|
|
|
|
|
# ToDo:
|
2015-06-12 06:00:39 +00:00
|
|
|
# - package missing optional dependencies: libexiv2, gsf, librpm, smf, tidy
|
2015-05-30 21:08:32 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
2021-04-28 17:42:56 +00:00
|
|
|
PKG_HASH:=16f633ab8746a38547c4a1da3f4591192b0825ad83c4336f0575b85843d8bd8f
|
2015-05-30 21:08:32 +00:00
|
|
|
|
2019-07-06 22:38:56 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2015-05-30 21:08:32 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
|
|
|
2022-07-10 07:32:58 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2015-05-30 21:08:32 +00:00
|
|
|
PKG_INSTALL:=1
|
2020-08-01 18:12:20 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
|
|
CONFIG_PACKAGE_libextractor-plugin-gstreamer
|
2015-05-30 21:08:32 +00:00
|
|
|
|
|
|
|
PLUGINS:= \
|
2015-06-21 13:24:43 +00:00
|
|
|
archive:+libarchive-noopenssl \
|
2015-05-30 21:08:32 +00:00
|
|
|
deb \
|
|
|
|
dvi \
|
|
|
|
flac:+libflac \
|
2015-06-12 06:00:39 +00:00
|
|
|
gif:+giflib \
|
2017-01-10 20:17:48 +00:00
|
|
|
gstreamer:+libgstreamer1:+gstreamer1-plugins-base:+libgst1app:+libgst1pbutils:+libgst1tag \
|
2015-05-30 21:08:32 +00:00
|
|
|
it \
|
2020-09-13 22:14:28 +00:00
|
|
|
jpeg:+libjpeg-turbo \
|
2015-05-30 21:08:32 +00:00
|
|
|
man \
|
|
|
|
mime:+libmagic \
|
|
|
|
mpeg:+libmpeg2 \
|
|
|
|
nsf \
|
|
|
|
nsfe \
|
|
|
|
odf \
|
|
|
|
ogg:+libvorbis \
|
|
|
|
png \
|
|
|
|
ps \
|
|
|
|
riff \
|
|
|
|
s3m \
|
|
|
|
sid \
|
|
|
|
tiff:+libtiff \
|
|
|
|
wav \
|
|
|
|
xm \
|
|
|
|
zip
|
|
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2015-09-11 05:23:05 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2015-05-30 21:08:32 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2022-03-13 08:09:10 +00:00
|
|
|
--disable-ffmpeg \
|
2020-08-01 18:12:20 +00:00
|
|
|
--disable-glibtest \
|
2015-05-30 21:08:32 +00:00
|
|
|
--disable-gsf \
|
2020-08-01 18:12:20 +00:00
|
|
|
--disable-rpath \
|
|
|
|
--with$(if $(CONFIG_PACKAGE_libextractor-plugin-gstreamer),,out)-gstreamer
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_lib_jpeg_jpeg_mem_src=yes
|
|
|
|
|
2015-05-30 21:08:32 +00:00
|
|
|
define Package/libextractor
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=GNU Libextractor
|
|
|
|
URL:=https://www.gnu.org/software/libextractor/
|
2015-09-11 05:23:05 +00:00
|
|
|
DEPENDS:=+libbz2 +libltdl +librt +zlib $(ICONV_DEPENDS) $(INTL_DEPENDS)
|
2015-05-30 21:08:32 +00:00
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libextractor/description
|
|
|
|
GNU Libextractor is a library used to extract meta data from files.
|
|
|
|
The goal is to provide developers of file-sharing networks, browsers or
|
|
|
|
WWW-indexing bots with a universal library to obtain simple keywords and meta
|
|
|
|
data to match against queries and to show to users instead of only relying on
|
|
|
|
filenames.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define PluginGen
|
|
|
|
define Package/libextractor-plugin-$(subst _,-,$(firstword $(subst :, ,$(1))))
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=GNU Libextractor ($(firstword $(subst :, ,$(1))) plugin)
|
|
|
|
URL:=https://www.gnu.org/software/libextractor/
|
|
|
|
DEPENDS:=libextractor $(wordlist 2,$(words $(subst :, ,$(1))),$(subst :, ,$(1)))
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach file,$(PLUGINS),$(eval $(call PluginGen,$(file))))
|
|
|
|
|
|
|
|
define Package/extract
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=extract util from GNU Libextractor
|
|
|
|
URL:=https://www.gnu.org/software/libextractor/
|
|
|
|
DEPENDS:=+libextractor
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/extract/description
|
|
|
|
libextractor contains the shell command extract that, similar to the
|
|
|
|
well-known file command, can extract meta data from a file an print the results
|
|
|
|
to stdout.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libextractor/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define PluginInstall
|
|
|
|
define Package/libextractor-plugin-$(subst _,-,$(firstword $(subst :, ,$(1))))/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/lib/libextractor
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libextractor/libextractor_$(firstword $(subst :, ,$(1))).so \
|
|
|
|
$$(1)/usr/lib/libextractor
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/extract/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach file,$(PLUGINS),$(eval $(call PluginInstall,$(file))))
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libextractor))
|
|
|
|
$(foreach file,$(PLUGINS),$(eval $(call BuildPackage,libextractor-plugin-$(subst _,-,$(firstword $(subst :, ,$(file)))))))
|
|
|
|
$(eval $(call BuildPackage,extract))
|