b6f2860b7bc98dc63ead8b69740f38dd7e339db3
[feed/packages.git] / libs / libid3tag / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libid3tag
11 PKG_VERSION:=0.16.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://codeberg.org/tenacityteam/libid3tag.git
16 PKG_SOURCE_VERSION:=$(PKG_VERSION)
17 PKG_MIRROR_HASH:=4007a88feaae11925ce96e4c020f0c7332e50d46e9b4f8f7fa77e856e1500959
18
19 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
20
21 PKG_LICENSE:=GPL-2
22 PKG_LICENSE_FILES:=COPYING
23 PKG_CPE_ID:=cpe:/a:media-libs:libid3tag
24
25 CMAKE_BINARY_SUBDIR:=openwrt-build
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/cmake.mk
29
30 define Package/libid3tag
31 SECTION:=libs
32 CATEGORY:=Libraries
33 DEPENDS:=+zlib
34 TITLE:=An ID3 tag manipulation library
35 URL:=https://codeberg.org/tenacityteam/libid3tag
36 endef
37
38 define Package/libid3tag/description
39 libid3tag is a library for reading and (eventually) writing ID3 tags, both
40 ID3v1 and the various versions of ID3v2.
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include
45 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/id3tag.pc $(1)/usr/lib/pkgconfig/
50 endef
51
52 define Package/libid3tag/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libid3tag))