2002-02-18 09:43:06 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2002/02/18 14:43:06 brad Exp $
|
2001-04-13 22:56:16 -04:00
|
|
|
|
2001-08-14 15:21:00 -04:00
|
|
|
COMMENT= "Program for Internet E-mail and News, with pico"
|
2001-04-13 22:56:16 -04:00
|
|
|
COMMENT-pico= "small text editor"
|
2001-08-14 15:21:00 -04:00
|
|
|
COMMENT-pine= "Program for Internet E-mail and News, without pico"
|
1997-11-14 19:04:24 -05:00
|
|
|
|
2002-01-10 05:48:44 -05:00
|
|
|
VERSION= 4.44
|
2001-11-18 21:01:57 -05:00
|
|
|
PICO_VERSION= 4.2
|
2000-09-03 13:20:33 -04:00
|
|
|
DISTNAME= pine${VERSION}
|
2001-11-18 21:01:57 -05:00
|
|
|
PKGNAME= pine+pico-${VERSION}
|
2001-09-28 09:27:09 -04:00
|
|
|
FULLPKGNAME-pico=pico-${PICO_VERSION}
|
2001-11-18 21:01:57 -05:00
|
|
|
PKGNAME-pine= pine-${VERSION}
|
2001-12-01 18:22:58 -05:00
|
|
|
NEED_VERSION= 1.500
|
1999-10-27 08:18:58 -04:00
|
|
|
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/mail/pine/
|
1997-11-14 19:04:24 -05:00
|
|
|
|
2000-09-17 10:56:26 -04:00
|
|
|
HOMEPAGE= http://www.washington.edu/pine/
|
|
|
|
|
2001-12-16 16:57:47 -05:00
|
|
|
BUILD_DEPENDS= :c-client->=4.41:mail/c-client
|
|
|
|
|
2001-01-21 16:07:16 -05:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
2000-09-17 10:56:26 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= No
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2001-12-01 18:22:58 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-04-13 22:56:16 -04:00
|
|
|
FLAVORS= ldap
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -pico -pine
|
2000-09-17 10:56:26 -04:00
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2001-04-13 22:56:16 -04:00
|
|
|
.if ${SUBPACKAGE} == "-pico"
|
2000-09-03 13:20:33 -04:00
|
|
|
CATEGORIES= editors
|
2001-04-13 22:56:16 -04:00
|
|
|
.elif ${SUBPACKAGE} == "-pine"
|
2001-04-13 23:57:00 -04:00
|
|
|
CATEGORIES= mail news
|
2001-11-18 21:01:57 -05:00
|
|
|
LIB_DEPENDS= c-client.4:c-client->=4.41:mail/c-client
|
2000-09-03 13:20:33 -04:00
|
|
|
.else
|
|
|
|
CATEGORIES= mail news editors
|
2001-11-18 21:01:57 -05:00
|
|
|
LIB_DEPENDS= c-client.4:c-client->=4.41:mail/c-client
|
2000-09-03 13:20:33 -04:00
|
|
|
.endif
|
2000-07-10 18:54:33 -04:00
|
|
|
|
2001-07-20 18:48:10 -04:00
|
|
|
.if ${FLAVOR:L} == "ldap" && ${SUBPACKAGE} != "-pico"
|
2001-09-28 15:06:29 -04:00
|
|
|
LIB_DEPENDS+= ldap.2:openldap-client-2.*:databases/openldap
|
2001-07-20 18:48:10 -04:00
|
|
|
.endif
|
|
|
|
|
2002-02-18 09:43:06 -05:00
|
|
|
PINE_BUILD_FLAGS= CC="${CC}" LOCALBASE="${LOCALBASE}"
|
|
|
|
|
2001-07-20 18:48:10 -04:00
|
|
|
.if ${FLAVOR:L} == "ldap"
|
2002-02-18 09:43:06 -05:00
|
|
|
PINE_BUILD_FLAGS+= LDAPLIBS="-lldap -llber" \
|
|
|
|
LDAPCFLAGS="-DENABLE_LDAP -I${LOCALBASE}/include"
|
2001-01-21 14:19:59 -05:00
|
|
|
.endif
|
|
|
|
|
2002-02-09 16:10:04 -05:00
|
|
|
do-build:
|
2000-12-30 23:49:37 -05:00
|
|
|
@sed -e s#!!PREFIX!!#${PREFIX}#g \
|
|
|
|
${WRKSRC}/doc/tech-notes.txt > ${WRKSRC}/doc/tech-notes.txt.new
|
|
|
|
@mv ${WRKSRC}/doc/tech-notes.txt.new ${WRKSRC}/doc/tech-notes.txt
|
2002-02-18 09:43:06 -05:00
|
|
|
@cd ${WRKSRC}; ./build ${PINE_BUILD_FLAGS} bso
|
2000-12-30 23:49:37 -05:00
|
|
|
|
1998-08-03 00:11:48 -04:00
|
|
|
do-install:
|
2000-01-05 00:17:14 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pine
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/doc/pine
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/dot.pinerc.pgp.sample ${PREFIX}/share/doc/pine
|
2001-09-27 12:52:40 -04:00
|
|
|
cd ${WRKSRC}/bin; ${INSTALL_PROGRAM} pico pilot pine rpdump rpload \
|
|
|
|
${PREFIX}/bin
|
2000-12-30 23:49:37 -05:00
|
|
|
cd ${FILESDIR}; ${INSTALL_SCRIPT} pgpencrypt pgpdecode pgpsign ${PREFIX}/bin
|
2001-09-27 12:52:40 -04:00
|
|
|
cd ${WRKSRC}/doc; ${INSTALL_MAN} pico.1 pilot.1 pine.1 rpdump.1 rpload.1 \
|
|
|
|
${PREFIX}/man/man1
|
1997-11-14 19:04:24 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|