From: | "Markos Chandras (hwoarang)" <hwoarang@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-plugins/gimp-lensfun/files: gimp-lensfun-0.2.2-build.patch |
Date: | Sun, 30 Sep 2012 17:47:26 |
Message-Id: | 20120930174706.B59DD21601@flycatcher.gentoo.org |
1 | hwoarang 12/09/30 17:47:06 |
2 | |
3 | Added: gimp-lensfun-0.2.2-build.patch |
4 | Log: |
5 | Build system fixes thanks to Julian Ospald (hasufell). Bug #436660 |
6 | |
7 | (Portage version: 2.1.11.23/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-plugins/gimp-lensfun/files/gimp-lensfun-0.2.2-build.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/gimp-lensfun/files/gimp-lensfun-0.2.2-build.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/gimp-lensfun/files/gimp-lensfun-0.2.2-build.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gimp-lensfun-0.2.2-build.patch |
16 | =================================================================== |
17 | From: Julian Ospald <hasufell@g.o> |
18 | Date: Sun Sep 30 13:22:40 UTC 2012 |
19 | Subject: build system |
20 | |
21 | respect CC, CFLAGS and LDFLAGS |
22 | https://bugs.gentoo.org/show_bug.cgi?id=436660 |
23 | |
24 | --- Makefile |
25 | +++ Makefile |
26 | @@ -1,8 +1,9 @@ |
27 | -CFLAGS = -O3 -Wall $(shell gimptool-2.0 --cflags && pkg-config --cflags lensfun exiv2) -fopenmp |
28 | +CXXFLAGS ?= -O3 |
29 | +CXXFLAGS += -Wall $(shell gimptool-2.0 --cflags && pkg-config --cflags lensfun exiv2) -fopenmp |
30 | LIBS = $(shell gimptool-2.0 --libs && pkg-config --libs lensfun exiv2) |
31 | PLUGIN = gimplensfun |
32 | SOURCES = src/gimplensfun.c |
33 | -CC = g++ |
34 | +CXX ?= g++ |
35 | # END CONFIG ################################################################## |
36 | |
37 | .PHONY: all install userinstall clean uninstall useruninstall |
38 | @@ -12,10 +13,10 @@ |
39 | OBJECTS = $(subst .c,.o,$(SOURCES)) |
40 | |
41 | $(PLUGIN): $(OBJECTS) |
42 | - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) |
43 | + $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) |
44 | |
45 | %.o: %.c $(HEADERS) |
46 | - $(CC) $(CFLAGS) -c -o $@ $*.c |
47 | + $(CXX) $(CXXFLAGS) -c -o $@ $*.c |
48 | |
49 | install: $(PLUGIN) |
50 | @gimptool-2.0 --install-admin-bin $^ |