openbsd-ports/mail/pine/Makefile

83 lines
2.0 KiB
Makefile
Raw Normal View History

2005-09-29 03:12:38 -04:00
# $OpenBSD: Makefile,v 1.63 2005/09/29 07:12:38 jakob Exp $
COMMENT= "program for Internet E-mail and News"
COMMENT-pico= "small text editor"
COMMENT-pilot= "file system browser"
CATEGORIES= mail news
2005-09-29 03:12:38 -04:00
VERSION= 4.64
2005-04-29 15:51:35 -04:00
PICO_VERSION= 4.10
PILOT_VERSION= 2.0
1997-11-14 19:04:24 -05:00
DISTNAME= pine${VERSION}
2005-02-24 01:33:22 -05:00
PKGNAME= pine-${VERSION}
PKGNAME-pico= pico-${PICO_VERSION}
PKGNAME-pilot= pilot-${PILOT_VERSION}
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
HOMEPAGE= http://www.washington.edu/pine/
2002-11-25 15:08:48 -05:00
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
2001-12-01 18:22:58 -05:00
NO_REGRESS= Yes
VMEM_WARNING= Yes
2001-12-01 18:22:58 -05:00
FLAVORS= kerberos ldap
FLAVOR?=
MULTI_PACKAGES= -pico -pilot
SUBPACKAGE?=
.if empty(SUBPACKAGE)
WANTLIB+= crypto ssl termlib
.else
WANTLIB+= termcap
.endif
.if ${SUBPACKAGE} == "-pico"
CATEGORIES= editors
.elif ${SUBPACKAGE} == "-pilot"
CATEGORIES= sysutils
.endif
PINE_BUILD_FLAGS= CC="${CC}" EXTRACFLAGS="${CFLAGS}" \
SSLTYPE="unix" LOCALBASE="${LOCALBASE}"
.if ${FLAVOR:L:Mkerberos}
PINE_BUILD_FLAGS+= EXTRAAUTHENTICATORS="gss"
WANTLIB+= asn1 com_err des gssapi krb5
.endif
.if ${FLAVOR:L:Mldap}
PINE_BUILD_FLAGS+= LDAPLIBS="-L${LOCALBASE}/lib -lldap -llber" \
LDAPCFLAGS="-DENABLE_LDAP -I${LOCALBASE}/include"
.if ${SUBPACKAGE} == ""
LIB_DEPENDS+= lber.2,ldap.2:openldap-client-2.*:databases/openldap
.endif
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
@cd ${WRKSRC}; ./build ${PINE_BUILD_FLAGS} bso
2000-12-30 23:49:37 -05:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pine
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/doc/pine
2001-09-27 12:52:40 -04:00
cd ${WRKSRC}/bin; ${INSTALL_PROGRAM} pico pilot pine rpdump rpload \
${PREFIX}/bin
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>