libsndfile: switch to git
[feed/packages.git] / libs / libsndfile / Makefile
1 #
2 # Copyright (C) 2007-2010 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_VERSION:=b4bd397ca74f4c72b9cabaae66fef0c3d5a8c527
16 PKG_MIRROR_HASH:=8e7cb3da240888c9c0e17d066e904d720c94dd379d3e5105df69797e2b321016
17
18 PKG_LICENSE:=LGPLv2.1
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libsndfile
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Library for reading/writing audio files
30 URL:=http://www.mega-nerd.com/libsndfile/
31 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
32 endef
33
34 define Package/libsndfile/description
35 libsndfile is a library of C routines for reading and writing files
36 containing sampled audio data.
37 endef
38
39 CONFIGURE_ARGS+= \
40 --disable-alsa \
41 --disable-external-libs \
42 --disable-sqlite
43
44 CONFIGURE_VARS += \
45 ac_cv_sys_file_offset_bits=64 \
46 ac_cv_sys_large_files=yes \
47 ac_cv_sys_largefile_CFLAGS=-D_LARGFILE_SOURCE \
48 ac_cv_sys_largefile_LDFLAGS= \
49 ac_cv_sys_largefile_LIBS= \
50 ac_cv_sys_largefile_source=yes
51
52 TARGET_CFLAGS += $(FPIC)
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)
56 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
57 endef
58
59 define Package/libsndfile/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libsndfile))