2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Alexander Pyhalov
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= audacity
21 COMPONENT_VERSION
= 2.3.2
23 COMPONENT_SUMMARY
= Cross-platform audio software for recording and editing
24 COMPONENT_SRC
= audacity-Audacity-
$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= Audacity-
$(COMPONENT_VERSION
).zip
26 COMPONENT_ARCHIVE_HASH
= \
27 sha256
:675fb1a7a4270800324cd5add5b9f23dae32c9f4df5b3dbe5124dac6c4de0988
28 COMPONENT_ARCHIVE_URL
= \
29 https
://github.com
/audacity
/audacity
/archive
/$(COMPONENT_ARCHIVE
)
30 COMPONENT_PROJECT_URL
= http
://www.audacityteam.org
/
31 COMPONENT_FMRI
= audio
/audacity
32 COMPONENT_CLASSIFICATION
=Applications
/Sound and Video
33 COMPONENT_LICENSE
= GPLv2
34 COMPONENT_LICENSE_FILE
= LICENSE.txt
36 include $(WS_MAKE_RULES
)/encumbered.mk
37 TEST_TARGET
=$(NO_TESTS
)
38 include $(WS_MAKE_RULES
)/common.mk
42 COMPONENT_PREP_ACTION
= (cd
$(@D
) && autoreconf
-fi
)
44 CFLAGS
+= -std
=c99
$(CPP_XPG6MODE
)
46 # Missing files in build dir for configure without this.
47 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CP
) -rpP
$(SOURCE_DIR
)/* $(@D
))
48 CONFIGURE_SCRIPT
= $(@D
)/configure
50 CONFIGURE_ENV
+= WX_CONFIG
=/usr
/bin
/$(MACH64
)/wx-config-3
52 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
53 CONFIGURE_OPTIONS
+= --libexecdir
=/usr
/lib
54 CONFIGURE_OPTIONS
+= --enable-unicode
55 CONFIGURE_OPTIONS
+= --with-lib-preference
="local"
56 CONFIGURE_OPTIONS
+= --with-expat
=system
57 CONFIGURE_OPTIONS
+= --with-libsndfile
=system
58 CONFIGURE_OPTIONS
+= --with-libsoxr
=system
59 CONFIGURE_OPTIONS
+= --with-midi
60 CONFIGURE_OPTIONS
+= --with-portaudio
61 CONFIGURE_OPTIONS
+= --disable-alsa
62 CONFIGURE_OPTIONS
+= --with-widgetextra
63 CONFIGURE_OPTIONS
+= --with-ffmpeg
=system
64 CONFIGURE_OPTIONS
+= --with-libflac
=system
65 CONFIGURE_OPTIONS
+= --with-libid3tag
=system
66 CONFIGURE_OPTIONS
+= --with-libmad
=system
67 CONFIGURE_OPTIONS
+= --with-lame
=system
68 CONFIGURE_OPTIONS
+= --with-libtwolame
=system
69 CONFIGURE_OPTIONS
+= --with-libvorbis
=system
70 CONFIGURE_OPTIONS
+= --with-portmixer
=yes
71 CONFIGURE_OPTIONS
+= --with-portmidi
=local
73 REQUIRED_PACKAGES
+= shell/which
74 REQUIRED_PACKAGES
+= video
/ffmpeg
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
78 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
79 REQUIRED_PACKAGES
+= audio
/twolame
80 REQUIRED_PACKAGES
+= codec
/flac
81 REQUIRED_PACKAGES
+= library
/audio
/libid3tag
82 REQUIRED_PACKAGES
+= library
/audio
/libmad
83 REQUIRED_PACKAGES
+= library
/audio
/soxr
84 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
85 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
86 REQUIRED_PACKAGES
+= library
/expat
87 REQUIRED_PACKAGES
+= library
/glib2
88 REQUIRED_PACKAGES
+= library
/graphics
/wxwidgets-3
89 REQUIRED_PACKAGES
+= library
/libogg
90 REQUIRED_PACKAGES
+= library
/libsndfile
91 REQUIRED_PACKAGES
+= library
/libvorbis
92 REQUIRED_PACKAGES
+= system
/library
93 REQUIRED_PACKAGES
+= system
/library
/math