1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

add gbase 0.5

A program to convert between the 4 common bases used in programming

PR:		30429
Submitted by:	Patrick Li <pat@databits.net>
This commit is contained in:
Pete Fritchman 2001-09-09 01:42:22 +00:00
parent 10374f2a80
commit 0fa9379f87
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47557
7 changed files with 55 additions and 0 deletions

View File

@ -8,6 +8,7 @@
SUBDIR += dumpasn1
SUBDIR += fconv
SUBDIR += gb2jis
SUBDIR += gbase
SUBDIR += i18ntools
SUBDIR += iconv
SUBDIR += iconv-extra

21
converters/gbase/Makefile Normal file
View File

@ -0,0 +1,21 @@
# New ports collection makefile for: gbase
# Date created: Fri Sep 7 22:08:24 EDT 2001
# Whom: Patrick Li <pat@databits.net>
#
# $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 <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (gbase-0.5.tar.gz) = 924e52f7efe6b19374407c7d2a6ab020

View File

@ -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

View File

@ -0,0 +1 @@
A program to convert between the 4 common bases used in programming

View File

@ -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

View File

@ -0,0 +1 @@
bin/gbase