public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-alcd/files: vdr-alcd-1.5.1-gcc-4.4.diff vdr-alcd-1.5.1-makefile-cleanup.diff
@ 2009-06-14  8:44 Matthias Schwarzott (zzam)
  0 siblings, 0 replies; only message in thread
From: Matthias Schwarzott (zzam) @ 2009-06-14  8:44 UTC (permalink / raw
  To: gentoo-commits

zzam        09/06/14 08:44:12

  Added:                vdr-alcd-1.5.1-gcc-4.4.diff
                        vdr-alcd-1.5.1-makefile-cleanup.diff
  Log:
  Version bumped. Added upstream Helmut Auer to maintainers.
  (Portage version: 2.1.6.13/cvs/Linux i686)

Revision  Changes    Path
1.1                  media-plugins/vdr-alcd/files/vdr-alcd-1.5.1-gcc-4.4.diff

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-alcd/files/vdr-alcd-1.5.1-gcc-4.4.diff?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-alcd/files/vdr-alcd-1.5.1-gcc-4.4.diff?rev=1.1&content-type=text/plain

Index: vdr-alcd-1.5.1-gcc-4.4.diff
===================================================================
Index: alcd-1.5.1/thread.c
===================================================================
--- alcd-1.5.1.orig/thread.c
+++ alcd-1.5.1/thread.c
@@ -104,7 +104,7 @@ void cLCD::SetText( const char *szText )
    // only proceed, if valid data
    if( szText != NULL && strlen( szText ) > 0 ) {
       // set channel name
-      char *delim = strchr( szText, '|' );
+      const char *delim = strchr( szText, '|' );
       if( delim ) {
          char buffer[ BUFSIZE ];
          int sLen = ( delim - szText ) >= BUFSIZE ? BUFSIZE : ( delim - szText );
@@ -420,7 +420,7 @@ void cLCD::Replaying( const cControl *co
                if( szFileName[i] == ')' )
                   strncpy( (char *)szReplayMode, szFileName + 8, i - 8 );
             }
-            char *p = strstr( szFileName + i, " : " );
+            const char *p = strstr( szFileName + i, " : " );
             if( p )
                strncpy( szTemp, p + 3, sizeof(szTemp ));
             else



1.1                  media-plugins/vdr-alcd/files/vdr-alcd-1.5.1-makefile-cleanup.diff

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-alcd/files/vdr-alcd-1.5.1-makefile-cleanup.diff?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-alcd/files/vdr-alcd-1.5.1-makefile-cleanup.diff?rev=1.1&content-type=text/plain

Index: vdr-alcd-1.5.1-makefile-cleanup.diff
===================================================================
Index: alcd-1.5.1/Makefile
===================================================================
--- alcd-1.5.1.orig/Makefile
+++ alcd-1.5.1/Makefile
@@ -23,8 +23,8 @@ VDRINC = $(VDRDIR)/include
 LIBDIR = ../../lib
 TMPDIR = /tmp
 
-CXX      = g++
-CXXFLAGS = -O2 -Wall -Woverloaded-virtual -D_GNU_SOURCE
+CXX      ?= g++
+CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual
 
 -include $(VDRDIR)/Make.config
 
@@ -41,6 +41,8 @@ PACKAGE = vdr-$(ARCHIVE)
 
 INCLUDES = -I$(VDRDIR)/include
 
+DEFINES += -D_GNU_SOURCE
+
 ### Allow user defined options to overwrite defaults:
 
 DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
@@ -53,6 +55,10 @@ endif
 
 OBJS = $(PLUGIN).o lcd.o thread.o setup.o
 
+### The main target:
+
+all: libvdr-$(PLUGIN).so i18n
+
 ### Target directory for afp-tool binary
 
 PREFIX = /usr
@@ -100,8 +106,6 @@ i18n: $(I18Nmsgs)
 
 ### Targets:
 
-all: libvdr-$(PLUGIN).so i18n
-
 libvdr-$(PLUGIN).so: $(OBJS)
 	$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
 	@cp $@ $(LIBDIR)/$@.$(APIVERSION)






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-14  8:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-14  8:44 [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-alcd/files: vdr-alcd-1.5.1-gcc-4.4.diff vdr-alcd-1.5.1-makefile-cleanup.diff Matthias Schwarzott (zzam)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox