1 |
commit: 6937ae9b710432434202a8fb9ed932512e2980a1 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 24 13:28:59 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 24 13:29:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6937ae9b |
7 |
|
8 |
sci-geosciences/gpscorrelate: respect CC/CXX and fix compile with clang |
9 |
|
10 |
Closes: https://bugs.gentoo.org/833990 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
13 |
|
14 |
.../gpscorrelate-2.0-respect-users-flags.patch | 30 ++++++++++++++++++++++ |
15 |
.../gpscorrelate/gpscorrelate-2.0.ebuild | 8 +++--- |
16 |
2 files changed, 34 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/sci-geosciences/gpscorrelate/files/gpscorrelate-2.0-respect-users-flags.patch b/sci-geosciences/gpscorrelate/files/gpscorrelate-2.0-respect-users-flags.patch |
19 |
new file mode 100644 |
20 |
index 000000000000..31519848a7a2 |
21 |
--- /dev/null |
22 |
+++ b/sci-geosciences/gpscorrelate/files/gpscorrelate-2.0-respect-users-flags.patch |
23 |
@@ -0,0 +1,30 @@ |
24 |
+diff --git a/Makefile b/Makefile |
25 |
+index 7634553..9bfd025 100644 |
26 |
+--- a/Makefile |
27 |
++++ b/Makefile |
28 |
+@@ -2,12 +2,12 @@ |
29 |
+ |
30 |
+ PACKAGE_VERSION = 2.0 |
31 |
+ |
32 |
+-CC = gcc |
33 |
+-CXX = g++ |
34 |
++CC ?= gcc |
35 |
++CXX ?= g++ |
36 |
+ EXEEXT = |
37 |
+-PKG_CONFIG=pkg-config |
38 |
+-CFLAGS = -Wall -O2 |
39 |
+-LDFLAGS = -Wall -O2 -lm |
40 |
++PKG_CONFIG?=pkg-config |
41 |
++CFLAGS ?= -Wall -O2 |
42 |
++LDFLAGS ?= -Wall -O2 |
43 |
+ GTK = 3 |
44 |
+ |
45 |
+ COBJS = main-command.o unixtime.o gpx-read.o correlate.o exif-gps.o latlong.o |
46 |
+@@ -20,6 +20,7 @@ CFLAGSINC = `$(PKG_CONFIG) --cflags libxml-2.0 exiv2` |
47 |
+ GTKFLAGS = `$(PKG_CONFIG) --cflags gtk+-$(GTK).0` |
48 |
+ LIBS = `$(PKG_CONFIG) --libs libxml-2.0 exiv2` |
49 |
+ LIBSGUI = `$(PKG_CONFIG) --libs gtk+-$(GTK).0` |
50 |
++LIBS += -lm -lstdc++ |
51 |
+ |
52 |
+ CFLAGSINC += $(GTKFLAGS) |
53 |
+ |
54 |
|
55 |
diff --git a/sci-geosciences/gpscorrelate/gpscorrelate-2.0.ebuild b/sci-geosciences/gpscorrelate/gpscorrelate-2.0.ebuild |
56 |
index 0d45dcd66a4c..982684d854bb 100644 |
57 |
--- a/sci-geosciences/gpscorrelate/gpscorrelate-2.0.ebuild |
58 |
+++ b/sci-geosciences/gpscorrelate/gpscorrelate-2.0.ebuild |
59 |
@@ -3,7 +3,7 @@ |
60 |
|
61 |
EAPI=8 |
62 |
|
63 |
-inherit desktop toolchain-funcs |
64 |
+inherit desktop |
65 |
|
66 |
DESCRIPTION="Tool for adjusting EXIF tags of your photos with a recorded GPS trace" |
67 |
HOMEPAGE="https://dfandrich.github.io/gpscorrelate/" |
68 |
@@ -28,12 +28,12 @@ RDEPEND="${DEPEND}" |
69 |
|
70 |
PATCHES=( |
71 |
"${FILESDIR}/${P}-desktop-pass-validation.patch" |
72 |
+ "${FILESDIR}/${P}-respect-users-flags.patch" |
73 |
) |
74 |
|
75 |
src_compile() { |
76 |
- tc-export CC CXX PKG_CONFIG |
77 |
- emake gpscorrelate CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" |
78 |
- use gtk && emake gpscorrelate-gui CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" |
79 |
+ emake gpscorrelate |
80 |
+ use gtk && emake gpscorrelate-gui |
81 |
|
82 |
} |