aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-05-15 22:26:22 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-05-15 22:26:22 +0800
commita0d5182d47e7037e97182cd9e0c7c050d4e3e914 (patch)
treeac2367a9ca985cfd31720fb49607f1dae3c888a8
parentcee9ec5c6a8ed5c985f116cf9a9b1ee4d6d341d8 (diff)
downloadfreebsd-ports-graphics-a0d5182d47e7037e97182cd9e0c7c050d4e3e914.tar.gz
freebsd-ports-graphics-a0d5182d47e7037e97182cd9e0c7c050d4e3e914.tar.zst
freebsd-ports-graphics-a0d5182d47e7037e97182cd9e0c7c050d4e3e914.zip
Fix building under -current
PR: 37944 Submitted by: obraun@informatik.unibw-muenchen.de
-rw-r--r--databases/dbview/Makefile5
-rw-r--r--databases/dbview/files/patch-aa4
2 files changed, 7 insertions, 2 deletions
diff --git a/databases/dbview/Makefile b/databases/dbview/Makefile
index abc4748b215..31eeb8e6b98 100644
--- a/databases/dbview/Makefile
+++ b/databases/dbview/Makefile
@@ -18,6 +18,11 @@ LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
MAN1= dbview.1
+
+pre-patch:
+ @${PERL} -pi -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
diff --git a/databases/dbview/files/patch-aa b/databases/dbview/files/patch-aa
index 5687d78e79d..d41f6f4d751 100644
--- a/databases/dbview/files/patch-aa
+++ b/databases/dbview/files/patch-aa
@@ -45,13 +45,13 @@
-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/sys/inttypes.h
++db_dump.o: /usr/include/sys/cdefs.h /usr/include/inttypes.h
+db_dump.o: /usr/include/machine/ansi.h /usr/include/machine/types.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/sys/_posix.h /usr/include/stdio.h
+db_dump.o: /usr/include/unistd.h /usr/include/sys/unistd.h
-+db_dump.o: /usr/include/malloc.h /usr/include/stdlib.h /usr/include/ctype.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/include/machine/ansi.h /usr/local/include/getopt.h