[proaudio] [971] ardour-99992: add sys-libs stuff, internal libs refuse to compile

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 971
Author:   gimpel
Date:     2007-11-25 21:34:53 +0000 (Sun, 25 Nov 2007)

Log Message:
-----------
ardour-99992: add sys-libs stuff, internal libs refuse to compile

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/ardour/Manifest
    trunk/overlays/proaudio/media-sound/ardour/ardour-99992.ebuild


Modified: trunk/overlays/proaudio/media-sound/ardour/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/ardour/Manifest	2007-11-25 19:04:07 UTC (rev 970)
+++ trunk/overlays/proaudio/media-sound/ardour/Manifest	2007-11-25 21:34:53 UTC (rev 971)
@@ -53,10 +53,10 @@
 MD5 8443e654f02c448c72791bdce638109b ardour-99991.ebuild 3868
 RMD160 30b795f7702a6b87fb2c13124cba53e70852abe4 ardour-99991.ebuild 3868
 SHA256 47b48894349388f345f95ff40b74c0f37e520e15d8e184589b8949e7727cabbc ardour-99991.ebuild 3868
-EBUILD ardour-99992.ebuild 4061 RMD160 f43d04b9d71c6b678327d5fb45050717bd2f7071 SHA1 6becb6218ed74e230f2fb2ab092754f69aecd6fb SHA256 cf0032d648e68952033cc011ca288c7c8f362b63800df11846d874d298074e52
-MD5 cc7e2823197769275092c3ab154c100e ardour-99992.ebuild 4061
-RMD160 f43d04b9d71c6b678327d5fb45050717bd2f7071 ardour-99992.ebuild 4061
-SHA256 cf0032d648e68952033cc011ca288c7c8f362b63800df11846d874d298074e52 ardour-99992.ebuild 4061
+EBUILD ardour-99992.ebuild 5132 RMD160 7d2d92c59dbc5ac48c861f235d4bfbbcd975b985 SHA1 94f7c07c2823a0001e65b378ed0553d5b8fced98 SHA256 e03da9c9449adf0fad797162a4941bbe6902eacd08eabb5e901bff06e1e30313
+MD5 19fbcf8b1923fbad6189d79870dcf2d6 ardour-99992.ebuild 5132
+RMD160 7d2d92c59dbc5ac48c861f235d4bfbbcd975b985 ardour-99992.ebuild 5132
+SHA256 e03da9c9449adf0fad797162a4941bbe6902eacd08eabb5e901bff06e1e30313 ardour-99992.ebuild 5132
 MD5 7f35f34f809b48f1cd8d1eaf4682c839 files/digest-ardour-0.99.2 247
 RMD160 06d0bfe32c7759efd86b7caf310b2918cdb74b38 files/digest-ardour-0.99.2 247
 SHA256 aa54b7842628aaa700f3a84666317bdee6097c8c34cb6ea376106530bcbc5446 files/digest-ardour-0.99.2 247

Modified: trunk/overlays/proaudio/media-sound/ardour/ardour-99992.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/ardour/ardour-99992.ebuild	2007-11-25 19:04:07 UTC (rev 970)
+++ trunk/overlays/proaudio/media-sound/ardour/ardour-99992.ebuild	2007-11-25 21:34:53 UTC (rev 971)
@@ -14,7 +14,7 @@
 LICENSE="GPL-2"
 SLOT="1"
 KEYWORDS=""
-IUSE="nls debug sse altivec" #vst"
+IUSE="nls debug sse altivec sys-libs" #vst"
 
 RDEPEND=">=media-libs/liblrdf-0.4.0
 	>=media-libs/raptor-1.2.0
@@ -29,7 +29,16 @@
 	>=x11-libs/gtk+-2.6
 	>=gnome-base/libgnomecanvas-2.12.0
 	=media-sound/jack-audio-connection-kit-9999
-	!=media-sound/ardour2-9*"
+	!=media-sound/ardour2-9*
+	sys-libs? ( >=dev-libs/libsigc++-2.0
+		>=dev-cpp/glibmm-2.4
+		>=dev-cpp/cairomm-1.0
+		>=dev-cpp/gtkmm-2.8
+		>=dev-libs/atk-1.6
+		>=x11-libs/pango-1.4 
+		>=dev-cpp/libgnomecanvasmm-2.12.0
+		>=media-libs/libsndfile-1.0.16
+		>=media-libs/libsoundtouch-1.0 )"
 	#vst? ( >=app-emulation/wine-0.9.5 )"
 
 DEPEND="${RDEPEND}
@@ -53,6 +62,22 @@
 		ewarn "environment variable so we unset it"
 		unset ACLOCAL_FLAGS
 	fi
+
+	if use sys-libs;then
+		ewarn "You are trying to use the system libraries"
+		ewarn "instead the ones provided by ardour"
+		ewarn "No upstream support for doing so. Use at your own risk!!!"
+		ewarn "To use the ardour provided libs remerge with:"
+		ewarn "USE=\"-sys-libs\" emerge =${P}"
+
+		if ! built_with_use dev-cpp/gtkmm accessibility;then
+			eerror "To be able to use the USE flag 'sys-libs'"
+			eerror "you need to have dev-cpp/gtkmm"
+			eerror "emerged with the USE flag 'accessibility'"
+			die "dev-cpp/gtkmm is not built with the 'accessibility' USE flag"
+		fi
+		epause 3s
+	fi
 }
 
 src_unpack(){
@@ -67,6 +92,12 @@
 		templates/SConscript || die "changing template names failed"
 	add_ccache_to_scons
 	
+	# Fix libsoundtouch-1.0.pc detection
+	if use sys-libs; then
+		sed -i -e 's:libSoundTouch:soundtouch-1.0:g' SConstruct \
+			|| die "Fixing soundtouch detection failed"
+	fi
+	
 	# ################
 	# adjust files for vst support
 	#if use vst;then
@@ -94,8 +125,9 @@
 	! use altivec; myconf="${myconf} ALTIVEC=$?"
 	! use debug; myconf="${myconf} ARDOUR_DEBUG=$?"
 	! use nls; myconf="${myconf} NLS=$?" 
+	! use sse; myconf="${myconf} USE_SSE_EVERYWHERE=$? BUILD_SSE_OPTIMIZATIONS=$?"
+	! use sys-libs; myconf="${myconf} SYSLIBS=$?"
 	#! use vst; myconf="${myconf} VST=$?" 
-	! use sse; myconf="${myconf} USE_SSE_EVERYWHERE=$? BUILD_SSE_OPTIMIZATIONS=$?"
 	# static settings
 	myconf="${myconf} PREFIX=/usr KSI=0" # NLS=0"
 	einfo "${myconf}"


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/