summaryrefslogtreecommitdiff
path: root/comms/plptools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-22 17:04:45 +0000
committerjlam <jlam@pkgsrc.org>2001-05-22 17:04:45 +0000
commitd1e8aebb30ecdfed57ebc8e866687692f8e5e430 (patch)
treeabee6f74a0e978935c099e817d964b0b2a7842a2 /comms/plptools
parent0c7897ab342414d1f7be68462da74bb01acc6613 (diff)
downloadpkgsrc-d1e8aebb30ecdfed57ebc8e866687692f8e5e430.tar.gz
Use devel/readline/Makefile.readline to get readline support and note why
GNU readline is required. Only "-ltermcap" is needed, not "-ltermlib" to link against readline.
Diffstat (limited to 'comms/plptools')
-rw-r--r--comms/plptools/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/comms/plptools/Makefile b/comms/plptools/Makefile
index a45d65c2f78..0c9f0725d15 100644
--- a/comms/plptools/Makefile
+++ b/comms/plptools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2001/04/05 01:48:31 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.12 2001/05/22 17:04:45 jlam Exp $
#
DISTNAME= plptools-0.6
@@ -9,16 +9,22 @@ MASTER_SITES= ftp://ftp.to.com/pub/psion/tarballs/
MAINTAINER= sakamoto@netbsd.org
COMMENT= FTP-like and NFS-like access tools to talk to the PSION
-DEPENDS= readline>=4.0:../../devel/readline
-
-WRKSRC= ${WRKDIR}/${DISTNAME}
-
+GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
-GNU_CONFIGURE= YES
-CONFIGURE_ENV+= CPPFLAGS="-I${PREFIX}/include/" LIBS="-ltermlib"
+
+USE_GNU_READLINE= # uses rl_filename_quoting_desired flag
.include "../../mk/bsd.prefs.mk"
+.include "../../devel/readline/Makefile.readline"
+
CONFIGURE_ARGS+= --with-serial=${DEFAULT_SERIAL_DEVICE}
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
+CONFIGURE_ENV+= LIBS="${LIBS}"
+
+CPPFLAGS+= -I${WRKINCDIR}
+LIBS+= -ltermcap
+
+pre-configure: link-readline-headers link-readline-libs
.include "../../mk/bsd.pkg.mk"