aboutsummaryrefslogtreecommitdiffstats
path: root/packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch')
-rw-r--r--packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch b/packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch
index e69de29bb2..b8c6d1a960 100644
--- a/packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch
+++ b/packages/gpe-calculator/gpe-calculator-0.2/fix_makefile.patch
@@ -0,0 +1,47 @@
+diff -urNd ../gpe-calculator-0.2-r0/gpe-calculator-0.2/Makefile gpe-calculator-0.2/Makefile
+--- ../gpe-calculator-0.2-r0/gpe-calculator-0.2/Makefile 2004-08-03 04:24:09.000000000 +0100
++++ gpe-calculator-0.2/Makefile 2004-08-03 13:12:48.000000000 +0100
+@@ -9,17 +9,17 @@
+ GTKCFLAGS = `pkg-config --cflags gtk+-2.0` -DGTK_ENABLE_BROKEN
+ GTKLDFLAGS += `pkg-config --libs gtk+-2.0`
+
+-CPPFLAGS = -D_GNU_SOURCE
++PACKAGE_CPPFLAGS = -D_GNU_SOURCE
+ ifeq ($(DEBUG),yes)
+-CFLAGS += -O2 -g
+-LDFLAGS = -g #-lefence
++PACKAGE_CFLAGS += -O2 -g
++PACKAGE_LDFLAGS = -g #-lefence
+ else
+-CFLAGS += -Os -fomit-frame-pointer
++PACKAGE_CFLAGS += -Os -fomit-frame-pointer
+ endif
+-CFLAGS += -Wall $(GTKCFLAGS)
+-LDFLAGS += $(GTKLDFLAGS)
+-CPPFLAGS += -DPACKAGE=\"$(PACKAGE)\" -DPREFIX=\"$(PREFIX)\" -DPACKAGE_LOCALE_DIR=\"$(PREFIX)/share/locale\" -DPACKAGE_DATA_DIR=\"$(PREFIX)/share\"
+-CFLAGS += -MD
++PACKAGE_CFLAGS += -Wall $(GTKCFLAGS)
++PACKAGE_LDFLAGS += $(GTKLDFLAGS)
++PACKAGE_CPPFLAGS += -DPACKAGE=\"$(PACKAGE)\" -DPREFIX=\"$(PREFIX)\" -DPACKAGE_LOCALE_DIR=\"$(PREFIX)/share/locale\" -DPACKAGE_DATA_DIR=\"$(PREFIX)/share\"
++PACKAGE_CFLAGS += -MD
+
+ .SUFFIXES: .d
+
+@@ -36,14 +36,15 @@
+ all: $(PACKAGE)
+
+ $(PACKAGE): $(OBJS)
+- $(CC) -o $@ $^ $(LDFLAGS)
++ $(CC) -o $@ $^ $(LDFLAGS) $(PACKAGE_LDFLAGS)
+
+ install-program: all
+ install -D $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
+ install -D -m 644 $(PACKAGE).png $(DESTDIR)$(PREFIX)/share/pixmaps/$(PACKAGE).png
+ mkdir -p $(DESTDIR)$(PREFIX)/share/applications
+ install -m 644 $(PACKAGE).desktop $(DESTDIR)$(PREFIX)/share/applications
+- strip $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
++ mkdir -p $(DESTDIR)$(PREFIX)/bin
++ install -s $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
+
+ clean:
+ rm -f $(PACKAGE) $(OBJS) $(DEPS)