From 461a0d7bc6ea23ecc3e05b26de7cfb34541d1715 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Mon, 27 May 2013 09:03:02 +0000 Subject: - Update MASTER_SITES. - Add option for GTK2 support. - Add LICENSE. PR: ports/174185 Submitted by: KATO Tsuguru --- audio/autozen/files/patch-Makefile | 53 ------------------------------------- audio/autozen/files/patch-autozen.c | 41 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 53 deletions(-) delete mode 100644 audio/autozen/files/patch-Makefile (limited to 'audio/autozen/files') diff --git a/audio/autozen/files/patch-Makefile b/audio/autozen/files/patch-Makefile deleted file mode 100644 index 47e2cf0e4b0f..000000000000 --- a/audio/autozen/files/patch-Makefile +++ /dev/null @@ -1,53 +0,0 @@ ---- Makefile.orig Sun Sep 16 20:10:02 2001 -+++ Makefile Sun Jul 30 15:38:35 2006 -@@ -1,10 +1,10 @@ - --CC = gcc --CFLAGS = -g -+#CC = gcc -+#CFLAGS = -g - #CFLAGS = -g -DDEBUG - --PREFIX = /usr --PUBLIC_SEQUENCES = $(PREFIX)/share/AutoZen -+PREFIX = ${LOCALBASE} -+PUBLIC_SEQUENCES = $(PREFIX)/share/autozen - - # uncomment one of the OS= lines below if you're compiling on one of those OSen. - #OS= -D__FreeBSD__ -@@ -19,7 +19,7 @@ - strip autozen seq2wav - - autozen: autozen.c *.xpm -- $(CC) $(OS) -D_REENTRANT -DPUBLIC_SEQUENCES='"$(PUBLIC_SEQUENCES)"' $(CFLAGS) `gtk-config --cflags` `gtk-config --libs` -pthread autozen.c -o autozen $(DEBUG_LIBS) -+ $(CC) $(OS) -D_REENTRANT -DPUBLIC_SEQUENCES='"$(PUBLIC_SEQUENCES)"' $(CFLAGS) `gtk-config --cflags` `gtk-config --libs` ${PTHREAD_FLAGS} autozen.c -o autozen $(DEBUG_LIBS) - - seq2wav: seq2wav.c - $(CC) seq2wav.c -o seq2wav -lm -@@ -27,17 +27,15 @@ - rm -f autozen seq2wav - - install: all -- install -d $(PREFIX)/bin -- install zentime $(PREFIX)/bin -- install -s seq2wav $(PREFIX)/bin -- install -s autozen $(PREFIX)/bin -- install -d $(PREFIX)/share/AutoZen -- install -m 644 *.seq $(PREFIX)/share/AutoZen -- install -d $(PREFIX)/share/doc/AutoZen/HTML/images -- install -m 644 doc/HTML/*.html $(PREFIX)/share/doc/AutoZen/HTML -- install -m 644 doc/HTML/images/* $(PREFIX)/share/doc/AutoZen/HTML/images -- install -d $(PREFIX)/man/man1 -- install -m 644 doc/autozen.1 $(PREFIX)/man/man1 -+ ${BSD_INSTALL_SCRIPT} zentime ${PREFIX}/bin -+ ${BSD_INSTALL_PROGRAM} seq2wav ${PREFIX}/bin -+ ${BSD_INSTALL_PROGRAM} autozen ${PREFIX}/bin -+ ${MKDIR} ${DATADIR} -+ ${BSD_INSTALL_DATA} *.seq ${DATADIR} -+#%%DOCS%% ${MKDIR} ${DOCSDIR}/images -+#%%DOCS%% ${BSD_INSTALL_DATA} doc/HTML/*.html ${DOCSDIR} -+#%%DOCS%% ${BSD_INSTALL_DATA} doc/HTML/images/* ${DOCSDIR}/images -+ ${BSD_INSTALL_MAN} doc/autozen.1 ${PREFIX}/man/man1 - - tags: *.[ch] *.xpm - ctags *.[ch] *.xpm diff --git a/audio/autozen/files/patch-autozen.c b/audio/autozen/files/patch-autozen.c index e6d680599fc6..e0b581671658 100644 --- a/audio/autozen/files/patch-autozen.c +++ b/audio/autozen/files/patch-autozen.c @@ -36,3 +36,44 @@ } gint volTimeOut(gpointer data) { +@@ -729,6 +729,11 @@ + GtkWidget *help_text; + GtkWidget *HelpQuit; + ++#if GTK_MAJOR_VERSION >= 2 ++ GtkTextIter help_text_iter; ++ GtkTextBuffer *help_text_buf; ++#endif ++ + HelpWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); + gtk_object_set_data (GTK_OBJECT (HelpWindow), "HelpWindow", HelpWindow); + gtk_window_set_title (GTK_WINDOW (HelpWindow), "AutoZen Help"); +@@ -740,9 +745,16 @@ + gtk_widget_show (vbox1); + gtk_container_add (GTK_CONTAINER (HelpWindow), vbox1); + ++#if GTK_MAJOR_VERSION >= 2 ++ help_text = gtk_text_view_new (); ++ help_text_buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (help_text)); ++ gtk_text_buffer_get_iter_at_offset (help_text_buf, &help_text_iter, 0); ++ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW (help_text), GTK_WRAP_WORD); ++#else + help_text = gtk_text_new (NULL, NULL); + gtk_text_set_word_wrap( GTK_TEXT( help_text ), TRUE); + gtk_text_set_line_wrap( GTK_TEXT( help_text ), TRUE); ++#endif + + + gtk_object_set_data (GTK_OBJECT (HelpWindow), "help_text", help_text); +@@ -751,7 +763,11 @@ + // gtk_widget_set_sensitive (help_text, FALSE); + GTK_WIDGET_UNSET_FLAGS (help_text, GTK_CAN_FOCUS); + gtk_widget_realize (help_text); ++#if GTK_MAJOR_VERSION >= 2 ++ gtk_text_buffer_insert (help_text_buf, &help_text_iter, text, strlen(text)); ++#else + gtk_text_insert (GTK_TEXT (help_text), NULL, NULL, NULL, text, strlen(text)); ++#endif + + HelpQuit = gtk_button_new_with_label ("Close"); + gtk_object_set_data (GTK_OBJECT (HelpWindow), "HelpQuit", HelpQuit); -- cgit v1.2.3