From: | "Sebastien Fabbro (bicatali)" <bicatali@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-visualization/spectromatic/files: spectromatic-1.0-makefile.patch |
Date: | Wed, 26 Nov 2008 10:49:01 |
Message-Id: | E1L5Hx4-0000U8-5y@stork.gentoo.org |
1 | bicatali 08/11/26 10:48:58 |
2 | |
3 | Added: spectromatic-1.0-makefile.patch |
4 | Log: |
5 | Fix installation for man files, cleaned ebuild and propagate cflags |
6 | (Portage version: 2.2_rc15/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sci-visualization/spectromatic/files/spectromatic-1.0-makefile.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/spectromatic/files/spectromatic-1.0-makefile.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/spectromatic/files/spectromatic-1.0-makefile.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: spectromatic-1.0-makefile.patch |
15 | =================================================================== |
16 | --- spectromatic-1.0/Makefile 2002-03-30 05:17:34.000000000 +0000 |
17 | +++ spectromatic-1.0.new/Makefile 2008-11-26 10:43:15.910065276 +0000 |
18 | @@ -1,33 +1,29 @@ |
19 | # Makefile for spectromatic |
20 | |
21 | -CFLAGS = -O2 -Wall |
22 | LIBS = -lgsl -lgslcblas -lpng -lm |
23 | DESTDIR = |
24 | TOPLEVEL_HOME = /usr |
25 | |
26 | -CC = gcc -I. |
27 | - |
28 | SRC = spectromatic.c wave.c |
29 | |
30 | OBJ = $(SRC:.c=.o) |
31 | |
32 | TARGET = spectromatic |
33 | |
34 | -install: all |
35 | - mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/bin |
36 | - mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/man/man1 |
37 | - install -o root -g root -m 0755 spectromatic $(DESTDIR)$(TOPLEVEL_HOME)/bin |
38 | - install -o root -g root -m 0644 man/spectromatic.1 $(DESTDIR)$(TOPLEVEL_HOME)/man/man1 |
39 | - |
40 | all: $(OBJ) |
41 | $(CC) -o $(TARGET) $(OBJ) $(LIBS) |
42 | - strip $(TARGET) |
43 | + |
44 | +install: all |
45 | + mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/bin |
46 | + mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/share/man/man1 |
47 | + install -m 0755 spectromatic $(DESTDIR)$(TOPLEVEL_HOME)/bin |
48 | + install -m 0644 man/spectromatic.1 $(DESTDIR)$(TOPLEVEL_HOME)/share/man/man1 |
49 | |
50 | clean: |
51 | $(RM) $(TARGET) $(OBJ) |
52 | |
53 | .c.o: |
54 | - $(CC) $(CFLAGS) -c $< |
55 | + $(CC) $(CFLAGS) -I. -c $< |
56 | |
57 | .o: |
58 | $(CC) $< $(LIBS) -o $@ |