source: packages/sound/sox/Makefile @ 21055

Last change on this file since 21055 was 21055, checked in by mirko, 7 years ago

sox: cleanup (use PKG_INSTALL, make build more deterministic), make build depending on CONFIG_BUILD_PATENTED

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1#
2# Copyright (C) 2008 David Cooper <dave@kupesoft.com>
3# Copyright (C) 2006 OpenWrt.org
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=sox
12PKG_VERSION:=14.0.1
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/sox
17PKG_MD5SUM:=6c95af60b20b9655531bf3162c0be937
18
19PKG_FIXUP = libtool
20
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25TARGET_LDFLAGS+= \
26        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
27
28# NOTE: libflac is out of date for 8.09's freeze and can't be compiled in
29
30define Package/sox
31  SECTION:=sound
32  CATEGORY:=Sound
33  DEPENDS:=+BUILD_PATENTED:lame-lib +BUILD_PATENTED:libmad +BUILD_PATENTED:libid3tag +libvorbis +libvorbisidec +libgsm
34  TITLE:=Sox is a general purpose sound converter/player/recorder
35  URL:=http://sox.sourceforge.net/
36endef
37
38define Package/sox/description
39        SoX is a command line utility that can convert various formats
40        of computer audio files in to other formats. It can also apply
41        various effects to these sound files during the conversion.
42        As an added bonus, SoX can play and record audio files on
43        several unix-style platforms.
44endef
45
46define Build/Configure
47        $(call Build/Configure/Default, \
48                --disable-external-gsm \
49                --disable-oss \
50                --enable-alsa \
51                --disable-libao \
52                --without-libltdl \
53                --with-ogg \
54                --without-flac \
55                --without-ffmpeg \
56                --without-amr-wb \
57                --without-amr-nb \
58                --without-samplerate \
59                --without-ladspa \
60                --$(if $(CONFIG_BUILD_PATENTED),with-mad,without-mad) \
61                --$(if $(CONFIG_BUILD_PATENTED),with-lame,without-lame) \
62                --$(if $(CONFIG_BUILD_PATENTED),with-id3tag,without-id3tag) \
63        )
64endef
65
66define Package/sox/install
67        $(INSTALL_DIR) $(1)/usr/bin
68        $(INSTALL_DIR) $(1)/usr/lib
69        $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
70        $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libsfx.so*,libsox.so*} $(1)/usr/lib/
71endef
72
73$(eval $(call BuildPackage,sox))
74
Note: See TracBrowser for help on using the repository browser.