mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
c251346656
PR: ports/113070 Submitted by: Larry Rosenman <ler@lerctr.org> (maintainer) Approved by: stas (mentor)
76 lines
2.0 KiB
Makefile
76 lines
2.0 KiB
Makefile
# ports collection Makefile for: cone
|
|
# Whom: Matthias Andree <matthias.andree@gmx.de>
|
|
# Date created: 2003-06-19
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cone
|
|
PORTVERSION= 0.70
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= courier
|
|
|
|
MAINTAINER= ler@lerctr.org
|
|
COMMENT= Console based mail client with POP3/IMAP/SMAP support
|
|
|
|
LIB_DEPENDS= aspell.16:${PORTSDIR}/textproc/aspell
|
|
BUILD_DEPENDS= gpgv:${PORTSDIR}/security/gnupg1
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
USE_FAM= yes
|
|
USE_GETTEXT= yes
|
|
USE_ICONV= yes
|
|
USE_GNOME= libxml2
|
|
|
|
USE_BZIP2= yes
|
|
USE_PERL5= yes
|
|
USE_GMAKE= yes
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= -C --without-db --with-certdb --prefix=${PREFIX} --exec-prefix=${PREFIX}
|
|
|
|
CONFIGURE_ENV= REHASH="${PERL} ${SCRIPTDIR}/c_rehash" LDFLAGS=-L${LOCALBASE}/lib \
|
|
CPPFLAGS="${CPPFLAGS}"
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
MAN1= cone.1 leaf.1 mailtool.1
|
|
INSTALL_TARGET= install-strip
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 502010
|
|
IGNORE= not supported on FreeBSD versions before 5.2.1-RELEASE
|
|
.endif
|
|
|
|
.if ${OSVERSION} > 700032 || (${OSVERSION} < 700000 && ${OSVERSION} > 602106)
|
|
CPPFLAGS+= -D_XOPEN_SOURCE_EXTENDED
|
|
.elif exists(${LOCALBASE}/include/ncurses/ncurses.h) || defined(WITH_NCURSESW)
|
|
CPPFLAGS+= -I${WRKDIR} -D_XOPEN_SOURCE_EXTENDED
|
|
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
|
|
|
|
post-extract:
|
|
${MKDIR} ${WRKDIR}/ncursesw
|
|
${LN} -s ${LOCALBASE}/include/ncurses/ncurses.h ${WRKDIR}/ncursesw/curses.h
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-unicode
|
|
|
|
pre-everything::
|
|
@${ECHO_CMD} ""
|
|
@${ECHO_CMD} "to use multilanguage ( unicode ) MUA, please set WITH_NCURSESW"
|
|
@${ECHO_CMD} "or install devel/ncurses first"
|
|
@${ECHO_CMD} ""
|
|
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${PREFIX}/sbin/cone-sysconftool
|
|
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} POST-INSTALL
|
|
${RM} -f ${PREFIX}/share/cone/rootcerts/.0
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/ChangeLog ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|