blob: d74f451e101fbb43384ff22e61f43cc4a748ab6b (
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
|
# $NetBSD: Makefile,v 1.17 1998/07/21 20:26:37 tv Exp $
# FreeBSD Id: Makefile,v 1.21 1997/03/26 02:12:07 ache Exp
#
DISTNAME= pine4.01
PKGNAME= pine-4.01
CATEGORIES= mail news
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/
MAINTAINER= tv@netbsd.org
# This pkg doesn't build pico or libpico; the pico pkg does that part.
DEPENDS= pico-3.1:../../editors/pico
CONFLICTS= pine-3.96
do-configure:
${CP} -f ${WRKSRC}/pine/osdep/os-neb.h ${WRKSRC}/pine/osdep/os-neb.h.orig
${SED} -e 's@/usr/local@${PREFIX}@' \
<${WRKSRC}/pine/osdep/os-neb.h.orig >${WRKSRC}/pine/osdep/os-neb.h
cd ${WRKSRC}/pico && ${MAKE} -f makefile.neb os.h
do-build:
cd ${WRKSRC} && ./build neb PREFIX=${PREFIX}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/pine ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/pine/abookcpy ${PREFIX}/bin/
${INSTALL_SCRIPT} ${FILESDIR}/pgpencrypt ${PREFIX}/bin/
${INSTALL_SCRIPT} ${FILESDIR}/pgpdecode ${PREFIX}/bin/
${INSTALL_SCRIPT} ${FILESDIR}/pgpsign ${PREFIX}/bin/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pine
${INSTALL_DATA} ${FILESDIR}/dot.pinerc.pgp.sample ${PREFIX}/share/examples/pine/
${INSTALL_MAN} ${WRKSRC}/doc/pine.1 ${PREFIX}/man/man1/pine.1
( ${ECHO} '# (This file is not part of the pine distribution! - HF)' ; \
${PREFIX}/bin/pine -conf ) | ${SED} \
-e 's|^\(use-only-domain-name\)=.*$$|\1=No|g' \
-e 's|^\(mail-directory\)=.*$$|\1=Mail|g' \
-e 's|^\(feature-list\)=.*$$|\1=enable-mail-check-cue,enable-suspend,expanded-view-of-addressbooks,include-header-in-reply,include-text-in-reply,show-selected-in-boldface,signature-at-bottom|g' \
-e 's|^\(sort-key\)=.*$$|\1=Arrival/Reverse|g' \
>${PREFIX}/lib/pine.conf
${INSTALL_DATA} ${FILESDIR}/pine.conf.fixed ${PREFIX}/lib/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pine
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/doc/pine/
.include "../../mk/bsd.pkg.mk"
|