diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-29 18:04:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-29 18:04:30 +0000 |
commit | 432c0f1be53ca2f1b595320daa61281d6ee85e1e (patch) | |
tree | 711ad19b696bbe17f74fa68e2876c89423b3ffc3 /sysutils/amanda-client/Makefile | |
parent | 7e12d8528bef0446a595ba1b2e8de1f037835f37 (diff) | |
download | pkgsrc-432c0f1be53ca2f1b595320daa61281d6ee85e1e.tar.gz |
Use buildlink.mk to get readline dependency, and use libedit readline
emulation where possible. Only link readline into amrecover as it's the
only program that needs readline.
Diffstat (limited to 'sysutils/amanda-client/Makefile')
-rw-r--r-- | sysutils/amanda-client/Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/sysutils/amanda-client/Makefile b/sysutils/amanda-client/Makefile index ec7e5a24a4e..7b4f700ff53 100644 --- a/sysutils/amanda-client/Makefile +++ b/sysutils/amanda-client/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2001/02/17 17:42:09 wiz Exp $ +# $NetBSD: Makefile,v 1.19 2001/05/29 18:04:30 jlam Exp $ # FreeBSD Id: Makefile,v 1.9 1997/03/08 05:00:11 gpalmer Exp # @@ -11,7 +11,6 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.amanda.org/ COMMENT= Client part of Amanda, a network backup system -DEPENDS+= readline>=4.0:../../devel/readline DEPENDS+= gtar-1.12:../../archivers/gtar DEPENDS+= amanda-common-2.4.2:../../sysutils/amanda-common @@ -19,8 +18,24 @@ GNU_CONFIGURE= yes .include "../../mk/bsd.prefs.mk" .include "../../sysutils/amanda-common/Makefile.common" +.include "../../devel/readline/buildlink.mk" + +CPPFLAGS+= -I${BUILDLINK_INCDIR} +LDFLAGS+= -L${BUILDLINK_LIBDIR} CONFIGURE_ARGS+= --without-server --without-restore +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" + +# Prevent configure script from finding unnecessary libraries. We'll patch +# the amrecover Makefile to add the readline libraries as it's the only +# program that uses readline. +# +CONFIGURE_ENV+= ac_cv_lib_intl_main=no +CONFIGURE_ENV+= ac_cv_lib_termcap_tgetent=no +CONFIGURE_ENV+= ac_cv_lib_curses_tgetent=no +CONFIGURE_ENV+= ac_cv_lib_ncurses_tgetent=no +CONFIGURE_ENV+= ac_cv_lib_ncurses_tgetent=no +CONFIGURE_ENV+= ac_cv_lib_readline_readline=no BUILD_DEFS+= AMANDA_USER AMANDA_SMB AMANDA_VAR @@ -29,4 +44,6 @@ CONFIGURE_ARGS+= --with-smbclient DEPENDS+= samba>=2.0.0:../../net/samba .endif +pre-configure: ${BUILDLINK_TARGETS} + .include "../../mk/bsd.pkg.mk" |