[proaudio] [1353] add premake and use it for jost config now

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


Revision: 1353
Author:   gimpel
Date:     2008-11-12 01:34:51 +0100 (Wed, 12 Nov 2008)

Log Message:
-----------
add premake and use it for jost config now

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/jost/Manifest
    trunk/overlays/proaudio/media-sound/jost/jost-0.5.2.ebuild

Added Paths:
-----------
    trunk/overlays/proaudio/dev-util/premake/
    trunk/overlays/proaudio/dev-util/premake/Manifest
    trunk/overlays/proaudio/dev-util/premake/premake-3.7.ebuild


Added: trunk/overlays/proaudio/dev-util/premake/Manifest
===================================================================
--- trunk/overlays/proaudio/dev-util/premake/Manifest	                        (rev 0)
+++ trunk/overlays/proaudio/dev-util/premake/Manifest	2008-11-12 00:34:51 UTC (rev 1353)
@@ -0,0 +1,2 @@
+DIST premake-src-3.7.zip 427727 RMD160 f97f6bd49a47b63e1d3c8baf3a8744f8ee3dcd55 SHA1 9bc52da63d1d08cd68a61172932bb200cbed24fa SHA256 b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5
+EBUILD premake-3.7.ebuild 413 RMD160 510c1b833d14fe2a6ded2daa5ddf3d0b5f45a7b8 SHA1 57aae662c1682c6819c03a943c8f6cbdb692e9d9 SHA256 41be655068a17d27d087f0c75453702cd5cfc2ed7459a26fab2c52b2f8d2236d

Added: trunk/overlays/proaudio/dev-util/premake/premake-3.7.ebuild
===================================================================
--- trunk/overlays/proaudio/dev-util/premake/premake-3.7.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/dev-util/premake/premake-3.7.ebuild	2008-11-12 00:34:51 UTC (rev 1353)
@@ -0,0 +1,21 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="A makefile generation tool"
+HOMEPAGE="http://premake.berlios.de/";
+SRC_URI="mirror://sourceforge/premake/${PN}-src-${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}/${P/p/P}
+
+src_install() {
+	dobin bin/premake
+}

Modified: trunk/overlays/proaudio/media-sound/jost/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/jost/Manifest	2008-11-11 23:58:56 UTC (rev 1352)
+++ trunk/overlays/proaudio/media-sound/jost/Manifest	2008-11-12 00:34:51 UTC (rev 1353)
@@ -4,6 +4,6 @@
 DIST jost_src-v0.4.6.tar.bz2 2661690 RMD160 2e13d186af994bd1f153f3f1bd70079560690f98 SHA1 196d9e82b7a4d6634ec9b075c5e69d4dae3dc0ff SHA256 0a4c75adc73d5dca9985189040522c70c7d0e4321f869801d8cff62bb2de6d41
 DIST jost_src-v0.5.2.tar.bz2 2384255 RMD160 b8699de15619f24187b2ceebd8ed168d06daba59 SHA1 112e9a9d4d399f44179e022bc7fe74e90db09a0a SHA256 438d53c4d4839c57c54a642e481bad92629774b1aa83af9c3cfc07280bb757ba
 EBUILD jost-0.4.6.ebuild 3729 RMD160 4d91dd37ee91b80b83f45474345e11fd688dc4d1 SHA1 28c88d748f8cc98f4b4355dd1c126decb35b4348 SHA256 4d33211a6a0c66085375298c87d76fc173a80481ce88f9ea4b8230d4a6933b9c
-EBUILD jost-0.5.2.ebuild 3165 RMD160 63a8bf011188091feb18cddc9ccf4cc57e33a643 SHA1 1243635dd5650b5605ae2c423ceb06f98892fdd0 SHA256 7dda9705ba6f81c4071fadedf24e9da06f813eef0d30a394ea10285b7523c6ec
+EBUILD jost-0.5.2.ebuild 3442 RMD160 09d21938da6c85fe52b78516162bba49ba5eb008 SHA1 12faa4ea486887ee26461bd2df5547801260ea78 SHA256 4dc77a96c42f22451cc2994ae4e82d0ce43d0b1833480d87ac5b0ccf230a7dde
 MISC ChangeLog 574 RMD160 451dbb15216ca7e85a72c4d6becb336823385c1c SHA1 75bc02e582b404760f69a86dd053d0c10cfd6665 SHA256 830dc614c7d9e18e27b456bb2133c1d782c906bc0e97e3f45f456f35e9f2392b
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Modified: trunk/overlays/proaudio/media-sound/jost/jost-0.5.2.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/jost/jost-0.5.2.ebuild	2008-11-11 23:58:56 UTC (rev 1352)
+++ trunk/overlays/proaudio/media-sound/jost/jost-0.5.2.ebuild	2008-11-12 00:34:51 UTC (rev 1353)
@@ -18,19 +18,22 @@
 SLOT="0"
 EAPI="1"
 KEYWORDS="~x86 ~amd64"
-IUSE="+vst ladspa lash dssi"
+IUSE="alsa +vst ladspa lash dssi opengl"
 
 RDEPEND="|| ( (  x11-proto/xineramaproto
 					x11-proto/xextproto
 					x11-proto/xproto )
 			virtual/x11 )
-		media-sound/jack-audio-connection-kit"
+	media-sound/jack-audio-connection-kit
+	dssi? ( media-libs/dssi )
+	lash? ( media-sound/lash )
+	opengl? ( virtual/opengl )
+	alsa? ( media-libs/alsa-lib )
+	amd64? ( vst? ( app-emulation/emul-linux-x86-xlibs ) )"
 DEPEND="${RDEPEND}
-		vst? ( media-libs/vst-sdk )
-		ladspa? ( media-libs/ladspa-sdk )
-        dssi? ( media-libs/dssi )
-		lash? ( media-sound/lash )
-		amd64? ( vst? ( app-emulation/emul-linux-x86-xlibs ) )"
+	vst? ( media-libs/vst-sdk )
+	ladspa? ( media-libs/ladspa-sdk )
+	dev-util/premake"
 
 S="${WORKDIR}/${PN}-v${PV}"
 
@@ -65,9 +68,27 @@
 
 	# fix VST header path
 	sed -i -e 's:source/common:vst:g' "${S}/wrapper/formats/VST/juce_VstWrapper.cpp" || die
+
+	if use amd64; then
+		sed -i -e "s:#define JOST_USE_JACKBRIDGE         0:#define		JOST_USE_JACKBRIDGE         1:" \
+		"${S}/src/Config.h" || die "bad sed"
+	fi
 }
 
 src_compile() {
+	cd "${S}"/build/linux
+
+	premake \
+		--file premake.lua \
+		--cc gcc --target gnu --os linux \
+		`use_enable alsa` \
+		`use_enable opengl` \
+		`use_enable lash` \
+		`use_enable vst` \
+		`use_enable ladspa` \
+		`use_enable dssi` \
+		|| die "premake failed"
+	
 	local myconf="CONFIG=Release"
 	
 	# we compile Release32, but with a 32bit toolchain
@@ -76,11 +97,6 @@
 		myconf="CONFIG=Release32 JOST_USE_JACKBRIDGE=1"
 	fi
 
-	use lash && myconf="${myconf} JOST_USE_LASH=1"
-	use ladspa && myconf="${myconf} JOST_USE_LADSPA=1"
-	use dssi && myconf="${myconf} JOST_USE_DSSI=1"
-	use vst && myconf="${myconf} JOST_USE_VST=1"
-
 	# fails with --as-needed
 	filter-ldflags --as-needed -Wl,--as-needed
 
@@ -88,7 +104,6 @@
 	append-flags -fPIC -DPIC
 	append-ldflags -fPIC -DPIC
 
-	cd "${S}"/build/linux
 	einfo "Running \"make ${myconf}\" ..."
 	make ${myconf} || die
 }


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