- Support USE_READLINE.

- Support USE_NCURSES.
- Add LICENSE.
- Add MAKE_JOBS_SAFE.
- Trim header.

PR:		ports/172029
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
Marcelo Araujo 2012-12-17 03:29:29 +00:00
parent 003b16565e
commit c7384baf40
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309057

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: abook # Created by: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
# Date created: June 6th 2000
# Whom: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= abook PORTNAME= abook
PORTVERSION= 0.5.6 PORTVERSION= 0.5.6
@ -14,33 +10,37 @@ MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= An addressbook program with mutt mail client support COMMENT= An addressbook program with mutt mail client support
GNU_CONFIGURE= yes LICENSE= GPLv2
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if defined(WITHOUT_NLS) OPTIONS_DEFINE= NLS DOCS
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment " USE_NCURSES= yes
.else USE_READLINE= yes
USE_GETTEXT= yes GNU_CONFIGURE= yes
PLIST_SUB+= NLS="" MAKE_JOBS_SAFE= yes
.endif
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= abook.1 MAN1= abook.1
MAN5= abookrc.5 MAN5= abookrc.5
PORTDOCS= ANNOUNCE AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README \ PORTDOCS= ANNOUNCE AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README \
THANKS TODO THANKS TODO
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if exists(${LOCALBASE}/lib/libreadline.so.6) .if ${PORT_OPTIONS:MNLS}
LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif .endif
post-install: post-install:
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>