From c7384baf40cb8e65831fc96b8a2ce00e89e95e44 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Mon, 17 Dec 2012 03:29:29 +0000 Subject: [PATCH] - Support USE_READLINE. - Support USE_NCURSES. - Add LICENSE. - Add MAKE_JOBS_SAFE. - Trim header. PR: ports/172029 Submitted by: KATO Tsuguru --- mail/abook/Makefile | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/mail/abook/Makefile b/mail/abook/Makefile index 85f3b84c5827..e4ca050ac945 100644 --- a/mail/abook/Makefile +++ b/mail/abook/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: abook -# Date created: June 6th 2000 -# Whom: Yen-Ming Lee -# +# Created by: Yen-Ming Lee # $FreeBSD$ -# PORTNAME= abook PORTVERSION= 0.5.6 @@ -14,33 +10,37 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= An addressbook program with mutt mail client support -GNU_CONFIGURE= yes -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +LICENSE= GPLv2 -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.else -USE_GETTEXT= yes -PLIST_SUB+= NLS="" -.endif +OPTIONS_DEFINE= NLS DOCS + +USE_NCURSES= yes +USE_READLINE= yes +GNU_CONFIGURE= yes +MAKE_JOBS_SAFE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib MAN1= abook.1 MAN5= abookrc.5 PORTDOCS= ANNOUNCE AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README \ THANKS TODO -.include +.include -.if exists(${LOCALBASE}/lib/libreadline.so.6) -LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline +.if ${PORT_OPTIONS:MNLS} +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif -.include +.include