Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 02:24:51 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172029: mail/abook: Support USE_READLINE
Message-ID:  <20120926022451.946c099f2c892fc6fc193bee@yahoo.com>
Resent-Message-ID: <201209251810.q8PIAXVL022285@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172029
>Category:       ports
>Synopsis:       mail/abook: Support USE_READLINE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 18:10:33 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Support USE_READLINE
- Support USE_NCURSES
- Add LICENSE
- Add MAKE_JOBS_SAFE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/mail/abook/Makefile mail/abook/Makefile
--- /usr/ports/mail/abook/Makefile	2011-10-24 12:33:12.000000000 +0900
+++ mail/abook/Makefile	2012-09-25 03:36:35.000000000 +0900
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	abook
-# Date created:				June 6th 2000
-# Whom:	      				Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
-#
+# Created by: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
 # $FreeBSD: ports/mail/abook/Makefile,v 1.31 2011/10/24 03:33:12 stas Exp $
-#
 
 PORTNAME=	abook
 PORTVERSION=	0.5.6
@@ -14,33 +10,38 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	An addressbook program with mutt mail client support
 
+LICENSE=	GPLv2
+
+OPTIONS_DEFINE=	NLS DOCS
+OPTIONS_DEFAULT=NLS
+
+USE_NCURSES=	yes
+USE_READLINE=	yes
 GNU_CONFIGURE=	yes
-CFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+MAKE_JOBS_SAFE=	yes
 
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.else
-USE_GETTEXT=	yes
-PLIST_SUB+=	NLS=""
-.endif
+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 <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.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 <bsd.port.post.mk>
+.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120926022451.946c099f2c892fc6fc193bee>