diff options
author | schmonz <schmonz@pkgsrc.org> | 2002-07-28 05:49:28 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2002-07-28 05:49:28 +0000 |
commit | 70a422b2fa5837e97e07dc47b8706bf6943bada4 (patch) | |
tree | 17f1592608d8e03fec7850f7c7c1e21db371c946 /mail/pine/patches | |
parent | 842b7d513d7e1897effbf2389d1f2b096ac08416 (diff) | |
download | pkgsrc-70a422b2fa5837e97e07dc47b8706bf6943bada4.tar.gz |
Build on Darwin.
Diffstat (limited to 'mail/pine/patches')
-rw-r--r-- | mail/pine/patches/patch-af | 72 | ||||
-rw-r--r-- | mail/pine/patches/patch-ag | 11 |
2 files changed, 83 insertions, 0 deletions
diff --git a/mail/pine/patches/patch-af b/mail/pine/patches/patch-af new file mode 100644 index 00000000000..63d1a596cf2 --- /dev/null +++ b/mail/pine/patches/patch-af @@ -0,0 +1,72 @@ +$NetBSD: patch-af,v 1.7 2002/07/28 05:49:29 schmonz Exp $ + +--- pine/makefile.osx.orig Wed Oct 24 15:42:24 2001 ++++ pine/makefile.osx +@@ -50,7 +50,9 @@ OPTIMIZE= # -O + PROFILE= # -pg + DEBUG= -g -DDEBUG + +-CCLIENTDIR= ../c-client ++CCLIENTDIR= ${PREFIX} ++CCLIENTINC= ${CCLIENTDIR}/include/c-client ++CCLIENTLIB= ${CCLIENTDIR}/lib + PICODIR= ../pico + + # Only need to uncomment next two lines if you run make from this directory +@@ -61,15 +63,14 @@ PICODIR= ../pico + LDAPOFILES= addrbook.o adrbkcmd.o args.o bldaddr.o init.o \ + mailview.o other.o pine.o strings.o takeaddr.o + +-STDLIBS= +-LOCLIBS= $(PICODIR)/libpico.a $(CCLIENTDIR)/c-client.a +-LIBS= $(LOCLIBS) $(LDAPLIBS) $(STDLIBS) \ +- `cat $(CCLIENTDIR)/LDFLAGS` ++STDLIBS= -lssl -lcrypto ++LOCLIBS= -lpico -lc-client ++LIBS= -L$(PREFIX)/lib $(EXTRALIBES) $(LOCLIBS) $(LDAPLIBS) $(STDLIBS) + + # Use BSDDEF instead of BSD because other systems use BSD internally. + STDCFLAGS= -Dconst= -DSYSTYPE=\"OSX\" + CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(LDAPCFLAGS) \ +- $(STDCFLAGS) ++ $(STDCFLAGS) -I${CCLIENTINC} + + OFILES= addrbook.o adrbkcmd.o adrbklib.o args.o bldaddr.o context.o filter.o \ + folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \ +@@ -81,20 +82,20 @@ HFILES= headers.h os.h pine.h context.h + $(PICODIR)/headers.h $(PICODIR)/estruct.h \ + $(PICODIR)/edef.h $(PICODIR)/efunc.h \ + $(PICODIR)/pico.h $(PICODIR)/os.h \ +- $(CCLIENTDIR)/mail.h $(CCLIENTDIR)/osdep.h \ +- $(CCLIENTDIR)/rfc822.h $(CCLIENTDIR)/misc.h ++ $(CCLIENTINC)/mail.h $(CCLIENTINC)/osdep.h \ ++ $(CCLIENTINC)/rfc822.h $(CCLIENTINC)/misc.h + + all: pine rpload rpdump + +-pine: $(OFILES) $(LOCLIBS) ++pine: $(OFILES) + echo "char datestamp[]="\"`date`\"";" > date.c + echo "char hoststamp[]="\"`hostname`\"";" >> date.c + $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(OFILES) date.c $(LIBS) + +-rpload: rpload.o $(CCLIENTDIR)/c-client.a ++rpload: rpload.o $(CCLIENTLIB)/libc-client.a + $(CC) $(LDFLAGS) $(CFLAGS) -o rpload rpload.o $(LIBS) + +-rpdump: rpdump.o $(CCLIENTDIR)/c-client.a ++rpdump: rpdump.o $(CCLIENTLIB)/libc-client.a + $(CC) $(LDFLAGS) $(CFLAGS) -o rpdump rpdump.o $(LIBS) + + pine-use: pine-use.c +@@ -114,8 +115,8 @@ os.c: osdep/os-osx.c + + $(OFILES): $(HFILES) + addrbook.o adrbkcmd.o adrbklib.o bldaddr.o takeaddr.o: adrbklib.h +-context.o: $(CCLIENTDIR)/misc.h +-send.o: $(CCLIENTDIR)/smtp.h ++context.o: $(CCLIENTINC)/misc.h ++send.o: $(CCLIENTINC)/smtp.h + #$(LDAPOFILES): $(LDAPLIBS) + + helptext.c: pine.hlp diff --git a/mail/pine/patches/patch-ag b/mail/pine/patches/patch-ag new file mode 100644 index 00000000000..a05837b7628 --- /dev/null +++ b/mail/pine/patches/patch-ag @@ -0,0 +1,11 @@ +$NetBSD: patch-ag,v 1.5 2002/07/28 05:49:29 schmonz Exp $ + +--- pine/osdep/os-osx.h.orig Tue Feb 6 19:53:14 2001 ++++ pine/osdep/os-osx.h +@@ -298,5 +298,6 @@ void free(); + #define MAX_ADDR_EXPN (1000) /* Longest expanded addr */ + #define MAX_ADDR_FIELD (10000) /* Longest fully-expanded addr field */ + ++#include <sys/unistd.h> /* needed for F_OK and friends */ + + #endif /* _OS_INCLUDED */ |