summaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-29 05:43:28 +0000
committerjlam <jlam@pkgsrc.org>2004-03-29 05:43:28 +0000
commit6d92080aa240757729992f43156b2924bbda71c4 (patch)
tree2684bb3d4a41538be1b78668954f44c69a49033d /devel/ncurses
parent82cd68d38a1d8bd0262376d4a40e4c201e6c55b3 (diff)
downloadpkgsrc-6d92080aa240757729992f43156b2924bbda71c4.tar.gz
Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links) use the new format correctly.
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/builtin.mk20
1 files changed, 10 insertions, 10 deletions
diff --git a/devel/ncurses/builtin.mk b/devel/ncurses/builtin.mk
index 0911871ec22..c7607797fd1 100644
--- a/devel/ncurses/builtin.mk
+++ b/devel/ncurses/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.2 2004/03/20 19:28:46 jlam Exp $
+# $NetBSD: builtin.mk,v 1.3 2004/03/29 05:43:30 jlam Exp $
.if !defined(_BLNK_LIBNCURSES_FOUND)
_BLNK_LIBNCURSES_FOUND!= \
@@ -7,7 +7,7 @@ _BLNK_LIBNCURSES_FOUND!= \
else \
${ECHO} "yes"; \
fi
-MAKEFLAGS+= _BLNK_LIBNCURSES_FOUND=${_BLNK_LIBNCURSES_FOUND}
+BUILDLINK_VARS+= _BLNK_LIBNCURSES_FOUND
.endif
_NCURSES_H= /usr/include/curses.h
@@ -38,16 +38,11 @@ _NCURSES_VERSION!= \
} \
' ${_NCURSES_H}
BUILTIN_PKG.ncurses= ncurses-${_NCURSES_VERSION}
-MAKEFLAGS+= BUILTIN_PKG.ncurses=${BUILTIN_PKG.ncurses}
+BUILDLINK_VARS+= BUILTIN_PKG.ncurses
. endif
. endif
-MAKEFLAGS+= IS_BUILTIN.ncurses=${IS_BUILTIN.ncurses}
-.endif
-
-CHECK_BUILTIN.ncurses?= no
-.if !empty(CHECK_BUILTIN.ncurses:M[yY][eE][sS])
-USE_BUILTIN.ncurses= yes
-.endif
+BUILDLINK_VARS+= IS_BUILTIN.ncurses
+.endif # IS_BUILTIN.ncurses
.if !defined(USE_BUILTIN.ncurses)
USE_BUILTIN.ncurses?= ${IS_BUILTIN.ncurses}
@@ -100,6 +95,9 @@ USE_BUILTIN.ncurses= no
. endif
.endif # USE_BUILTIN.ncurses
+CHECK_BUILTIN.ncurses?= no
+.if !empty(CHECK_BUILTIN.ncurses:M[nN][oO])
+
.if !empty(USE_BUILTIN.ncurses:M[yY][eE][sS])
. if !empty(_BLNK_LIBNCURSES_FOUND:M[nN][oO])
BUILDLINK_TRANSFORM.ncurses+= -e "s|/curses\.h|/ncurses.h|g"
@@ -135,3 +133,5 @@ buildlink-ncurses-curses-h:
${BUILDLINK_DIR}/include/curses.h; \
fi
.endif
+
+.endif # CHECK_BUILTIN.ncurses