aboutsummaryrefslogtreecommitdiffstats
path: root/mail/imap-uw
diff options
context:
space:
mode:
authorjseger <jseger@FreeBSD.org>1998-10-14 07:25:07 +0800
committerjseger <jseger@FreeBSD.org>1998-10-14 07:25:07 +0800
commit15f383ba7cec0a97adf6726efbdc7cd1fc863bba (patch)
treed58c9232a801307b0369f1db3739286f0d1c698d /mail/imap-uw
parentd9e22ab52ff216f5989ee44842594faeccaa2114 (diff)
downloadfreebsd-ports-graphics-15f383ba7cec0a97adf6726efbdc7cd1fc863bba.tar.gz
freebsd-ports-graphics-15f383ba7cec0a97adf6726efbdc7cd1fc863bba.tar.zst
freebsd-ports-graphics-15f383ba7cec0a97adf6726efbdc7cd1fc863bba.zip
Unbreak.
Subbmitted by: steve
Diffstat (limited to 'mail/imap-uw')
-rw-r--r--mail/imap-uw/Makefile15
-rw-r--r--mail/imap-uw/files/patch-ab30
-rw-r--r--mail/imap-uw/pkg-plist7
3 files changed, 36 insertions, 16 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile
index 6fd3ab93673..285d729b170 100644
--- a/mail/imap-uw/Makefile
+++ b/mail/imap-uw/Makefile
@@ -3,7 +3,7 @@
# Date created: 9 Jan 1997
# Whom: pst
#
-# $Id: Makefile,v 1.17 1998/09/22 15:14:57 steve Exp $
+# $Id: Makefile,v 1.18 1998/10/12 19:17:34 jseger Exp $
#
DISTNAME= imap-4.2
@@ -15,8 +15,6 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= imap-uw@freebsd.ady.ro
-BROKEN_ELF= cannot open -lc-client
-
ALL_TARGET= bsf
MAN8= ipopd.8 imapd.8
@@ -30,7 +28,8 @@ install-lib:
${INSTALL_DATA} ${WRKSRC}/c-client/c-client.a ${PREFIX}/lib/libc-client.a
do-install:
- ${INSTALL_DATA} ${WRKSRC}/c-client/libc-client.so.2.1 ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/c-client/${SHLIB} ${PREFIX}/lib
+ ${LN} -sf ${SHLIB} ${PREFIX}/lib/libc-client.so
${INSTALL_PROGRAM} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec
@@ -41,6 +40,12 @@ do-install:
${WRKSRC}/src/ipopd/ipopd.8c ${PREFIX}/man/man8/ipopd.8
post-install:
- ${LDCONFIG} -m ${PREFIX}/lib
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>
+
+.if ${PORTOBJFORMAT} == "elf"
+SHLIB= libc-client.so.2
+.else
+SHLIB= libc-client.so.2.1
+.endif
diff --git a/mail/imap-uw/files/patch-ab b/mail/imap-uw/files/patch-ab
index 8f3526ba73c..afab8c31762 100644
--- a/mail/imap-uw/files/patch-ab
+++ b/mail/imap-uw/files/patch-ab
@@ -1,6 +1,12 @@
---- src/osdep/unix/Makefile.orig Thu Jul 16 22:12:22 1998
-+++ src/osdep/unix/Makefile Tue Jul 21 16:38:38 1998
-@@ -93,7 +93,7 @@
+--- src/osdep/unix/Makefile.orig Thu Jul 16 14:12:22 1998
++++ src/osdep/unix/Makefile Mon Oct 12 19:21:56 1998
+@@ -88,12 +88,12 @@
+
+ # Normally no need to change any of these
+
+-ARCHIVE=c-client.a
++ARCHIVE=libc-client.a
+ BINARIES=mail.o misc.o newsrc.o smanager.o osdep.o utf8.o siglocal.o \
dummy.o pseudo.o netmsg.o flstring.o fdstring.o \
rfc822.o nntp.o smtp.o imap4r1.o pop3.o \
unix.o mbox.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o
@@ -9,19 +15,23 @@
MAKE=make
MV=mv
RM=rm -rf
-@@ -108,6 +108,11 @@
+@@ -108,6 +108,15 @@
PASSWDTYPE=$(PASSWDTYPE) AFSDIR=$(AFSDIR) GSSDIR=$(GSSDIR)
BUILD=$(MAKE) build $(BUILDOPTIONS) $(EXTRASPECIALS)
+# Need this for the shared library rule to work correctly
+.SUFFIXES: .o .so
++.if ${PORTOBJFORMAT} == "elf"
++SHLIB=libc-client.so.2
++.else
+SHLIB=libc-client.so.2.1
++.endif
+SOFILES=${BINARIES:.o=.so}
+
# Here if no make argument established
missing: osdep.h
-@@ -179,11 +184,11 @@
+@@ -179,11 +188,11 @@
BASECFLAGS="-g -Dconst= -DNFSKLUDGE"
bsf: # FreeBSD
@@ -35,12 +45,16 @@
BASELDFLAGS="-lcrypt"
bsi: # BSD/i386
-@@ -565,10 +570,17 @@
+@@ -565,10 +574,21 @@
@cat ARCHIVE
@$(SH) ARCHIVE
+$(SHLIB): $(SOFILES)
++.if $(PORTOBJFORMAT) == "elf"
+ ld -Bshareable -x -o $(SHLIB) $(SOFILES)
++.else
++ ld -Bshareable -x -soname $(SHLIB) -o $(SHLIB) $(SOFILES)
++.endif
+
+.c.so: osdep.h
+ $(CC) -fpic -DPIC -c $(CFLAGS) ${@:.so=.c} -o $@
@@ -53,7 +67,7 @@
# Dependencies
-@@ -602,7 +614,7 @@
+@@ -602,7 +622,7 @@
# OS-dependent
@@ -62,7 +76,7 @@
osdep.h env_unix.h tcp_unix.h \
osdep.c env_unix.c fs_unix.c ftl_unix.c nl_unix.c tcp_unix.c \
auths.c flock.c flockbsd.c flcksafe.c fsync.c gethstid.c \
-@@ -614,7 +626,12 @@
+@@ -614,7 +634,12 @@
write.c \
strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
OSCFLAGS
diff --git a/mail/imap-uw/pkg-plist b/mail/imap-uw/pkg-plist
index f86f1765582..579d5f5f39e 100644
--- a/mail/imap-uw/pkg-plist
+++ b/mail/imap-uw/pkg-plist
@@ -1,7 +1,8 @@
+bin/mboxtest
+lib/libc-client.so
lib/libc-client.so.2.1
-@exec /sbin/ldconfig -m %B
-@unexec /sbin/ldconfig -m %B
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
libexec/imapd
libexec/ipop2d
libexec/ipop3d
-bin/mboxtest