diff options
author | rodent <rodent@pkgsrc.org> | 2013-04-17 01:19:03 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2013-04-17 01:19:03 +0000 |
commit | 5bf210a06e4e9a1676fe3baf07acfc326e8bea04 (patch) | |
tree | 1b29cb24241f6ce602add19c7377dc82c5f39e6a /converters | |
parent | 3cf18e0e7453eb7313b1cf00c8e6c28fce637206 (diff) | |
download | pkgsrc-5bf210a06e4e9a1676fe3baf07acfc326e8bea04.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')
-rw-r--r-- | converters/gbase/DESCR | 4 | ||||
-rw-r--r-- | converters/gbase/Makefile | 22 | ||||
-rw-r--r-- | converters/gbase/PLIST | 2 | ||||
-rw-r--r-- | converters/gbase/distinfo | 6 | ||||
-rw-r--r-- | converters/gbase/patches/patch-Makefile | 26 |
5 files changed, 60 insertions, 0 deletions
diff --git a/converters/gbase/DESCR b/converters/gbase/DESCR new file mode 100644 index 00000000000..b20440c4c62 --- /dev/null +++ b/converters/gbase/DESCR @@ -0,0 +1,4 @@ +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. diff --git a/converters/gbase/Makefile b/converters/gbase/Makefile new file mode 100644 index 00000000000..09d036b8a57 --- /dev/null +++ b/converters/gbase/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2013/04/17 01:19:03 rodent Exp $ + +DISTNAME= gbase-0.5 +CATEGORIES= converters math +MASTER_SITES= http://www.fluxcode.net/ + +MAINTAINER= rodent@NetBSD.org +HOMEPAGE= http://fluxcode.net/projects/gbase-2 +COMMENT= GTK program designed to convert between the four common bases +LICENSE= artistic + +USE_TOOLS+= pkg-config + +INSTALLATION_DIRS+= bin + +BUILD_TARGET= gbase + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/gbase ${DESTDIR}${PREFIX}/bin/gbase + +.include "../../x11/gtk2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/converters/gbase/PLIST b/converters/gbase/PLIST new file mode 100644 index 00000000000..4f76d203e0f --- /dev/null +++ b/converters/gbase/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2013/04/17 01:19:03 rodent Exp $ +bin/gbase diff --git a/converters/gbase/distinfo b/converters/gbase/distinfo new file mode 100644 index 00000000000..80dc702f8f6 --- /dev/null +++ b/converters/gbase/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2013/04/17 01:19:03 rodent Exp $ + +SHA1 (gbase-0.5.tar.gz) = a2884b236401bbc3adb45c281c4b399d20462d9b +RMD160 (gbase-0.5.tar.gz) = ac8031c6b30e6cadf3e5d27f30adb8b9f0cc3d58 +Size (gbase-0.5.tar.gz) = 6427 bytes +SHA1 (patch-Makefile) = 1e96c455abdc2926379fb075bbecb800ccdefb4f 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 |