Index: head/databases/dbview/Makefile =================================================================== --- head/databases/dbview/Makefile (revision 427760) +++ head/databases/dbview/Makefile (revision 427761) @@ -1,27 +1,33 @@ # Created by: Andrey Zakhvatov # $FreeBSD$ PORTNAME= dbview PORTVERSION= 1.0.4 CATEGORIES= databases MASTER_SITES= SUNSITE/apps/database/proprietary MAINTAINER= ports@FreeBSD.org COMMENT= View dBase III files +LICENSE= GPLv2+ + PLIST_FILES= bin/dbview man/man1/dbview.1.gz PORTDOCS= README dBASE +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|||; \ - s|||; \ - /byteswap/d' \ - ${WRKSRC}/db_dump.c + s|||; \ + /byteswap/d' \ + ${WRKSRC}/db_dump.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/dbview ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/dbview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Index: head/databases/dbview/files/patch-version.c =================================================================== --- head/databases/dbview/files/patch-version.c (revision 427760) +++ head/databases/dbview/files/patch-version.c (nonexistent) @@ -1,11 +0,0 @@ ---- version.c.orig Fri Sep 27 00:03:57 1996 -+++ version.c Tue Jul 17 03:50:48 2001 -@@ -21,6 +21,6 @@ - - - char progname[] = "dbview"; --char longname[] = "View dBase III files"; -+char longname[] = "View dbf files"; - --char version[] = "1.0.2"; -+char version[] = "1.0.3.1"; Property changes on: head/databases/dbview/files/patch-version.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/dbview/files/patch-Makefile =================================================================== --- head/databases/dbview/files/patch-Makefile (revision 427760) +++ head/databases/dbview/files/patch-Makefile (revision 427761) @@ -1,26 +1,26 @@ ---- Makefile.orig Fri Sep 27 00:05:30 1996 -+++ Makefile Tue Apr 29 02:41:08 2003 -@@ -18,8 +18,6 @@ +--- Makefile.orig 2006-11-19 19:37:41 UTC ++++ Makefile +@@ -19,8 +19,6 @@ MAN=man -CC= gcc -CFLAGS= -O6 -fomit-frame-pointer -Wall -pipe # CFLAGS= -g -fomit-frame-pointer -Wall -pipe # Look where your install program is -@@ -32,12 +30,12 @@ +@@ -33,12 +31,12 @@ mandir = $(prefix)/share/$(MAN) obj = db_dump.o dbview.o version.o .c.o: - $(CC) ${CFLAGS} -c $*.c + $(CC) ${CFLAGS} $(CPPFLAGS) -c $*.c all: dbview dbview: $(obj) - $(CC) $(CFLAGS) -o dbview $(obj) + $(CC) $(CFLAGS) $(LDFLAGS) -o dbview $(obj) depend: makedepend *.c Index: head/databases/dbview/files/patch-db_dump.c =================================================================== --- head/databases/dbview/files/patch-db_dump.c (revision 427760) +++ head/databases/dbview/files/patch-db_dump.c (revision 427761) @@ -1,11 +1,11 @@ ---- db_dump.c.orig 2008-06-24 16:10:56.000000000 +0000 -+++ db_dump.c 2008-06-24 16:11:14.000000000 +0000 -@@ -82,6 +82,8 @@ +--- db_dump.c.orig 2006-11-27 11:51:25 UTC ++++ db_dump.c +@@ -82,6 +82,8 @@ FILE *dbfile; /*----------------------------------------------------helpers------------*/ #if BYTE_ORDER == BIG_ENDIAN +#define bswap_16 bswap16 +#define bswap_32 bswap32 size_t db3_fread (void *ptr, size_t size, size_t nmemb, FILE *stream) { Index: head/databases/dbview/pkg-descr =================================================================== --- head/databases/dbview/pkg-descr (revision 427760) +++ head/databases/dbview/pkg-descr (revision 427761) @@ -1,7 +1,9 @@ A little tool that will display dBase III files. You can also use it to convert your old .dbf files for further use with Unix. It should also work with dBase IV files, but this is mostly untested. dbview displays the contents of a dBase III or IV database file. This is done by displaying both the name of the field itself and its value. At the end of every record a newline is appended. + +WWW: http://www.infodrom.org/projects/dbview/