public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-biology/rnaview/files: rnaview-20040713-makefile.patch
@ 2012-08-03 15:04 Justin Lecher (jlec)
  0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2012-08-03 15:04 UTC (permalink / raw
  To: gentoo-commits

jlec        12/08/03 15:04:04

  Modified:             rnaview-20040713-makefile.patch
  Log:
  sci-biology/rnaview: Respect CFLAGS, #429536; Bump to EAPI=4
  
  (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  sci-biology/rnaview/files/rnaview-20040713-makefile.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/rnaview/files/rnaview-20040713-makefile.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/rnaview/files/rnaview-20040713-makefile.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/rnaview/files/rnaview-20040713-makefile.patch?r1=1.1&r2=1.2

Index: rnaview-20040713-makefile.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-biology/rnaview/files/rnaview-20040713-makefile.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- rnaview-20040713-makefile.patch	6 Sep 2010 12:24:45 -0000	1.1
+++ rnaview-20040713-makefile.patch	3 Aug 2012 15:04:04 -0000	1.2
@@ -1,39 +1,18 @@
-Fix install paths, respect LDFLAGS, CFLAGS
+ Makefile          |   20 +++++++++++++++++---
+ rnaml2ps/Makefile |   19 ++++++++++++-------
+ 2 files changed, 29 insertions(+), 10 deletions(-)
 
-http://bugs.gentoo.org/show_bug.cgi?id=336196
-
---- rnaml2ps/Makefile
-+++ rnaml2ps/Makefile
-@@ -5,16 +5,21 @@
- RNADRAW = rnaml2ps
- OBJS_RNADRAW = rnaml2ps.o nrutil.o 
+diff --git a/Makefile b/Makefile
+index 452e6c4..00d35f0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,4 @@
+-CC        = cc
++CC        ?= cc
  
-+all: $(RNADRAW)
-+
- $(RNADRAW):   $(OBJS_RNADRAW)
--	$(CC) -o $(RNADRAW) $(OBJS_RNADRAW) -lm
-+	$(CC) $(LDFLAGS) -o $(RNADRAW) $(OBJS_RNADRAW) -lm
  
- nrutil.o : nrutil.c 
--	cc -c  nrutil.c
-+	$(CC) $(CFLAGS) -c  nrutil.c
  
- rnaml2ps.o :  rnaml2ps.c
--	cc -c  rnaml2ps.c
-+	$(CC) $(CFLAGS) -c  rnaml2ps.c
- 
- 
--.PHONY : clean
-+.PHONY : clean all install
- clean:
--	rm *.o
-+	rm -f *.o
-+
-+install:
-+	install -D -m 0755 $(RNADRAW) $(DESTDIR)/usr/bin/$(RNADRAW)
---- Makefile
-+++ Makefile
-@@ -56,9 +56,14 @@
+@@ -56,12 +56,17 @@ OBJ_FILE = $(OBJ)/rnaview.o \
             $(OBJ)/multiple.o \
             $(OBJ)/statistics.o
  
@@ -48,8 +27,12 @@
 +CFLAGS  +=  $(LINCLUDES)
  
  $(RNAVIEW) : $(HFILES) $(OBJ_FILE) 
- 	$(CC) $(CFLAGS) -o $@ $(OBJ_FILE) $(LDFLAGS) -lm $(MALLOCLIB)
-@@ -111,6 +116,15 @@
+-	$(CC) $(CFLAGS) -o $@ $(OBJ_FILE) $(LDFLAGS) -lm $(MALLOCLIB)
++	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ_FILE) -lm $(MALLOCLIB)
+ 
+ 
+ 
+@@ -111,6 +116,15 @@ $(OBJ)/statistics.o :  $(SRC)/statistics.c
  clean:
  	@rm -f $(OBJ)/*.o
  	@rm -f $(ALLTARGETS)
@@ -65,3 +48,40 @@
  
  export:
  	mkdir -p $(EXPORT_DIR)
+diff --git a/rnaml2ps/Makefile b/rnaml2ps/Makefile
+index d207655..2278ccc 100644
+--- a/rnaml2ps/Makefile
++++ b/rnaml2ps/Makefile
+@@ -1,20 +1,25 @@
+-CFLAGS        = -O
+-CC            = cc
++CFLAGS        ?= -O
++CC            ?= cc
+ 
+ # ++++++++++++++++++++++++++++ Program RNADRAW
+ RNADRAW = rnaml2ps
+ OBJS_RNADRAW = rnaml2ps.o nrutil.o 
+ 
++all: $(RNADRAW)
++
+ $(RNADRAW):   $(OBJS_RNADRAW)
+-	$(CC) -o $(RNADRAW) $(OBJS_RNADRAW) -lm
++	$(CC) $(LDFLAGS) -o $(RNADRAW) $(OBJS_RNADRAW) -lm
+ 
+ nrutil.o : nrutil.c 
+-	cc -c  nrutil.c
++	$(CC) $(CFLAGS) -c  nrutil.c
+ 
+ rnaml2ps.o :  rnaml2ps.c
+-	cc -c  rnaml2ps.c
++	$(CC) $(CFLAGS) -c  rnaml2ps.c
+ 
+ 
+-.PHONY : clean
++.PHONY : clean all install
+ clean:
+-	rm *.o
++	rm -f *.o
++
++install:
++	install -D -m 0755 $(RNADRAW) $(DESTDIR)/usr/bin/$(RNADRAW)





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

only message in thread, other threads:[~2012-08-03 15:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-03 15:04 [gentoo-commits] gentoo-x86 commit in sci-biology/rnaview/files: rnaview-20040713-makefile.patch Justin Lecher (jlec)

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