[BACK]Return to readline.builtin.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mk

File: [cvs.NetBSD.org] / pkgsrc / mk / readline.builtin.mk (download)

Revision 1.4, Sat Nov 23 09:10:14 2013 UTC (6 years ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-, HEAD
Changes since 1.3: +6 -6 lines

Use find-headers instead of find-files to detect builtin header files.

# $NetBSD: readline.builtin.mk,v 1.4 2013/11/23 09:10:14 obache Exp $
#

BUILTIN_PKG:=	editlinereadline

BUILTIN_FIND_LIBS:=		edit readline history
BUILTIN_FIND_HEADERS_VAR:=	H_EDITLINE H_READLINE
BUILTIN_FIND_HEADERS.H_READLINE=	readline/readline.h	\
					readline.h
BUILTIN_FIND_HEADERS.H_EDITLINE=	editline/readline.h	\
					readline/readline.h
BUILTIN_FIND_GREP.H_EDITLINE=	NetBSD
BUILTIN_FIND_GREP.H_READLINE=	\#define[ 	]*RL_VERSION_MAJOR

.include "../../mk/buildlink3/bsd.builtin.mk"

.if !defined(IS_BUILTIN.editlinereadline)
IS_BUILTIN.editlinereadline=	no
.  if empty(H_EDITLINE:M__nonexistent__) && \
      !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS])
IS_BUILTIN.editline=	yes
IS_BUILTIN.editlinereadline=	yes
.  elif empty(H_READLINE:M__nonexistent__) && \
	   !empty(BUILTIN_LIB_FOUND.readline:M[yY][eE][sS])
IS_BUILTIN.readline=	yes
IS_BUILTIN.editlinereadline=	yes
.  else
IS_BUILTIN.editline=	no
IS_BUILTIN.readline=	no
IS_BUILTIN.editlinereadline=	no
.  endif
.endif

.if !defined(USE_BUILTIN.editlinereadline)
.  if ${PREFER.editlinereadline} == "pkgsrc"
USE_BUILTIN.editlinereadline=	no
.  else
USE_BUILTIN.editlinereadline=	${IS_BUILTIN.editlinereadline}
.  endif
.endif

CHECK_BUILTIN.editlinereadline=	no
.if empty(CHECK_BUILTIN.editlinereadline:M[Nn][Oo])
.  if !empty(USE_BUILTIN.editlinereadline:M[Yy][Ee][Ss])
.    if !empty(_READLINE_TYPE:Meditline)
.      include "../../devel/editline/builtin.mk"
IS_BUILTIN.editlinereadline=	${USE_BUILTIN.editline}
.    else if !empty(_READLINE_TYPE:Mreadline)
.      include "../../devel/readline/builtin.mk"
IS_BUILTIN.editlinereadline=	${USE_BUILTIN.readline}
.    endif
.  endif
.endif