Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/dbview/Makefile,v retrieving revision 1.10 diff -u -r1.10 Makefile --- Makefile 2003/02/20 17:00:11 1.10 +++ Makefile 2003/04/28 23:16:46 @@ -5,35 +5,33 @@ # $FreeBSD: ports/databases/dbview/Makefile,v 1.10 2003/02/20 17:00:11 knu Exp $ # -PORTNAME= dbview -PORTVERSION= 1.0.3 -CATEGORIES= databases -MASTER_SITES= ${MASTER_SITE_SUNSITE} \ - ftp://ftp.infodrom.north.de/pub/Linux/Devel/dbview/ +PORTNAME= dbview +PORTVERSION= 1.0.3 +CATEGORIES= databases +MASTER_SITES= ${MASTER_SITE_SUNSITE} \ + ftp://ftp.infodrom.north.de/pub/Linux/Devel/dbview/ MASTER_SITE_SUBDIR= apps/database/proprietary -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= View dBase III files -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +USE_REINPLACE= yes +USE_GETOPT_LONG= yes -MAN1= dbview.1 +MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -USE_REINPLACE= yes +MAN1= dbview.1 +DOCS= README dBASE pre-patch: - @${REINPLACE_CMD} -e 's,,,' \ - ${WRKSRC}/db_dump.c + @${REINPLACE_CMD} -e 's,,,' ${WRKSRC}/db_dump.c do-install: - @ ${INSTALL_PROGRAM} ${WRKSRC}/dbview ${PREFIX}/bin - @ ${INSTALL_MAN} ${WRKSRC}/dbview.1 ${PREFIX}/man/man1 - -post-install: + @${INSTALL_PROGRAM} ${WRKSRC}/dbview ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/dbview.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/dBASE ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif .include Index: files/patch-aa =================================================================== RCS file: /home/ncvs/ports/databases/dbview/files/patch-aa,v retrieving revision 1.3 diff -u -r1.3 patch-aa --- files/patch-aa 2002/10/20 21:23:01 1.3 +++ files/patch-aa 2003/04/28 23:16:46 @@ -1,37 +1,31 @@ ---- Makefile.orig Thu Sep 26 13:05:30 1996 -+++ Makefile Sun Oct 20 14:24:16 2002 -@@ -18,8 +18,8 @@ +--- Makefile.orig Fri Sep 27 00:05:30 1996 ++++ Makefile Tue Apr 29 02:41:08 2003 +@@ -18,8 +18,6 @@ MAN=man -CC= gcc -CFLAGS= -O6 -fomit-frame-pointer -Wall -pipe -+#CC= gcc -+#CFLAGS= -O6 -fomit-frame-pointer -Wall -pipe # CFLAGS= -g -fomit-frame-pointer -Wall -pipe # Look where your install program is -@@ -32,15 +32,15 @@ +@@ -32,12 +30,12 @@ obj = db_dump.o dbview.o version.o .c.o: - $(CC) ${CFLAGS} -c $*.c -+ $(CC) ${CFLAGS} -I$(LOCALBASE)/include -c $*.c ++ $(CC) ${CFLAGS} $(CPPFLAGS) -c $*.c all: dbview dbview: $(obj) - $(CC) $(CFLAGS) -o dbview $(obj) -+ $(CC) $(CFLAGS) -o dbview $(obj) -L$(LOCALBASE)/lib -lgnugetopt ++ $(CC) $(CFLAGS) $(LDFLAGS) -o dbview $(obj) depend: -- makedepend *.c -+ makedepend -I$(LOCALBASE)/include *.c + makedepend *.c +@@ -56,13 +54,3 @@ - install: all - $(INSTALL) -d -o root -g root -m 755 $(bindir) -@@ -56,13 +56,13 @@ - # DO NOT DELETE -db_dump.o: db_dump.h /usr/include/fcntl.h /usr/include/features.h @@ -44,13 +38,3 @@ -db_dump.o: /usr/include/confname.h /usr/include/malloc.h -dbview.o: version.h db_dump.h /usr/include/stdio.h /usr/include/libio.h -dbview.o: /usr/include/_G_config.h /usr/include/getopt.h -+db_dump.o: db_dump.h /usr/include/fcntl.h /usr/include/sys/types.h -+db_dump.o: /usr/include/sys/cdefs.h /usr/include/inttypes.h -+db_dump.o: /usr/include/machine/endian.h /usr/include/sys/stat.h -+db_dump.o: /usr/include/sys/time.h /usr/include/time.h -+db_dump.o: /usr/include/stdio.h -+db_dump.o: /usr/include/unistd.h /usr/include/sys/unistd.h -+db_dump.o: /usr/include/stdlib.h /usr/include/stdlib.h /usr/include/ctype.h -+db_dump.o: /usr/include/runetype.h /usr/include/string.h -+dbview.o: version.h db_dump.h /usr/include/stdio.h /usr/include/sys/cdefs.h -+dbview.o: /usr/local/include/getopt.h