summaryrefslogtreecommitdiff
path: root/converters/gbase/patches
diff options
context:
space:
mode:
authorrodent <rodent>2013-04-17 01:19:03 +0000
committerrodent <rodent>2013-04-17 01:19:03 +0000
commitf7a7b36ebc860f193a6ebac212005e42e0cf3bf9 (patch)
tree1b29cb24241f6ce602add19c7377dc82c5f39e6a /converters/gbase/patches
parent47ec677c576dd7b37003a878975c2ad7165c2a5e (diff)
downloadpkgsrc-f7a7b36ebc860f193a6ebac212005e42e0cf3bf9.tar.gz
Import gbase-0.5 as converters/gbase.
GBase is a GTK program designed to convert between the four common bases used in programming (decimal, hexadecimal, octal and binary). It converts numbers on-the-fly as they are typed in. It can also convert numbers entered on the command line. It can correctly handle both signed and unsigned 32-bit integers.
Diffstat (limited to 'converters/gbase/patches')
-rw-r--r--converters/gbase/patches/patch-Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/converters/gbase/patches/patch-Makefile b/converters/gbase/patches/patch-Makefile
new file mode 100644
index 00000000000..6bd80282c71
--- /dev/null
+++ b/converters/gbase/patches/patch-Makefile
@@ -0,0 +1,26 @@
+$NetBSD: patch-Makefile,v 1.1 2013/04/17 01:19:03 rodent Exp $
+
+Fix gtk2 detection.
+
+--- Makefile.orig 1999-10-27 21:23:51.000000000 +0000
++++ Makefile
+@@ -1,6 +1,6 @@
+ CC = gcc
+-CCFLAGS = `gtk-config --cflags`
+-LDFLAGS = `gtk-config --libs`
++CFLAGS += `pkg-config --cflags gtk+-2.0`
++LDFLAGS = `pkg-config --libs gtk+-2.0`
+
+ gbase: gbase.o
+ $(CC) gbase.o $(LDFLAGS) -o gbase
+@@ -8,8 +8,4 @@ gbase: gbase.o
+ clean:
+ rm -f gbase gbase.o gbase.c~
+
+-# Make object files:
+-%.o:
+- $(CC) $(CCFLAGS) -c $*.c
+-
+-gbase.o: gbase.c
+\ No newline at end of file
++gbase.o: gbase.c