blob: 3aac8a7f3d49bd940e0c49e3212716d26bfeb454 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
PROG= postilion.exec
NOMAN= why would you even ask?
LOCALBASE?= /usr/local
TCL_VER?= 8.3
DIR?= lib/postlionlib
LDADD= -lm -L${LOCALBASE}/lib -L${X11BASE} -lc-client4 \
-ltk${TCL_VER:S/.//} -ltcl${TCL_VER:S/.//} -lX11
.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
CFLAGS+= -I${X11BASE}/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>
|