2 # Copyright (C) 2007-2010 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.mega-nerd.com
/libsndfile
/files
/
16 PKG_HASH
:=1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9
19 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libsndfile
29 TITLE
:=Library for reading
/writing audio files
30 URL
:=http
://www.mega-nerd.com
/libsndfile
/
31 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
35 define Package
/libsndfile
/description
36 libsndfile is a library of C routines for reading and writing files
37 containing sampled audio data.
42 --disable-external-libs \
46 ac_cv_sys_file_offset_bits
=64 \
47 ac_cv_sys_large_files
=yes \
48 ac_cv_sys_largefile_CFLAGS
=-D_LARGFILE_SOURCE \
49 ac_cv_sys_largefile_LDFLAGS
= \
50 ac_cv_sys_largefile_LIBS
= \
51 ac_cv_sys_largefile_source
=yes
53 TARGET_CFLAGS
+= $(FPIC
)
55 define Build
/InstallDev
57 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
60 define Package
/libsndfile
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsndfile.so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libsndfile
))