aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mh/files
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-09-24 14:42:15 +0800
committerbrian <brian@FreeBSD.org>1998-09-24 14:42:15 +0800
commit544b4c9706b565d917b31e3829324c8c170f2646 (patch)
tree0248a553a45bafe8c0a545b3bf6acebad429c686 /mail/mh/files
parentd1b974c67e9ecfe41a1026fd5dc8ace981b4bd10 (diff)
downloadfreebsd-ports-graphics-544b4c9706b565d917b31e3829324c8c170f2646.tar.gz
freebsd-ports-graphics-544b4c9706b565d917b31e3829324c8c170f2646.tar.zst
freebsd-ports-graphics-544b4c9706b565d917b31e3829324c8c170f2646.zip
Elfify
Ok'd (but not tested by): pst
Diffstat (limited to 'mail/mh/files')
-rw-r--r--mail/mh/files/patch-ad33
1 files changed, 32 insertions, 1 deletions
diff --git a/mail/mh/files/patch-ad b/mail/mh/files/patch-ad
index 5b54b488dee..f806e2f1599 100644
--- a/mail/mh/files/patch-ad
+++ b/mail/mh/files/patch-ad
@@ -106,11 +106,13 @@ The following patch adds shared library support for FreeBSD to MH
#define NOTOK (-1)
---- 32,38 ----
+--- 32,40 ----
#define MHRELEASE "6.8.3" /* for version: "Maj.min.pat" */
#define MHCENTERFOOT "MH.6.8" /* for nroff page footers */
#define MHLEFTFOOT "[mh.6]" /* [mh.6] MH.6.6 page# */
+! #ifndef MHSLIBVER
! #define MHSLIBVER "3.2" /* Shared library version */
+! #endif
#define NOTOK (-1)
@@ -194,3 +196,32 @@ diff -cdr ../mh-6.8.3.orig/zotnet/mts/lock.c ./zotnet/mts/lock.c
#ifdef SYS5
#define u_short ushort
#define u_long ulong
+--- conf/makefiles/sbr.orig Tue Sep 22 16:38:28 1998
++++ conf/makefiles/sbr Tue Sep 22 16:51:48 1998
+@@ -157,6 +157,7 @@
+ inst-lib: libmh.so $(LIBSA)
+ -rm -f $(SLIBDIR)/libmh.so.$(SLIBVER)
+ cp libmh.so.$(SLIBVER) $(SLIBDIR)/libmh.so.$(SLIBVER)
++ ln -s libmh.so.$(SLIBVER) $(SLIBDIR)/libmh.so
+ -@chmod $(PGMPROT) $(SLIBDIR)/libmh.so.$(SLIBVER)
+ -@ls -l $(SLIBDIR)/libmh.so.*
+ -@echo "Shared library installed normally"
+--- conf/Makefile.orig Wed Sep 23 10:27:39 1998
++++ conf/Makefile Wed Sep 23 10:27:25 1998
+@@ -6,10 +6,15 @@
+ SHELL = /bin/sh
+
+ CC = cc
+-CFLAGS = -O
+ LFLAGS = -bhu
+ LDFLAGS =
+ LIBES =
++
++.if ${PORTOBJFORMAT} == "elf"
++CFLAGS = -O -DMHSLIBVER=\"3\"
++.else
++CFLAGS = -O -DMHSLIBVER=\"3.2\"
++.endif
+
+
+ ######################################################################