lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1639B)


      1 #
      2 # Copyright (C) 2006-2016 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:=audiofile
     11 PKG_VERSION:=0.3.6
     12 PKG_RELEASE:=3
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
     15 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3
     16 PKG_MD5SUM:=ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782
     17 
     18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
     19 
     20 PKG_FIXUP:=autoreconf
     21 PKG_INSTALL=1
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/libaudiofile
     26   SECTION:=libs
     27   CATEGORY:=Libraries
     28   TITLE:=Audio File library
     29   URL:=http://audiofile.68k.org/
     30   DEPENDS:=+libflac +libstdcpp
     31 endef
     32 
     33 define Package/libaudiofile/description
     34  The audiofile library allows the processing of audio data to and from audio
     35  files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,
     36  FLAC, ALAC, and raw data).
     37 endef
     38 
     39 CONFIGURE_ARGS+= \
     40 	--enable-shared \
     41 	--enable-static \
     42 	--disable-examples \
     43 	--with-build-cc="$(HOSTCC)"
     44 
     45 TARGET_CFLAGS+= $(FPIC)
     46 
     47 define Build/InstallDev
     48 	$(INSTALL_DIR) $(1)/usr/include
     49 	$(CP) \
     50 		$(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
     51 		$(1)/usr/include/
     52 
     53 	$(INSTALL_DIR) $(1)/usr/lib
     54 	$(CP) \
     55 		$(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,a,so*} \
     56 		$(1)/usr/lib/
     57 
     58 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     59 	$(CP) \
     60 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
     61 		$(1)/usr/lib/pkgconfig/
     62 endef
     63 
     64 define Package/libaudiofile/install
     65 	$(INSTALL_DIR) $(1)/usr/lib
     66 	$(CP) \
     67 		$(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
     68 		$(1)/usr/lib/
     69 endef
     70 
     71 $(eval $(call BuildPackage,libaudiofile))