From 0fa9379f87e2288acb788ae1a3059cbc8ecb0886 Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Sun, 9 Sep 2001 01:42:22 +0000 Subject: [PATCH] add gbase 0.5 A program to convert between the 4 common bases used in programming PR: 30429 Submitted by: Patrick Li --- converters/Makefile | 1 + converters/gbase/Makefile | 21 +++++++++++++++++++++ converters/gbase/distinfo | 1 + converters/gbase/files/patch-Makefile | 22 ++++++++++++++++++++++ converters/gbase/pkg-comment | 1 + converters/gbase/pkg-descr | 8 ++++++++ converters/gbase/pkg-plist | 1 + 7 files changed, 55 insertions(+) create mode 100644 converters/gbase/Makefile create mode 100644 converters/gbase/distinfo create mode 100644 converters/gbase/files/patch-Makefile create mode 100644 converters/gbase/pkg-comment create mode 100644 converters/gbase/pkg-descr create mode 100644 converters/gbase/pkg-plist diff --git a/converters/Makefile b/converters/Makefile index 7b79a6413205..d3caa64e51a9 100644 --- a/converters/Makefile +++ b/converters/Makefile @@ -8,6 +8,7 @@ SUBDIR += dumpasn1 SUBDIR += fconv SUBDIR += gb2jis + SUBDIR += gbase SUBDIR += i18ntools SUBDIR += iconv SUBDIR += iconv-extra diff --git a/converters/gbase/Makefile b/converters/gbase/Makefile new file mode 100644 index 000000000000..0586b41b6fb9 --- /dev/null +++ b/converters/gbase/Makefile @@ -0,0 +1,21 @@ +# New ports collection makefile for: gbase +# Date created: Fri Sep 7 22:08:24 EDT 2001 +# Whom: Patrick Li +# +# $FreeBSD$ +# + +PORTNAME= gbase +PORTVERSION= 0.5 +CATEGORIES= converters +MASTER_SITES= http://www.hibernaculum.net/download/ + +MAINTAINER= pat@databits.net + +USE_X_PREFIX= yes +USE_GTK= yes + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/gbase ${PREFIX}/bin + +.include diff --git a/converters/gbase/distinfo b/converters/gbase/distinfo new file mode 100644 index 000000000000..6410b44f56bb --- /dev/null +++ b/converters/gbase/distinfo @@ -0,0 +1 @@ +MD5 (gbase-0.5.tar.gz) = 924e52f7efe6b19374407c7d2a6ab020 diff --git a/converters/gbase/files/patch-Makefile b/converters/gbase/files/patch-Makefile new file mode 100644 index 000000000000..fa072f196531 --- /dev/null +++ b/converters/gbase/files/patch-Makefile @@ -0,0 +1,22 @@ +--- Makefile.orig Fri Sep 7 22:10:42 2001 ++++ Makefile Fri Sep 7 22:20:26 2001 +@@ -1,6 +1,7 @@ +-CC = gcc +-CCFLAGS = `gtk-config --cflags` +-LDFLAGS = `gtk-config --libs` ++CFLAGS += `${GTK_CONFIG} --cflags` ++LDFLAGS = `${GTK_CONFIG} --libs` ++ ++all: gbase + + gbase: gbase.o + $(CC) gbase.o $(LDFLAGS) -o gbase +@@ -10,6 +11,6 @@ + + # Make object files: + %.o: +- $(CC) $(CCFLAGS) -c $*.c ++ $(CC) $(CFLAGS) -c $*.c + +-gbase.o: gbase.c ++gbase.o: gbase.c diff --git a/converters/gbase/pkg-comment b/converters/gbase/pkg-comment new file mode 100644 index 000000000000..1eef9b7d20aa --- /dev/null +++ b/converters/gbase/pkg-comment @@ -0,0 +1 @@ +A program to convert between the 4 common bases used in programming diff --git a/converters/gbase/pkg-descr b/converters/gbase/pkg-descr new file mode 100644 index 000000000000..1fce686c4125 --- /dev/null +++ b/converters/gbase/pkg-descr @@ -0,0 +1,8 @@ +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. + +License: Artistic +WWW: http://www.hibernaculum.net/gbase.html diff --git a/converters/gbase/pkg-plist b/converters/gbase/pkg-plist new file mode 100644 index 000000000000..a5b79d63c255 --- /dev/null +++ b/converters/gbase/pkg-plist @@ -0,0 +1 @@ +bin/gbase