Merge pull request #8361 from jandelgado/add_udptunnel_package
[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-03-08
16 PKG_SOURCE_VERSION:=5056a77fdae85f96eee4dff82af462db5a5c341e
17 PKG_MIRROR_HASH:=5a695b64885ed3c41910029116de8b713118be6349554685fe53997316c369ea
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))