[proaudio] [2389] media-sound/mx44: added patch to use autotools, removed cat call

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


Revision: 2389
Author:   lilrc
Date:     2013-01-12 22:48:41 +0100 (Sat, 12 Jan 2013)
Log Message:
-----------
media-sound/mx44: added patch to use autotools, removed cat call

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/mx44/ChangeLog
    trunk/overlays/proaudio/media-sound/mx44/Manifest
    trunk/overlays/proaudio/media-sound/mx44/mx44-2.ebuild

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/mx44/files/mx44-autotoolize.patch
    trunk/overlays/proaudio/media-sound/mx44/mx44-2-r1.ebuild

Modified: trunk/overlays/proaudio/media-sound/mx44/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-sound/mx44/ChangeLog	2013-01-04 15:58:53 UTC (rev 2388)
+++ trunk/overlays/proaudio/media-sound/mx44/ChangeLog	2013-01-12 21:48:41 UTC (rev 2389)
@@ -1,7 +1,13 @@
 # ChangeLog for media-sound/mx44
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  12 Jan 2013; Karl Lindén (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
+  mx44-2.ebuild, +mx44-2-r1.ebuild, +files/mx44-autotoolize.patch:
+  Added patch to use autotools as build system and created a ebuild
+  accordingly
+  Removed unnecessary cat statement in mx44-2.ebuild
+
   28 Dec 2012; Karl Lindén (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
   mx44-2.ebuild:
   Make ebuild to install to the right directory

Modified: trunk/overlays/proaudio/media-sound/mx44/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/mx44/Manifest	2013-01-04 15:58:53 UTC (rev 2388)
+++ trunk/overlays/proaudio/media-sound/mx44/Manifest	2013-01-12 21:48:41 UTC (rev 2389)
@@ -1,8 +1,10 @@
 AUX README.Gentoo 357 SHA256 d439f2cb5ec50cb5d79c94a149551b6cc1f94ded8c0c726811040fd5b48ac54a SHA512 e513ca073408a2bccbbb84ef7207cfd0fff13a6fea5e29eddd04ca739716e2059f127e0f09e5e14ba5f3bdc2bf3c7390a46b643f5c0d94344b1a81aad40f7a1c WHIRLPOOL 4a05aabe2593a052f0541bd214377a25f07252bd89141090ddb2b082bc92ac018b9e7e6504c5246ff9f411c47243af02f63bb1d8f069a29b9af722498bd93309
 AUX mx44 324 SHA256 e92863e59c7e485e79bb97b7fec0708c566ebae307257f1f57c8e3d2642f5229 SHA512 3956765be75fd53f7a4636ca59fa0cdd948ffb099679c91b163b70b04e51be497e368c7a9c37ae4e7149f6efeee930970f051d85b2ff4cf454ba7963c17c7127 WHIRLPOOL 6a8a955f9b511d8f3bfffb1a2222537517d99317093bd2c130f8734f72885c741e8431723752a06e7b22705d8ace4cad20ddf75a0954a9b3961a4e79b18664e8
+AUX mx44-autotoolize.patch 4557 SHA256 1547ce41457135f0d0c0a41bb8c56828a1169728261830b87d8ca689d61affcf SHA512 f858b15bc4ad1301acf82d5c2ee70f2deb880ad8465cbbc31b31efd28483a3f16bc6af622f813b752c3cfc7948540fc2317ad359fb73aeb7b269a0a70573b060 WHIRLPOOL 54fd381cf9722fc1f9c48b5c3cbc5e127d3f2a5a562335afc83eb70e97d10f5462173868a6fa3b239b9e959f897f0aa19f520c48e223d06fc2c19758b15c2506
 DIST Mx44.1.tar.gz 86467 SHA256 5b6ce42c3dc33ccd0843949cf3e5c34a872da0d5dfcefeabca6e3cd3f574d959 SHA512 fe573b7291fb004a21870ce6e4ccd036b4baab7c125e22c88866ab2285c04341a04bd9c45e5bbc48d302f44e0d99b4cedd06c3dc67d54c52a23865580e004297 WHIRLPOOL a74a25088503081d3c0c7979a9b524689c5e10b1e5b13fddced4060aa7b500181d06fab3c9709638d60d584ddc598b3c1a23e20385d46c86eaefa932f706231f
 DIST Mx44.2.tar.gz 58085 SHA256 941db2cfe1ac6cfb5517c2c980e465fa378983fdfeb80e3e84a896e1eb39f077 SHA512 a34b5530230a122e29f89837023ec8b9a2e22843fc5dba4b3cde17a372513b7f6dd29543cec3724a7d201e1c8dbb78a7bee2c7d8e9f303a941016d0aa4f45d80 WHIRLPOOL 3b2fe2e2f769b91c6b00a7e6d70715611c85a3e0a1d4d42550359746c44fb71657d7cfaef0f11601deafe2065fab6599a7cf6435e9f40bde779c30bc9de4449a
 EBUILD mx44-1.ebuild 936 SHA256 f0c7da6f06dd1627b6e85fb7789bb0fe367e63a0b394b486556fd8b406008921 SHA512 bcb2b194d242dea5ae57b249c688e440fda8c325ef762fecfe45e926cfd4cb79c374f59815332a1119ee5899fb56fc3367e2d588d3c45665b4885a13458299ff WHIRLPOOL 593a8c82b773f8126e2ae5c459fe533608642e06045212f6374f16948e40bdeab08f0b93d3da36577ec1ed5affa73b329282868b9e5355900c7d7afbd6c8092a
-EBUILD mx44-2.ebuild 832 SHA256 53defaf25d5861f2c0c06011423617e5c2dc684d05279486c21f33a2c1ebed77 SHA512 fdeddc815f1cf3c5b65b2ee8ec10ac83248c3fa8a332a2e42e7553b0c0ef1071889ca614ab3da3e965ee77d20ba369887a75da71dfbd2be19a985519595a6792 WHIRLPOOL 27b9a6247d84ad26196dc06908ce2e22563520cfe9d1efa7959c6cc149bf5985c43b6502c3c2a9a6172f6568814b377f8bc8272b2c320cbc18e2e86393837de8
-MISC ChangeLog 614 SHA256 f005ecfdbd07efe4fe4f86803715c9733c604f13899c984300ab4bc6df7c554c SHA512 c3e5793ae91a614339eaa4d31a627fe972e67f216931939faadf68c758bab88482c05639676d10cbf3d8c1a9b12b990df6679e534d8e26ef4b298d9f215acb5f WHIRLPOOL 7488fc23aa0988a58071a7fe0a68d909a785ea49dbc08706ff3c3df92751c6c0c259c69878076bff9ff0dbb0b2053bc570252cf90f17a06e4aa02f6ddc95e693
+EBUILD mx44-2-r1.ebuild 759 SHA256 7c018fc4d291148317e9610a3a5d096bd3b2110f07f4441e4adbc9d357a08abc SHA512 0ce4a2a3a92a4cae0bc903544cd6ac641daa78a8cb17486a6520e70332c829629eb0911fc4d9268f89ac7515a974f8af5a4ac1cd050ec80d88076189398a3a63 WHIRLPOOL 73f51cf02d9eb027c09eabaa714ba997574108b9a483967407447c066423a221f7f631559dcf411bd5f9dc821305f69c289b7fb58d42f7088ce26decc1609080
+EBUILD mx44-2.ebuild 818 SHA256 9e928af55a5614485bda6157056790b05417cd6c7dc8caf3d2d1d8f527eee928 SHA512 c9a7a23120739b313e10067249f825c0a82ee406633735d3157813a7cc0ab5d8e41d14d3701872e2fc53015ff4255abc7f3c0e68e704f286413f829317db815f WHIRLPOOL 0d1316d942ad3316f8c277c6bf030675fe1853e30074f6fc2433425b05407361146bf1c1998d2ea26bb7b9df72c9cb5ecabc639796c8f967555d4d9748bc82c8
+MISC ChangeLog 883 SHA256 c9a4ab667d62e70d6cb1006a68368e295f6850f3912ac78fa3df5aab5553fba8 SHA512 c15fd141892c03f5b9f812f425eeaa1a6a22c9cfb859d372ae21d2f4d8859e4909a0d2046f183b9fa324aa964ca650146f4f64473e6e19470f74dd3db92c8cb4 WHIRLPOOL d796689535ec10a5e7d888be9de686fd3dcd6f2613b9a9527876eae2087684ddddf81e807102dd043b88d2527a4640a736bca61ceb56e5b230540d7cc66304ba
 MISC metadata.xml 246 SHA256 f32f31abe9dcc1f9a5dc9b6a36996d773abd006d92c13c4df48f8d7d1061060f SHA512 327022589c637a14219eb603a62050fbb93b980f4693960c0ac4117b6b483d9f0d9fe1366d8e18227b34373a399aef339f49c16df8ca57b9ec870568a4d394f4 WHIRLPOOL e55381a9a9fd1d0efbe87da1c3aa302efdcf4734827f56273faeb55b17361c529518fcf16ac0946102e26165e8eedba81ab0cd07c7b08ce6bad001e944e43a0f

Added: trunk/overlays/proaudio/media-sound/mx44/files/mx44-autotoolize.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/mx44/files/mx44-autotoolize.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/mx44/files/mx44-autotoolize.patch	2013-01-12 21:48:41 UTC (rev 2389)
@@ -0,0 +1,165 @@
+diff -Naur a/AUTHORS b/AUTHORS
+--- a/AUTHORS	1970-01-01 01:00:00.000000000 +0100
++++ b/AUTHORS	2013-01-12 22:22:03.479970878 +0100
+@@ -0,0 +1,5 @@
++Original author:
++Jens M Andreasen <dev.null@xxxxxxxxx>
++
++Buildsystem created by:
++Karl Lind\xE9n <lilrc@xxxxxxxxxxxxxxxxxxxxx>
+diff -Naur a/ChangeLog b/ChangeLog
+--- a/ChangeLog	1970-01-01 01:00:00.000000000 +0100
++++ b/ChangeLog	2013-01-12 22:23:38.357970345 +0100
+@@ -0,0 +1,3 @@
++  12 Jan 2013; Karl Lind\xE9n (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
++  Made the source use autotools as build system
++  Created a changelog
+diff -Naur a/Makefile.am b/Makefile.am
+--- a/Makefile.am	1970-01-01 01:00:00.000000000 +0100
++++ b/Makefile.am	2013-01-12 21:11:21.855994703 +0100
+@@ -0,0 +1 @@
++SUBDIRS = src data
+diff -Naur a/configure.ac b/configure.ac
+--- a/configure.ac	1970-01-01 01:00:00.000000000 +0100
++++ b/configure.ac	2013-01-12 21:59:25.504978505 +0100
+@@ -0,0 +1,38 @@
++#                                               -*- Autoconf -*-
++# Process this file with autoconf to produce a configure script.
++
++AC_PREREQ([2.69])
++AC_INIT([mx44], [2], [BUG-REPORT-ADDRESS])
++AC_CONFIG_SRCDIR([src/main.c])
++
++AM_INIT_AUTOMAKE
++
++# Checks for programs.
++AC_PROG_CC
++AM_PROG_CC_C_O
++AC_PROG_INSTALL
++
++m4_ifndef([PKG_PROG_PKG_CONFIG],
++    [m4_fatal([pkg-config is required to build Mx44])])
++PKG_PROG_PKG_CONFIG
++
++# Checks for libraries.
++# FIXME: Replace `main' with a function in `-lm':
++AC_CHECK_LIB([m], [main])
++
++PKG_CHECK_MODULES([alsa], [alsa])
++PKG_CHECK_MODULES([gtk], [gtk+-2.0])
++PKG_CHECK_MODULES([jack], [jack])
++
++# Checks for header files.
++AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
++
++# Checks for typedefs, structures, and compiler characteristics.
++AC_C_INLINE
++
++# Checks for library functions.
++AC_FUNC_MALLOC
++AC_CHECK_FUNCS([atexit memset pow sqrt strdup strerror])
++
++AC_CONFIG_FILES([Makefile src/Makefile data/Makefile])
++AC_OUTPUT
+diff -Naur a/data/Makefile.am b/data/Makefile.am
+--- a/data/Makefile.am	1970-01-01 01:00:00.000000000 +0100
++++ b/data/Makefile.am	2013-01-12 22:06:50.640976005 +0100
+@@ -0,0 +1,2 @@
++stuffdir = ${datadir}/mx44
++stuff_DATA = mx44patch gtk-2.0/gtkrc
+diff -Naur a/src/Makefile b/src/Makefile
+--- a/src/Makefile	2013-01-12 12:38:37.786965888 +0100
++++ b/src/Makefile	1970-01-01 01:00:00.000000000 +0100
+@@ -1,82 +0,0 @@
+-.SUFFIXES: .c $(SUFFIXES)
+-
+-TARGET		= mx44
+-
+-PREFIX		= /usr/local/
+-
+-DATADIR		= $(PREFIX)share/Mx44/
+-BINDIR		= $(PREFIX)bin/
+-
+-DIR		= Mx44.2
+-
+-CC		= gcc
+-
+-GTK_CFLAGS = `pkg-config --cflags gtk+-2.0` #-DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
+-GTK_LIBS   = `pkg-config --libs gtk+-2.0`
+-
+-ALSA_CFLAGS = `pkg-config --cflags alsa`
+-ALSA_LIBS   = `pkg-config --libs alsa`
+-
+-JACK_CFLAGS = `pkg-config --cflags jack`
+-JACK_LIBS   = `pkg-config --libs jack`
+-
+-
+-LIBS		= $(GTK_LIBS) $(ALSA_LIBS) $(JACK_LIBS) -lm 
+-
+-FLAGS		= -O3 -Wall -pipe -mmmx -fomit-frame-pointer -D_REENTRANT \
+-		   -DDATADIR=\"$(DATADIR)\" \
+-		   $(GTK_CFLAGS) $(ALSA_CFLAGS) $(JACK_CFLAGS) 
+-
+-SRCS            =  interface2.c mx44.c stateio.c cmdline_opts.c main.c
+-INCLUDE         =  mx44.h
+-
+-OBJS		= $(SRCS:.c=.o)
+-
+-
+-
+-
+-$(TARGET):	$(OBJS)
+-	$(CC) -D_REENTRANT -o $@ $(OBJS) $(LIBS)
+-
+-.c.o: 
+-	$(CC) -c $(FLAGS) $<
+-
+-install: $(TARGET)
+-	install $(TARGET) $(BINDIR)
+-	install -d $(DATADIR)
+-	install -t $(DATADIR) ../data/mx44patch
+-	install -t $(DATADIR) ../data/gtk-2.0/gtkrc
+-
+-clean:
+-	rm -f $(TARGET) $(OBJS) core core.* *.bak *~
+-
+-depend:
+-	makedepend  -Y  $(SRCS)  &>/dev/null
+-
+-edit:
+-	exec emacs -font 9x15 $(INCLUDE) $(SRCS) Makefile&
+-
+-etag:
+-	rm TAGS;etags --members  $(SRCS) $(INCLUDE)    
+-
+-
+-tar:
+-	cd ../..; 			\
+-	rm -f $(DIR).tar.gz ; 		\
+-	tar -cf $(DIR).tar 		\
+-		$(DIR)/src/*.c 		\
+-		$(DIR)/src/*.h 		\
+-		$(DIR)/README 		\
+-		$(DIR)/src/Makefile 	\
+-		$(DIR)/COPYING 		\
+-		$(DIR)/data/mx44patch 	\
+-		$(DIR)/data/gtk-2.0/gtkrc ;\
+-	gzip $(DIR).tar
+-
+-# DO NOT DELETE
+-
+-interface2.o: mx44.h mmx.h
+-mx44.o: mx44.h mmx.h interface2.h cmdline_opts.h
+-stateio.o: stateio.h mx44.h mmx.h
+-cmdline_opts.o: cmdline_opts.h
+-main.o: mx44.h mmx.h interface2.h stateio.h cmdline_opts.h
+diff -Naur a/src/Makefile.am b/src/Makefile.am
+--- a/src/Makefile.am	1970-01-01 01:00:00.000000000 +0100
++++ b/src/Makefile.am	2013-01-12 21:59:21.480978528 +0100
+@@ -0,0 +1,6 @@
++
++bin_PROGRAMS = mx44
++
++mx44_SOURCES = interface2.c mx44.c stateio.c cmdline_opts.c main.c
++mx44_CFLAGS = $(alsa_CFLAGS) $(gtk_CFLAGS) $(jack_CFLAGS) $(CLFAGS) -DDATADIR='"$(datadir)/mx44"'
++mx44_LDADD = $(alsa_LIBS) $(gtk_LIBS) $(jack_LIBS)

Added: trunk/overlays/proaudio/media-sound/mx44/mx44-2-r1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/mx44/mx44-2-r1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/mx44/mx44-2-r1.ebuild	2013-01-12 21:48:41 UTC (rev 2389)
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit autotools-utils eutils versionator
+RESTRICT="mirror"
+MY_PN="${PN/m/M}"
+MY_P="${MY_PN}.$(replace_version_separator "0" "-")"
+
+DESCRIPTION="Mx44 is a polyphonic midi realtime software synthesizer"
+HOMEPAGE="http://web.comhem.se/luna/";
+SRC_URI="http://web.comhem.se/luna/${MY_P}.tar.gz";
+
+AUTOTOOLS_AUTORECONF="1"
+AUTOTOOLS_IN_SOURCE_BUILD="1"
+PATCHES=( "${FILESDIR}/${PN}-autotoolize.patch" )
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+DOCS=( "${WORKDIR}/${MY_P}/README" )
+
+IUSE=""
+DEPEND="media-sound/jack-audio-connection-kit
+		>=x11-libs/gtk+-2.0
+		media-libs/alsa-lib"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"

Modified: trunk/overlays/proaudio/media-sound/mx44/mx44-2.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/mx44/mx44-2.ebuild	2013-01-04 15:58:53 UTC (rev 2388)
+++ trunk/overlays/proaudio/media-sound/mx44/mx44-2.ebuild	2013-01-12 21:48:41 UTC (rev 2389)
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
@@ -29,7 +29,6 @@
 src_prepare() {
 	esed_check -i -e "s:PREFIX.*=.*:PREFIX = ${D}:" Makefile
 	echo 'FLAGS += $(CFLAGS)' >> Makefile
-	cat Makefile
 }
 
 src_install() {


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