summaryrefslogtreecommitdiff
path: root/devel/cproto
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2005-12-08 13:53:45 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2005-12-08 13:53:45 +0000
commitff07e4f2da1c3b7560b742b52fdd69534084d023 (patch)
tree662c19d8ae6c4d587a3ff4f2e5b04a36e484a404 /devel/cproto
parentFix build on arches other than i386. (diff)
- Update to 4.7d
- Unbreak - Remove files/patch-system.h - Use mkstemp() instead of mktemp() - Pass maintainership to submitter PR: 90102 Submitted by: Thomas Vogt <thomas@bsdunix.ch>
Notes
Notes: svn path=/head/; revision=150665
Diffstat (limited to 'devel/cproto')
-rw-r--r--devel/cproto/Makefile16
-rw-r--r--devel/cproto/distinfo5
-rw-r--r--devel/cproto/files/patch-system.h20
3 files changed, 15 insertions, 26 deletions
diff --git a/devel/cproto/Makefile b/devel/cproto/Makefile
index 415ed8de7b66..b1c5c228a895 100644
--- a/devel/cproto/Makefile
+++ b/devel/cproto/Makefile
@@ -7,21 +7,29 @@
#
PORTNAME= cproto
-PORTVERSION= 4.7c
+PORTVERSION= 4.7d
CATEGORIES= devel
MASTER_SITES= ftp://invisible-island.net/cproto/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/}
EXTRACT_SUFX= .tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= thomas@bsdunix.ch
COMMENT= Generate C function prototypes and convert function definitions
-BROKEN= Size mismatch
-
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= cproto.1
PLIST_FILES= bin/cproto
+post-patch:
+ @${REINPLACE_CMD} \
+ -e 's|\(define\ MAX_INC_DEPTH\) 15|\1 25|' \
+ -e 's|\(define MAX_TEXT_SIZE\) 256|\1 4096|' \
+ ${WRKSRC}/system.h
+ @${REINPLACE_CMD} -e 's|mktemp|mkstemp|' \
+ ${WRKSRC}/${PORTNAME}.c
+
.include <bsd.port.mk>
diff --git a/devel/cproto/distinfo b/devel/cproto/distinfo
index e16a61fa0d2f..00188ff3d81d 100644
--- a/devel/cproto/distinfo
+++ b/devel/cproto/distinfo
@@ -1,2 +1,3 @@
-MD5 (cproto-4_7c.tgz) = c7fb8586a4b402e830d1310f3aadef91
-SIZE (cproto-4_7c.tgz) = 118592
+MD5 (cproto-4_7d.tgz) = d8aa3698dcf762b9fee94c5b9f1c294d
+SHA256 (cproto-4_7d.tgz) = aa341ffd8792002747c2cd59b8392707a950ac90b10904e93d9e776a07d69c9a
+SIZE (cproto-4_7d.tgz) = 144430
diff --git a/devel/cproto/files/patch-system.h b/devel/cproto/files/patch-system.h
deleted file mode 100644
index c34099d82255..000000000000
--- a/devel/cproto/files/patch-system.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- system.h.orig Fri Jan 23 17:42:09 1998
-+++ system.h Sun Jul 23 12:04:25 2000
-@@ -122,15 +122,15 @@
- /* maximum include file nesting */
- #ifndef MAX_INC_DEPTH
--#define MAX_INC_DEPTH 15
-+#define MAX_INC_DEPTH 25
- #endif
-
- /* maximum number of include directories */
- #ifndef MAX_INC_DIR
--#define MAX_INC_DIR 15
-+#define MAX_INC_DIR 50
- #endif
-
- /* maximum text buffer size */
- #ifndef MAX_TEXT_SIZE
--#define MAX_TEXT_SIZE 256
-+#define MAX_TEXT_SIZE 4096
- #endif