File: cross.patch

package info (click to toggle)
gtk-chtheme 0.3.1-6.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 240 kB
  • sloc: ansic: 903; makefile: 165; perl: 25
file content (26 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: gtk-chtheme-0.3.1/Makefile
===================================================================
--- gtk-chtheme-0.3.1.orig/Makefile
+++ gtk-chtheme-0.3.1/Makefile
@@ -1,10 +1,11 @@
 include Metadata
 
+PKG_CONFIG ?= pkg-config
 CFLAGS := $(if $(RPM_OPT_FLAGS), $(RPM_OPT_FLAGS), $(CFLAGS))
 
-LDFLAGS = $(shell pkg-config --libs gtk+-2.0)
+LDFLAGS = $(shell $(PKG_CONFIG) --libs gtk+-2.0)
 CFLAGS += -Wall
-CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED
+CFLAGS += $(shell $(PKG_CONFIG) --cflags gtk+-2.0) -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED
 CFLAGS += -DPROJNAME='"$(PROJNAME)"' -DVERSION='"$(VERSION)"'
 CPPFLAGS =
 CXXFLAGS =
@@ -38,7 +39,6 @@
 	-rm -f $(EXENAME).spec $(EXENAME).1 Makefile.bak
 
 install: all
-	strip      $(EXENAME)
 	install -d              $(DESTDIR)/$(BINDIR)
 	install -c $(EXENAME)   $(DESTDIR)/$(BINDIR)
 	install -d              $(DESTDIR)/$(MANDIR)/man1