diff options
author | brian <brian@FreeBSD.org> | 1998-09-24 14:42:15 +0800 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-09-24 14:42:15 +0800 |
commit | 544b4c9706b565d917b31e3829324c8c170f2646 (patch) | |
tree | 0248a553a45bafe8c0a545b3bf6acebad429c686 /mail/mh | |
parent | d1b974c67e9ecfe41a1026fd5dc8ace981b4bd10 (diff) | |
download | freebsd-ports-gnome-544b4c9706b565d917b31e3829324c8c170f2646.tar.gz freebsd-ports-gnome-544b4c9706b565d917b31e3829324c8c170f2646.tar.zst freebsd-ports-gnome-544b4c9706b565d917b31e3829324c8c170f2646.zip |
Elfify
Ok'd (but not tested by): pst
Diffstat (limited to 'mail/mh')
-rw-r--r-- | mail/mh/files/patch-ad | 33 | ||||
-rw-r--r-- | mail/mh/pkg-plist | 5 |
2 files changed, 35 insertions, 3 deletions
diff --git a/mail/mh/files/patch-ad b/mail/mh/files/patch-ad index 5b54b488dee0..f806e2f15993 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 + + + ###################################################################### diff --git a/mail/mh/pkg-plist b/mail/mh/pkg-plist index c6e3018833c0..c3380a49f520 100644 --- a/mail/mh/pkg-plist +++ b/mail/mh/pkg-plist @@ -71,7 +71,8 @@ lib/mh/spop lib/mh/spost lib/mh/tmac.h lib/mh/viamail +lib/libmh.so lib/libmh.so.3.2 -@exec ldconfig -m %B -@unexec /sbin/ldconfig -R +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R libexec/popd |