aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dparser
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-08-13 23:39:02 +0800
committerkrion <krion@FreeBSD.org>2004-08-13 23:39:02 +0800
commitb49759087066653ba64229bf99e41b3b40c13c8b (patch)
tree59ba75136e1683927cb0ad48d5d979dafdd05d63 /devel/dparser
parentf03296fb8391fdc6febda5ba2d24c53c09a39ada (diff)
downloadfreebsd-ports-gnome-b49759087066653ba64229bf99e41b3b40c13c8b.tar.gz
freebsd-ports-gnome-b49759087066653ba64229bf99e41b3b40c13c8b.tar.zst
freebsd-ports-gnome-b49759087066653ba64229bf99e41b3b40c13c8b.zip
Update to version 1.11
PR: ports/70406 Submitted by: Ports Fury
Diffstat (limited to 'devel/dparser')
-rw-r--r--devel/dparser/Makefile15
-rw-r--r--devel/dparser/distinfo4
-rw-r--r--devel/dparser/files/patch-write_tables.c26
3 files changed, 40 insertions, 5 deletions
diff --git a/devel/dparser/Makefile b/devel/dparser/Makefile
index 94c5c892f994..d06ef746f8bd 100644
--- a/devel/dparser/Makefile
+++ b/devel/dparser/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= dparser
-PORTVERSION= 1.10
+PORTVERSION= 1.11
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -24,7 +24,16 @@ MAKE_ARGS= CC="${CC}" D_OPTIMIZE=
MAN1= make_dparser.1
PORTDOCS= faq.html index.html manual.html
PLIST_FILES= bin/make_dparser include/dparse.h include/dparse_tables.h \
- include/dsymtab.h lib/libdparse.a
+ include/dsymtab.h lib/${LIBDPARSE}
+
+.if defined(WITH_GC)
+LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc
+MAKE_ARGS+= D_USE_GC=1 \
+ GC_CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
+LIBDPARSE= libdparse_gc.a
+.else
+LIBDPARSE= libdparse.a
+.endif
.include <bsd.port.pre.mk>
@@ -35,10 +44,10 @@ BROKEN= "Does not compile on !i386"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/make_dparser ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/make_dparser.1 ${MANPREFIX}/man/man1
- ${INSTALL_DATA} ${WRKSRC}/libdparse.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/dparse.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/dparse_tables.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/dsymtab.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/${LIBDPARSE} ${PREFIX}/lib
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
diff --git a/devel/dparser/distinfo b/devel/dparser/distinfo
index 7bc1e673fab6..adc521ccc554 100644
--- a/devel/dparser/distinfo
+++ b/devel/dparser/distinfo
@@ -1,2 +1,2 @@
-MD5 (d-1.10-src.tar.gz) = eb7fd35268d0080ba80d791c5172d629
-SIZE (d-1.10-src.tar.gz) = 196141
+MD5 (d-1.11-src.tar.gz) = 4443debf8c778e66203130617a251831
+SIZE (d-1.11-src.tar.gz) = 198263
diff --git a/devel/dparser/files/patch-write_tables.c b/devel/dparser/files/patch-write_tables.c
new file mode 100644
index 000000000000..17e456134f54
--- /dev/null
+++ b/devel/dparser/files/patch-write_tables.c
@@ -0,0 +1,26 @@
+--- write_tables.c.orig Mon Aug 2 08:24:03 2004
++++ write_tables.c Wed Aug 11 09:15:44 2004
+@@ -87,6 +87,7 @@
+ save_binary_tables(File *file) {
+ int i;
+ BinaryTablesHead tables;
++ unsigned int len;
+
+ tables.n_relocs = file->relocations.n;
+ tables.n_strings = file->str_relocations.n;
+@@ -94,13 +95,13 @@
+ tables.tables_size = file->tables.cur - file->tables.start;
+ tables.strings_size = file->strings.cur - file->strings.start;
+
+- unsigned int len = sizeof(BinaryTablesHead) +
++ len = sizeof(BinaryTablesHead) +
+ tables.tables_size + tables.strings_size +
+ (file->relocations.n * sizeof(void*)) +
+ (file->str_relocations.n * sizeof(void*));
+
+ if (file->str) {
+- file->cur_str = *file->str = (unsigned char*)malloc(len);
++ file->cur_str = *file->str = (unsigned char*)MALLOC(len);
+ *file->str_len = len;
+ }
+