Ticket #50476: patch-girl.2.diff
File patch-girl.2.diff, 4.0 KB (added by dbevans (David B. Evans), 9 years ago) |
---|
-
Portfile
21 21 22 22 use_xz yes 23 23 24 depends_lib port:streamripper \ 24 depends_build port:pkgconfig \ 25 port:intltool \ 26 port:gtk-doc \ 27 port:gnome-common \ 28 port:autoconf \ 29 port:automake \ 30 port:yelp-tools \ 31 port:itstool 32 33 depends_lib port:desktop-file-utils \ 25 34 port:gtk2 \ 26 p ort:glib2 \35 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 27 36 port:libgnome \ 28 37 port:libgnomeui \ 29 38 port:libxml2 \ … … 31 40 port:totem \ 32 41 port:zlib 33 42 43 patchfiles patch-src-girl-gui.c.diff 44 45 # reconfigure using upstream autogen.sh for intltool 0.51 compatibility 46 47 post-patch { 48 xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} 49 } 50 51 configure.cmd ./autogen.sh 52 53 configure.args --disable-silent-rules 54 55 variant debug description {Build with debug symbols and enable debug messages} { 56 patchfiles-append patch-enable-debug.diff 57 configure.optflags -O0 -g 58 } 59 60 variant record description {Enable recording using external streamripper (broken)} { 61 depends_lib-append port:streamripper 62 configure.args-append --with-recording 63 } 64 65 post-activate { 66 system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" 67 system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" 68 } 69 34 70 livecheck.type gnome 35 36 configure.args --with-recording \37 --disable-silent-rules \38 --mandir=${prefix}/share/man -
files/autogen.sh
1 #!/bin/sh 2 # Run this to generate all the initial makefiles, etc. 3 4 srcdir=`dirname $0` 5 test -z "$srcdir" && srcdir=. 6 7 PKG_NAME="girl" 8 9 (test -f $srcdir/src/girl.c) || { 10 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" 11 echo " top-level $PKG_NAME directory" 12 exit 1 13 } 14 15 which gnome-autogen.sh || { 16 echo "You need to install gnome-common from the GNOME CVS" 17 exit 1 18 } 19 20 REQUIRED_AUTOCONF_VERSION=2.59 21 REQUIRED_AUTOMAKE_VERSION=1.15 22 REQUIRED_INTLTOOL_VERSION=0.40.0 23 REQUIRED_PKG_CONFIG_VERSION=0.16.0 24 REQUIRED_GTK_DOC_VERSION=1.9 25 USE_GNOME2_MACROS=1 . gnome-autogen.sh -
files/patch-enable-debug.diff
1 --- src/Makefile.am.orig 2016-01-31 02:54:15.000000000 -0800 2 +++ src/Makefile.am 2016-01-31 02:54:38.000000000 -0800 3 @@ -36,7 +36,7 @@ 4 girl_CFLAGS = $(GIRL_CFLAGS) \ 5 -DGIRL_DATADIR=\"$(datadir)/girl\" \ 6 -DDATADIR=\"$(datadir)\" \ 7 - -DGIRL_DEBUG=1 \ 8 + -DGIRL_DEBUG=0 \ 9 -DGIRL_CFG \ 10 -DGIRL_HELPER_PLAYER=\"$(GIRL_HELPER_PLAYER)\" \ 11 -DGIRL_HELPER_RECORD=\"$(GIRL_HELPER_RECORD)\" \ -
files/patch-src-girl-gui.c.diff
1 --- src/girl-gui.c.orig 2016-02-01 13:53:13.000000000 -0800 2 +++ src/girl-gui.c 2016-02-01 13:55:57.000000000 -0800 3 @@ -1061,7 +1061,7 @@ 4 girl->selected_streams_bitrate); 5 GIRL_DEBUG_MSG("girl->selected_streams_samplerate: %s\n", 6 girl->selected_streams_samplerate); 7 - GIRL_DEBUG_MSG("girl->selected_channels: %s\n", 8 + GIRL_DEBUG_MSG("girl->selected_channels: %0x\n", 9 girl->selected_streams_channels); 10 11 gnome_config_pop_prefix();