libsoup: moved to github
[openwrt.org/packages.git] / sound / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# Copyright (C) 2008 David Cooper <dave@kupesoft.com>
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=sox
PKG_VERSION:=14.4.1
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/sox
PKG_MD5SUM:=ff9ca6aca972549de0e80e8e30ed379c
 
PKG_LICENSE:=LGPLv2.1 GPLv2
PKG_LICENSE_FILES:=COPYING LICENSE.LGPL LICENSE.GPL
 
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/package.mk
 
TARGET_LDFLAGS+= \
        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
 
define Package/sox
  SECTION:=sound
  CATEGORY:=Sound
  DEPENDS:=+BUILD_PATENTED:lame-lib +BUILD_PATENTED:libmad +BUILD_PATENTED:libid3tag +libvorbis +libvorbisidec +libgsm +alsa-lib +libsndfile +libflac +ffmpeg +libmagic +libpng +libao
  TITLE:=Sox is a general purpose sound converter/player/recorder
  URL:=http://sox.sourceforge.net/
  MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
endef
 
define Package/sox/description
        SoX is a command line utility that can convert various formats
        of computer audio files in to other formats. It can also apply
        various effects to these sound files during the conversion.
        As an added bonus, SoX can play and record audio files on
        several unix-style platforms.
endef
 
define Build/Configure
        $(call Build/Configure/Default, \
                --disable-external-gsm \
                --disable-oss \
                --enable-alsa \
                --disable-libao \
                --without-libltdl \
                --with-ogg \
                --with-flac \
                --with-ffmpeg \
                --without-amr-wb \
                --without-amr-nb \
                --without-samplerate \
                --without-ladspa \
                --$(if $(CONFIG_BUILD_PATENTED),with-mad,without-mad) \
                --$(if $(CONFIG_BUILD_PATENTED),with-lame,without-lame) \
                --$(if $(CONFIG_BUILD_PATENTED),with-id3tag,without-id3tag) \
        )
endef
 
define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/include \
                $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
                $(1)/usr/lib/
        $(INSTALL_DATA) \
                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
                $(1)/usr/lib/pkgconfig/
endef
 
define Package/sox/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
endef
 
$(eval $(call BuildPackage,sox))
 
comments