binutils: update to 2.43.1
[openadk.git] / package / sox / Makefile
blobb84cc160e3a6d2e68d0af85084cce598aa7d97c1
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
6 PKG_NAME:= sox
7 PKG_VERSION:= 14.4.2
8 PKG_RELEASE:= 1
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
14 PKG_NEEDS:= threads
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 \
45 --without-magic \
46 --without-ladspa \
47 --without-png \
48 --without-amrwb \
49 --without-amrnb \
50 --without-pulseaudio \
51 --without-wavpack \
52 --without-twolame
54 ifeq ($(ADK_PACKAGE_SOX_WITH_ALSA),y)
55 CONFIGURE_ARGS+= --with-alsa
56 else
57 CONFIGURE_ARGS+= --without-alsa
58 endif
59 ifeq ($(ADK_PACKAGE_SOX_WITH_ID3TAG),y)
60 CONFIGURE_ARGS+= --with-id3tag
61 else
62 CONFIGURE_ARGS+= --without-id3tag
63 endif
64 ifeq ($(ADK_PACKAGE_SOX_WITH_FLAC),y)
65 CONFIGURE_ARGS+= --with-flac
66 else
67 CONFIGURE_ARGS+= --without-flac
68 endif
69 ifeq ($(ADK_PACKAGE_SOX_WITH_LAME),y)
70 CONFIGURE_ARGS+= --with-lame
71 else
72 CONFIGURE_ARGS+= --without-lame
73 endif
74 ifeq ($(ADK_PACKAGE_SOX_WITH_MAD),y)
75 CONFIGURE_ARGS+= --with-mad
76 else
77 CONFIGURE_ARGS+= --without-mad
78 endif
79 ifeq ($(ADK_PACKAGE_SOX_WITH_VORBIS),y)
80 CONFIGURE_ARGS+= --with-oggvorbis
81 else
82 CONFIGURE_ARGS+= --without-oggvorbis
83 endif
84 ifeq ($(ADK_TARGET_USE_SSP),y)
85 CONFIGURE_ARGS+= --enable-stack-protector
86 else
87 CONFIGURE_ARGS+= --disable-stack-protector
88 endif
90 sox-install:
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 \
96 ln sox $$tgt; \
97 done
99 include ${ADK_TOPDIR}/mk/pkg-bottom.mk