2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=libextractor
15 # - package missing optional dependencies: libexiv2, gsf, librpm, smf, tidy
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=@GNU
/$(PKG_NAME
)
19 PKG_MD5SUM
:=35b8913dbebafe583a2781bf71509c48
22 PKG_LICENSE_FILES
:=COPYING
23 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
29 archive
:+libarchive-noopenssl \
34 gstreamer
:+libgstreamer1
:+libgst1app
:+libgst1pbutils
:+libgst1tag \
49 thumbnailffmpeg
:+libffmpeg-full
:+libmagic \
56 include $(INCLUDE_DIR
)/package.mk
57 include $(INCLUDE_DIR
)/nls.mk
65 define Package
/libextractor
68 TITLE
:=GNU Libextractor
69 URL
:=https
://www.gnu.org
/software
/libextractor
/
70 DEPENDS
:=+libbz2
+libltdl
+librt
+zlib
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
74 define Package
/libextractor
/description
75 GNU Libextractor is a library used to extract meta data from files.
76 The goal is to provide developers of file-sharing networks
, browsers or
77 WWW-indexing bots with a universal library to obtain simple keywords and meta
78 data to match against queries and to show to users instead of only relying on
83 define Package
/libextractor-plugin-
$(subst _
,-,$(firstword $(subst :, ,$(1))))
86 TITLE
:=GNU Libextractor
($(firstword $(subst :, ,$(1))) plugin
)
87 URL
:=https
://www.gnu.org
/software
/libextractor
/
88 DEPENDS
:=libextractor
$(wordlist
2,$(words $(subst :, ,$(1))),$(subst :, ,$(1)))
92 $(foreach file
,$(PLUGINS
),$(eval
$(call PluginGen
,$(file
))))
94 define Package
/extract
97 TITLE
:=extract util from GNU Libextractor
98 URL
:=https
://www.gnu.org
/software
/libextractor
/
99 DEPENDS
:=+libextractor
102 define Package
/extract
/description
103 libextractor contains the
shell command extract that
, similar to the
104 well-known file command
, can extract meta data from a file an
print the results
108 define Build
/InstallDev
109 $(INSTALL_DIR
) $(1)/usr
/include/
110 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
111 $(INSTALL_DIR
) $(1)/usr
/lib
/
112 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} $(1)/usr
/lib
/
113 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
114 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* $(1)/usr
/lib
/pkgconfig
/
117 define Package
/libextractor
/install
118 $(INSTALL_DIR
) $(1)/usr
/lib
/
119 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
123 define Package
/libextractor-plugin-
$(subst _
,-,$(firstword $(subst :, ,$(1))))/install
124 $(INSTALL_DIR
) $$(1)/usr
/lib
/libextractor
126 $(PKG_INSTALL_DIR
)/usr
/lib
/libextractor
/libextractor_
$(firstword $(subst :, ,$(1))).so \
127 $$(1)/usr
/lib
/libextractor
131 define Package
/extract
/install
132 $(INSTALL_DIR
) $(1)/usr
/bin
133 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
136 $(foreach file
,$(PLUGINS
),$(eval
$(call PluginInstall
,$(file
))))
138 $(eval
$(call BuildPackage
,libextractor
))
139 $(foreach file
,$(PLUGINS
),$(eval
$(call BuildPackage
,libextractor-plugin-
$(subst _
,-,$(firstword $(subst :, ,$(file
)))))))
140 $(eval
$(call BuildPackage
,extract
))