diff options
| author | Mikhail Teterin <mi@FreeBSD.org> | 2001-02-13 00:42:11 +0000 |
|---|---|---|
| committer | Mikhail Teterin <mi@FreeBSD.org> | 2001-02-13 00:42:11 +0000 |
| commit | 0be247304a2235e6324a0d3df55e6250644decab (patch) | |
| tree | 560f9bdb9441f365ea3fe5f157ea1b133ed6490e /mail/postilion/files/Makefile.bsd | |
| parent | Clutter up the list of Bay Area committers even more. (diff) | |
Redo the postilion port:
- Don't use the imap library that comes with it --
use the cclient port. Don't even extract it.
- Don't bother patching configure and Makefile.in(s) --
use a local Makefile.
- Use the latest TCL/TK 8.3. This port does not provide
any loadable packages, so I chose not to use tclstubs, but link
with libtk and libtcl directly.
- Remove the tkstep cruft -- it was commented out since forever.
- Finally fix the options.tcl -- the env(MAIL) logic was backwards.
To do: add support of Cyrillic charsets (koi8-u,
koi8-r). Currently has to be done by providing one's own
${LOCALBASE}/lib/postilion/postilionrc. Revisit installation of the
documentation. The existing port continues to ignore it completely.
Diffstat (limited to 'mail/postilion/files/Makefile.bsd')
| -rw-r--r-- | mail/postilion/files/Makefile.bsd | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/mail/postilion/files/Makefile.bsd b/mail/postilion/files/Makefile.bsd new file mode 100644 index 000000000000..7b3e5efe613b --- /dev/null +++ b/mail/postilion/files/Makefile.bsd @@ -0,0 +1,53 @@ +PROG= postilion.exec +NOMAN= why would you even ask? + +LOCALBASE?= /usr/local +TCL_VER?= 8.3 +DIR?= lib/postlionlib + +LDADD= -lm -L${LOCALBASE}/lib -lc-client4 \ + -ltk${TCL_VER:S/.//} -ltcl${TCL_VER:S/.//} +.if exists(/usr/lib/libpam.a) +LDADD+= -lpam +.endif + +CFLAGS+= -I${LOCALBASE}/include/tcl${TCL_VER} +CFLAGS+= -I${LOCALBASE}/include/tk${TCL_VER} +CFLAGS+= -DNDEBUG -I. +CFLAGS+= -I${LOCALBASE}/include/c-client -I${LOCALBASE}/include + +BINDIR = ${LOCALBASE}/${DIR} + +${BINDIR} ${BINDIR}/images: + ${MKDIR} $@ + +all: ${PROG} postilion.sh ${.CURDIR}/postilion/tclIndex + +${.CURDIR}/postilion/tclIndex: + cd ${.CURDIR}/postilion/Text/ && tclsh${TCL_VER} dotext.tcl + cd ${.CURDIR}/postilion && \ + (${ECHO} "auto_mkindex . postilion *.tcl" | tclsh${TCL_VER}) + +postilion.sh: ${.CURDIR}/script/postilion + ${SED} -e "s%^LIBDIR.*%LIBDIR=${BINDIR}%" \ + -e "s%^EXEC.*%EXEC=${PROG}%" \ + -e "s%^COMPRESS.*%COMPRESS=/usr/bin/gzip%" \ + -e "s%^CSUFFIX.*%CSUFFIX=gz%" \ + -e "s%^CONFIG_DIR.*%CONFIG_DIR=${LOCALBASE}/lib/postilion%" \ + -e "s%^PGP.*%PGP=${LOCALBASE}/bin/pgp%" \ + < ${.CURDIR}/script/postilion > $@ + +beforeinstall: ${BINDIR} ${BINDIR}/images + ${INSTALL_DATA} ${.CURDIR}/postilion/*.tcl \ + ${.CURDIR}/postilion/postilion \ + ${.CURDIR}/postilion/tclIndex ${BINDIR} + ${INSTALL_DATA} ${.CURDIR}/postilion/images/*.gif ${BINDIR}/images + ${INSTALL_SCRIPT} postilion.sh ${LOCALBASE}/bin/postilion + +.PATH: ${.CURDIR}/lib +SRCS= ratAppInit.c ratFolder.c ratStdFolder.c ratMessage.c ratCode.c \ + ratAddress.c ratDbase.c ratDbFolder.c ratStdMessage.c ratDbMessage.c \ + ratFrMessage.c ratSMTP.c ratDSN.c ratHold.c ratSender.c ratExp.c \ + ratMailcap.c ratCompat.c ratPGP.c ratPGPprog.c + +.include <bsd.prog.mk> |
