summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorabs <abs>2002-04-02 14:28:28 +0000
committerabs <abs>2002-04-02 14:28:28 +0000
commit030bd22749982d2dff6c52a6cda79e614de492d0 (patch)
treeeb54083aa4dfc0c15b535b612649525ca8b4b651 /devel
parentd219fefbc169ed683e9e35de426bcd3fbb58a3f8 (diff)
downloadpkgsrc-030bd22749982d2dff6c52a6cda79e614de492d0.tar.gz
Re-Introduce Linux packages to the wonders of readline
Diffstat (limited to 'devel')
-rw-r--r--devel/readline/buildlink.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/devel/readline/buildlink.mk b/devel/readline/buildlink.mk
index 90a972773e4..48b58008081 100644
--- a/devel/readline/buildlink.mk
+++ b/devel/readline/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.16 2001/07/27 14:31:44 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.17 2002/04/02 14:28:28 abs Exp $
#
# This Makefile fragment is included by packages that use readline().
#
@@ -40,8 +40,14 @@ BUILDLINK_FILES.readline+= lib/libreadline.*
BUILDLINK_PREFIX.history= ${BUILDLINK_PREFIX.readline}
BUILDLINK_FILES.history+= lib/libhistory.*
-.else
-.if exists(/usr/include/readline.h)
+.elif ${OPSYS} == "Linux"
+BUILDLINK_PREFIX.readline= /usr
+BUILDLINK_FILES.readline= include/readline/*
+BUILDLINK_FILES.readline+= lib/libreadline.*
+
+BUILDLINK_PREFIX.history= /usr
+BUILDLINK_FILES.history+= lib/libhistory.*
+.elif exists(/usr/include/readline.h)
BUILDLINK_PREFIX.readline= /usr
BUILDLINK_FILES.readline= include/readline.h
BUILDLINK_FILES.readline+= lib/libedit.*
@@ -67,7 +73,6 @@ BUILDLINK_FILES.history+= lib/libedit.*
BUILDLINK_TRANSFORM.history= -e "s|libedit|libhistory|g"
REPLACE_LIBNAMES_SED+= -e "s|-lhistory|-ledit|g"
.endif
-.endif
BUILDLINK_TARGETS.readline= # empty
BUILDLINK_TARGETS.readline+= readline-buildlink