2004-12-18 17:21:28 +01:00
|
|
|
# $NetBSD: Makefile,v 1.98 2004/12/18 16:21:28 grant Exp $
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2004-08-12 14:18:50 +02:00
|
|
|
DISTNAME= pine4.61
|
|
|
|
PKGNAME= pine-4.61
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 1
|
1997-11-22 06:27:54 +01:00
|
|
|
CATEGORIES= mail news
|
1999-11-22 09:57:24 +01:00
|
|
|
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/ \
|
2000-02-09 23:17:44 +01:00
|
|
|
ftp://ftp.fu-berlin.de/unix/mail/pine/
|
2002-12-14 11:34:43 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2003-11-03 23:43:37 +01:00
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://www.washington.edu/pine/
|
2001-08-06 04:58:57 +02:00
|
|
|
COMMENT= Program for Internet News and E-mail
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2001-06-05 00:22:43 +02:00
|
|
|
LICENSE= pine-license
|
|
|
|
|
2004-05-02 02:22:20 +02:00
|
|
|
USE_BUILDLINK3= YES
|
2003-06-28 20:16:02 +02:00
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/pine/pine.conf ${PKG_SYSCONFDIR}/pine.conf
|
2001-03-13 05:41:19 +01:00
|
|
|
|
2004-05-14 11:31:17 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
2001-03-13 05:41:19 +01:00
|
|
|
|
2003-06-28 20:16:02 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2004-05-17 12:56:17 +02:00
|
|
|
BUILDNAME= so5
|
|
|
|
BUILDFILE= sol
|
2003-06-28 20:16:02 +02:00
|
|
|
.elif ${OPSYS} == "Linux"
|
2004-05-17 12:56:17 +02:00
|
|
|
BUILDNAME= lnx
|
|
|
|
BUILDFILE= lnx
|
2003-06-28 20:16:02 +02:00
|
|
|
.elif ${OPSYS} == "Darwin"
|
2004-05-17 12:56:17 +02:00
|
|
|
BUILDNAME= osx
|
|
|
|
BUILDFILE= osx
|
2004-12-18 17:20:36 +01:00
|
|
|
LIBS+= -lcurses
|
2004-12-18 17:21:28 +01:00
|
|
|
.elif ${OPSYS} == "IRIX"
|
|
|
|
. if ${OS_VERSION} >= 6.5
|
|
|
|
BUILDNAME= sg6
|
|
|
|
. else
|
|
|
|
BUILDNAME= sgi
|
|
|
|
CFLAGS+= -Dvfork=fork
|
|
|
|
. endif
|
|
|
|
BUILDFILE= sgi
|
2003-06-28 20:16:02 +02:00
|
|
|
.else
|
2004-05-17 12:56:17 +02:00
|
|
|
BUILDNAME= neb
|
|
|
|
BUILDFILE= neb
|
2004-06-02 20:45:00 +02:00
|
|
|
CFLAGS+= -O
|
2003-06-28 20:16:02 +02:00
|
|
|
.endif
|
2002-10-09 01:31:01 +02:00
|
|
|
|
2004-05-14 11:36:53 +02:00
|
|
|
.if !empty(CC_VERSION:Mgcc-*)
|
2004-05-14 11:31:17 +02:00
|
|
|
UNLIMIT_RESOURCES+= datasize
|
|
|
|
.endif
|
|
|
|
|
2004-11-08 18:10:24 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.pine
|
|
|
|
PKG_SUPPORTED_OPTIONS= ldap
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
2004-05-02 02:22:20 +02:00
|
|
|
. include "../../databases/openldap/buildlink3.mk"
|
2004-11-08 18:10:24 +01:00
|
|
|
PINE_LDAPCFLAGS= LDAPCFLAGS="-DENABLE_LDAP"
|
|
|
|
PINE_LDAPLIBS= LDAPLIBS="-lldap -llber"
|
2001-03-13 05:41:19 +01:00
|
|
|
.endif
|
|
|
|
|
2000-09-19 15:27:00 +02:00
|
|
|
pre-patch:
|
2000-12-18 19:09:11 +01:00
|
|
|
# Make sure the imap lib that comes with pine isn't
|
2000-09-19 15:27:00 +02:00
|
|
|
# used (see http://www.securityfocus.com/advisories/2646)
|
2000-10-22 00:45:28 +02:00
|
|
|
${RM} -fr ${WRKSRC}/imap
|
2000-09-19 15:27:00 +02:00
|
|
|
|
1998-07-19 07:21:34 +02:00
|
|
|
do-configure:
|
2002-07-18 16:18:48 +02:00
|
|
|
${CP} -f ${WRKSRC}/pine/osdep/os-${BUILDFILE}.h ${WRKSRC}/pine/osdep/os-${BUILDFILE}.h.orig
|
2000-09-19 15:27:00 +02:00
|
|
|
${SED} \
|
2003-07-02 05:23:41 +02:00
|
|
|
-e 's@/usr/local/lib/@${PKG_SYSCONFDIR}/@' \
|
2001-11-06 21:04:46 +01:00
|
|
|
-e 's@DEFAULT_DEBUG.*2@DEFAULT_DEBUG 0@' \
|
2002-07-18 16:18:48 +02:00
|
|
|
<${WRKSRC}/pine/osdep/os-${BUILDFILE}.h.orig >${WRKSRC}/pine/osdep/os-${BUILDFILE}.h
|
1998-11-13 17:32:37 +01:00
|
|
|
@${RM} -rf ${WRKSRC}/pico
|
2002-10-09 01:31:01 +02:00
|
|
|
@${LN} -sf ${BUILDLINK_DIR}/include/pico ${WRKSRC}/pico
|
1997-11-22 06:41:33 +01:00
|
|
|
|
|
|
|
do-build:
|
2004-05-17 13:21:10 +02:00
|
|
|
cd ${WRKSRC} && ${_ULIMIT_CMD} \
|
2004-05-14 11:31:17 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ./build ${BUILDNAME} \
|
2004-11-08 18:10:24 +01:00
|
|
|
${PINE_LDAPCFLAGS} ${PINE_LDAPLIBS} \
|
2002-10-09 01:31:01 +02:00
|
|
|
PREFIX=${PREFIX} \
|
2004-12-18 17:20:36 +01:00
|
|
|
CC="${CC} ${CFLAGS}" \
|
|
|
|
EXTRALDFLAGS="${LDFLAGS} ${LIBS}"
|
1997-11-22 06:41:33 +01:00
|
|
|
|
|
|
|
do-install:
|
2002-01-02 01:46:55 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/pine ${PREFIX}/bin/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/rpdump ${PREFIX}/bin/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/rpload ${PREFIX}/bin/
|
1998-07-19 05:39:17 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pine
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/pine.1 ${PREFIX}/man/man1/pine.1
|
1998-01-24 21:36:06 +01:00
|
|
|
( ${ECHO} '# (This file is not part of the pine distribution! - HF)' ; \
|
|
|
|
${PREFIX}/bin/pine -conf ) | ${SED} \
|
1997-11-22 06:41:33 +01:00
|
|
|
-e 's|^\(use-only-domain-name\)=.*$$|\1=No|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' \
|
1999-11-11 18:40:16 +01:00
|
|
|
>${PREFIX}/share/examples/pine/pine.conf
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/pine.conf.fixed ${PREFIX}/share/examples/pine/
|
2000-11-09 04:37:26 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pine
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pine/contrib
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pine/contrib/utils
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/pine/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/krb5-setup ${PREFIX}/share/pine/contrib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/ldap-setup ${PREFIX}/share/pine/contrib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/utils/* ${PREFIX}/share/pine/contrib/utils
|
2001-11-27 04:12:54 +01:00
|
|
|
${CHMOD} +x ${PREFIX}/share/pine/contrib/utils/*.sh
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2004-05-02 02:22:20 +02:00
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.include "../../editors/pico/buildlink3.mk"
|
|
|
|
.include "../../mail/imap-uw/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2002-10-09 01:31:01 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|