1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c
10 PKG_DESCR
:= swiss army knife of sound processing programs
11 PKG_SECTION
:= mm
/audio
12 PKG_DEPENDS
:= zlib libncurses
13 PKG_BUILDDEP
:= zlib ncurses
15 PKG_URL
:= http
://sox.sourceforge.net
/
16 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=sox
/}
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
20 PKG_FLAVOURS_SOX
:= WITH_LAME WITH_VORBIS WITH_FLAC WITH_MAD WITH_ALSA WITH_ID3TAG
21 PKGFD_WITH_LAME
:= mp3 lame support
22 PKGFB_WITH_LAME
:= lame
23 PKGFS_WITH_LAME
:= libmp3lame
24 PKGFD_WITH_MAD
:= mp3 mad support
25 PKGFB_WITH_MAD
:= libmad
26 PKGFS_WITH_MAD
:= libmad
27 PKGFD_WITH_VORBIS
:= ogg vorbis support
28 PKGFB_WITH_VORBIS
:= libvorbis libogg
29 PKGFS_WITH_VORBIS
:= libvorbis libogg libvorbisenc
30 PKGFD_WITH_FLAC
:= flac support
31 PKGFB_WITH_FLAC
:= flac
32 PKGFS_WITH_FLAC
:= libflac
33 PKGFD_WITH_ID3TAG
:= id3tag support
34 PKGFB_WITH_ID3TAG
:= libid3tag
35 PKGFS_WITH_ID3TAG
:= libid3tag
36 PKGFD_WITH_ALSA
:= alsa support
37 PKGFB_WITH_ALSA
:= alsa-lib
38 PKGFS_WITH_ALSA
:= alsa-lib
40 include $(ADK_TOPDIR
)/mk
/package.mk
42 $(eval
$(call PKG_template
,SOX
,sox
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
44 CONFIGURE_ARGS
+= --disable-openmp \
50 --without-pulseaudio \
54 ifeq ($(ADK_PACKAGE_SOX_WITH_ALSA
),y
)
55 CONFIGURE_ARGS
+= --with-alsa
57 CONFIGURE_ARGS
+= --without-alsa
59 ifeq ($(ADK_PACKAGE_SOX_WITH_ID3TAG
),y
)
60 CONFIGURE_ARGS
+= --with-id3tag
62 CONFIGURE_ARGS
+= --without-id3tag
64 ifeq ($(ADK_PACKAGE_SOX_WITH_FLAC
),y
)
65 CONFIGURE_ARGS
+= --with-flac
67 CONFIGURE_ARGS
+= --without-flac
69 ifeq ($(ADK_PACKAGE_SOX_WITH_LAME
),y
)
70 CONFIGURE_ARGS
+= --with-lame
72 CONFIGURE_ARGS
+= --without-lame
74 ifeq ($(ADK_PACKAGE_SOX_WITH_MAD
),y
)
75 CONFIGURE_ARGS
+= --with-mad
77 CONFIGURE_ARGS
+= --without-mad
79 ifeq ($(ADK_PACKAGE_SOX_WITH_VORBIS
),y
)
80 CONFIGURE_ARGS
+= --with-oggvorbis
82 CONFIGURE_ARGS
+= --without-oggvorbis
84 ifeq ($(ADK_TARGET_USE_SSP
),y
)
85 CONFIGURE_ARGS
+= --enable-stack-protector
87 CONFIGURE_ARGS
+= --disable-stack-protector
91 $(INSTALL_DIR
) $(IDIR_SOX
)/usr
/lib
92 ${CP} ${WRKINST}/usr
/lib
/libsox.so
* $(IDIR_SOX
)/usr
/lib
93 $(INSTALL_DIR
) $(IDIR_SOX
)/usr
/bin
94 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/sox
$(IDIR_SOX
)/usr
/bin
95 cd
${IDIR_SOX}/usr
/bin
; for tgt in rec play
; do \
99 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk