summaryrefslogtreecommitdiffstats
path: root/devel/ossp-ex
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-25 07:54:08 +0000
committerkrion <krion@FreeBSD.org>2004-03-25 07:54:08 +0000
commit256c99b4bcdbd5d4403451e64e71553995eeaf45 (patch)
treea4daa7d3c1867889c1ecf052d03d379896ec0b4f /devel/ossp-ex
parent906a9758dcb31e56d1484d52ea7371503499b294 (diff)
downloadFreeBSD-ports-256c99b4bcdbd5d4403451e64e71553995eeaf45.zip
FreeBSD-ports-256c99b4bcdbd5d4403451e64e71553995eeaf45.tar.gz
- Fix compile error on 4-stable
- Fix compiler warning message PR: ports/64682 Submitted by: maintainer
Diffstat (limited to 'devel/ossp-ex')
-rw-r--r--devel/ossp-ex/Makefile6
-rw-r--r--devel/ossp-ex/files/extra-patch-ts.c (renamed from devel/ossp-ex/files/patch-ts.c)0
-rw-r--r--devel/ossp-ex/files/patch-ex.h14
3 files changed, 19 insertions, 1 deletions
diff --git a/devel/ossp-ex/Makefile b/devel/ossp-ex/Makefile
index 85d037f..751d188 100644
--- a/devel/ossp-ex/Makefile
+++ b/devel/ossp-ex/Makefile
@@ -9,7 +9,7 @@
PORTNAME= ex
PORTVERSION= 1.0.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= ftp://ftp.ossp.org/pkg/lib/ex/
PKGNAMEPREFIX= ossp-
@@ -28,5 +28,9 @@ INSTALLS_SHLIB= yes
BROKEN= "Does not compile on alpha"
.endif
+.if ${OSVERSION} >= 500000
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ts.c
+.endif
+
.include "${FILESDIR}/manpages.mk"
.include <bsd.port.post.mk>
diff --git a/devel/ossp-ex/files/patch-ts.c b/devel/ossp-ex/files/extra-patch-ts.c
index 6ef8097..6ef8097 100644
--- a/devel/ossp-ex/files/patch-ts.c
+++ b/devel/ossp-ex/files/extra-patch-ts.c
diff --git a/devel/ossp-ex/files/patch-ex.h b/devel/ossp-ex/files/patch-ex.h
new file mode 100644
index 0000000..e0c6bf2
--- /dev/null
+++ b/devel/ossp-ex/files/patch-ex.h
@@ -0,0 +1,14 @@
+--- ex.h.orig Wed Mar 24 18:13:57 2004
++++ ex.h Wed Mar 24 18:14:09 2004
+@@ -86,9 +86,9 @@
+ void *ex_object;
+ void *ex_value;
+ /* throw point */
+- char *ex_file;
++ const char *ex_file;
+ int ex_line;
+- char *ex_func;
++ const char *ex_func;
+ } ex_t;
+
+ /* declare the context type (private) */
OpenPOWER on IntegriCloud