diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-05-07 17:59:32 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-05-07 17:59:32 +0000 |
commit | 1fe2fee346339b4d5460565e9896b4d5ba2bc8ad (patch) | |
tree | 42e4ef5b20548ab282c88d1a5fef37bec90ff49b /databases/dbview | |
parent | utilize USE_GETOPT_LONG (diff) |
utilize USE_GETOPT_LONG
PR: 51530
Submitted by: Sergei Kolobov <sergei@kolobov.com>
Notes
Notes:
svn path=/head/; revision=80390
Diffstat (limited to 'databases/dbview')
-rw-r--r-- | databases/dbview/Makefile | 32 | ||||
-rw-r--r-- | databases/dbview/files/patch-aa | 32 |
2 files changed, 23 insertions, 41 deletions
diff --git a/databases/dbview/Makefile b/databases/dbview/Makefile index 63aa06faef78..dd89a2fc856e 100644 --- a/databases/dbview/Makefile +++ b/databases/dbview/Makefile @@ -5,35 +5,33 @@ # $FreeBSD$ # -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,<malloc.h>,<stdlib.h>,' \ - ${WRKSRC}/db_dump.c + @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' ${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 <bsd.port.mk> diff --git a/databases/dbview/files/patch-aa b/databases/dbview/files/patch-aa index cdb55a3d9029..80151cdeae95 100644 --- a/databases/dbview/files/patch-aa +++ b/databases/dbview/files/patch-aa @@ -1,36 +1,30 @@ ---- 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 - - install: all - $(INSTALL) -d -o root -g root -m 755 $(bindir) -@@ -56,13 +56,13 @@ + makedepend *.c +@@ -56,13 +54,3 @@ # DO NOT DELETE @@ -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 |