From 030bd22749982d2dff6c52a6cda79e614de492d0 Mon Sep 17 00:00:00 2001 From: abs Date: Tue, 2 Apr 2002 14:28:28 +0000 Subject: Re-Introduce Linux packages to the wonders of readline --- devel/readline/buildlink.mk | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'devel') 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 -- cgit v1.2.3