libsndfile: update to 2019-04-07-d5531723
[feed/packages.git] / libs / libsndfile / Makefile
1 #
2 # Copyright (C) 2007-2019 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:=libsndfile
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=https://github.com/erikd/libsndfile.git
15 PKG_SOURCE_DATE:=2019-04-07
16 PKG_SOURCE_VERSION:=d5531723a07ffbf7717c141b792dba8e1fbcb1c5
17 PKG_MIRROR_HASH:=927c6e0bac2be46d314f77afa1f205fe176b31ec30da6bb00c8793cd69007060
18
19 PKG_LICENSE:=LGPLv2.1
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/libsndfile
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=Library for reading/writing audio files
31 URL:=http://www.mega-nerd.com/libsndfile/
32 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
33 endef
34
35 define Package/libsndfile/description
36 libsndfile is a library of C routines for reading and writing files
37 containing sampled audio data.
38 endef
39
40 CMAKE_OPTIONS += \
41 -DBUILD_SHARED_LIBS:BOOL=ON \
42 -DENABLE_EXTERNAL_LIBS:BOOL=FALSE \
43 -DBUILD_REGTEST:BOOL=FALSE
44
45 TARGET_CFLAGS += $(FPIC)
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)
49 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
50 endef
51
52 define Package/libsndfile/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libsndfile))