summaryrefslogtreecommitdiff
path: root/comms/plptools
diff options
context:
space:
mode:
authorjlam <jlam>2001-05-22 17:04:45 +0000
committerjlam <jlam>2001-05-22 17:04:45 +0000
commit0aa80198507e790a10219501b64dc4a1658d26b9 (patch)
treeabee6f74a0e978935c099e817d964b0b2a7842a2 /comms/plptools
parent4d37e2bd4e525a20bf3be61f81915d586f66187c (diff)
downloadpkgsrc-0aa80198507e790a10219501b64dc4a1658d26b9.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"