Rename termlib.* to termcap.* to better document exactly what packages are trying to use (the termcap t*() API).diff -r1.62 -r1.63 pkgsrc/devel/libslang/Makefile
(jlam)
@@ -1,38 +1,38 @@ | @@ -1,38 +1,38 @@ | |||
1 | # $NetBSD: Makefile,v 1.62 2008/02/29 16:44:55 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.63 2008/02/29 22:41:13 jlam Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= slang-1.4.9 | 4 | DISTNAME= slang-1.4.9 | |
5 | PKGNAME= lib${DISTNAME} | 5 | PKGNAME= lib${DISTNAME} | |
6 | SVR4_PKGNAME= lslan | 6 | SVR4_PKGNAME= lslan | |
7 | PKGREVISION= 6 | 7 | PKGREVISION= 6 | |
8 | CATEGORIES= devel | 8 | CATEGORIES= devel | |
9 | MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/v1.4/ \ | 9 | MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/v1.4/ \ | |
10 | http://gd.tuwien.ac.at/editors/davis/slang/v1.4/ \ | 10 | http://gd.tuwien.ac.at/editors/davis/slang/v1.4/ \ | |
11 | ftp://ftp.ntua.gr/pub/lang/slang/slang/v1.4/ \ | 11 | ftp://ftp.ntua.gr/pub/lang/slang/slang/v1.4/ \ | |
12 | ftp://ftp.plig.org/pub/slang/v1.4/ | 12 | ftp://ftp.plig.org/pub/slang/v1.4/ | |
13 | EXTRACT_SUFX= .tar.bz2 | 13 | EXTRACT_SUFX= .tar.bz2 | |
14 | 14 | |||
15 | MAINTAINER= pkgsrc-users@NetBSD.org | 15 | MAINTAINER= pkgsrc-users@NetBSD.org | |
16 | HOMEPAGE= http://www.s-lang.org/ | 16 | HOMEPAGE= http://www.s-lang.org/ | |
17 | COMMENT= Routines for rapid alpha-numeric terminal applications development | 17 | COMMENT= Routines for rapid alpha-numeric terminal applications development | |
18 | 18 | |||
19 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 19 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
20 | PKG_DESTDIR_SUPPORT= user-destdir | 20 | PKG_DESTDIR_SUPPORT= user-destdir | |
21 | 21 | |||
22 | USE_TOOLS+= gmake | 22 | USE_TOOLS+= gmake | |
23 | USE_LIBTOOL= yes | 23 | USE_LIBTOOL= yes | |
24 | GNU_CONFIGURE= yes | 24 | GNU_CONFIGURE= yes | |
25 | DLOPEN_REQUIRE_PTHREADS=no | 25 | DLOPEN_REQUIRE_PTHREADS=no | |
26 | 26 | |||
27 | .include "../../mk/termlib.buildlink3.mk" | 27 | .include "../../mk/termcap.buildlink3.mk" | |
28 | 28 | |||
29 | .if ${TERMLIB_TYPE} == "termcap" | 29 | .if ${TERMCAP_TYPE} == "termcap" | |
30 | CONFIGURE_ENV+= TERMCAP=${BUILDLINK_LDADD.termlib:Q} | 30 | CONFIGURE_ENV+= TERMCAP=${BUILDLINK_LDADD.termcap:Q} | |
31 | CONFIGURE_ENV+= MISC_TERMINFO_DIRS=${PREFIX:Q}/share/terminfo | 31 | CONFIGURE_ENV+= MISC_TERMINFO_DIRS=${PREFIX:Q}/share/terminfo | |
32 | .else | 32 | .else | |
33 | CONFIGURE_ENV+= TERMCAP= | 33 | CONFIGURE_ENV+= TERMCAP= | |
34 | CONFIGURE_ENV+= MISC_TERMINFO_DIRS=${BUILDLINK_PREFIX.termlib:Q}/share/terminfo | 34 | CONFIGURE_ENV+= MISC_TERMINFO_DIRS=${BUILDLINK_PREFIX.termcap:Q}/share/terminfo | |
35 | .endif | 35 | .endif | |
36 | 36 | |||
37 | .include "../../mk/dlopen.buildlink3.mk" | 37 | .include "../../mk/dlopen.buildlink3.mk" | |
38 | .include "../../mk/bsd.pkg.mk" | 38 | .include "../../mk/bsd.pkg.mk" |
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.14 2008/02/29 16:44:55 jlam Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.15 2008/02/29 22:41:13 jlam Exp $ | |
2 | 2 | |||
3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | 3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | |
4 | LIBSLANG_BUILDLINK3_MK:= ${LIBSLANG_BUILDLINK3_MK}+ | 4 | LIBSLANG_BUILDLINK3_MK:= ${LIBSLANG_BUILDLINK3_MK}+ | |
5 | 5 | |||
6 | .include "../../mk/bsd.fast.prefs.mk" | 6 | .include "../../mk/bsd.fast.prefs.mk" | |
7 | 7 | |||
8 | .if !empty(BUILDLINK_DEPTH:M+) | 8 | .if !empty(BUILDLINK_DEPTH:M+) | |
9 | BUILDLINK_DEPENDS+= libslang | 9 | BUILDLINK_DEPENDS+= libslang | |
10 | .endif | 10 | .endif | |
11 | 11 | |||
12 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibslang} | 12 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibslang} | |
13 | BUILDLINK_PACKAGES+= libslang | 13 | BUILDLINK_PACKAGES+= libslang | |
14 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libslang | 14 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libslang | |
15 | 15 | |||
16 | .if !empty(LIBSLANG_BUILDLINK3_MK:M+) | 16 | .if !empty(LIBSLANG_BUILDLINK3_MK:M+) | |
17 | BUILDLINK_API_DEPENDS.libslang+= libslang>=1.4.9nb1 | 17 | BUILDLINK_API_DEPENDS.libslang+= libslang>=1.4.9nb1 | |
18 | BUILDLINK_ABI_DEPENDS.libslang+= libslang>=1.4.9nb4 | 18 | BUILDLINK_ABI_DEPENDS.libslang+= libslang>=1.4.9nb4 | |
19 | BUILDLINK_PKGSRCDIR.libslang?= ../../devel/libslang | 19 | BUILDLINK_PKGSRCDIR.libslang?= ../../devel/libslang | |
20 | .endif # LIBSLANG_BUILDLINK3_MK | 20 | .endif # LIBSLANG_BUILDLINK3_MK | |
21 | 21 | |||
22 | .include "../../mk/termlib.buildlink3.mk" | 22 | .include "../../mk/termcap.buildlink3.mk" | |
23 | 23 | |||
24 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} | 24 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |
@@ -1,33 +1,33 @@ | @@ -1,33 +1,33 @@ | |||
1 | # $NetBSD: Makefile,v 1.43 2008/02/27 18:16:37 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.44 2008/02/29 22:41:13 jlam Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= readline-5.2 | 4 | DISTNAME= readline-5.2 | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | CATEGORIES= devel | 6 | CATEGORIES= devel | |
7 | MASTER_SITES= ${MASTER_SITE_GNU:=readline/} | 7 | MASTER_SITES= ${MASTER_SITE_GNU:=readline/} | |
8 | 8 | |||
9 | #PATCH_SITES= ${MASTER_SITE_GNU:=readline/readline-5.1-patches/} | 9 | #PATCH_SITES= ${MASTER_SITE_GNU:=readline/readline-5.1-patches/} | |
10 | #PATCHFILES= readline51-001 | 10 | #PATCHFILES= readline51-001 | |
11 | 11 | |||
12 | MAINTAINER= pkgsrc-users@NetBSD.org | 12 | MAINTAINER= pkgsrc-users@NetBSD.org | |
13 | HOMEPAGE= http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html | 13 | HOMEPAGE= http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html | |
14 | COMMENT= GNU library that can recall and edit previous input | 14 | COMMENT= GNU library that can recall and edit previous input | |
15 | #LICENSE= gnu-gpl-v2 | 15 | #LICENSE= gnu-gpl-v2 | |
16 | 16 | |||
17 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 17 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
18 | PKG_DESTDIR_SUPPORT= user-destdir | 18 | PKG_DESTDIR_SUPPORT= user-destdir | |
19 | 19 | |||
20 | GNU_CONFIGURE= yes | 20 | GNU_CONFIGURE= yes | |
21 | USE_LIBTOOL= yes | 21 | USE_LIBTOOL= yes | |
22 | INFO_FILES= # PLIST | 22 | INFO_FILES= # PLIST | |
23 | 23 | |||
24 | BUILD_TARGET= all-libtool | 24 | BUILD_TARGET= all-libtool | |
25 | INSTALL_TARGET= install-libtool | 25 | INSTALL_TARGET= install-libtool | |
26 | 26 | |||
27 | .include "../../mk/termlib.buildlink3.mk" | 27 | .include "../../mk/termcap.buildlink3.mk" | |
28 | 28 | |||
29 | .if ${TERMLIB_TYPE} == "curses" | 29 | .if ${TERMCAP_TYPE} == "curses" | |
30 | CONFIGURE_ARGS+= --with-curses | 30 | CONFIGURE_ARGS+= --with-curses | |
31 | .endif | 31 | .endif | |
32 | 32 | |||
33 | .include "../../mk/bsd.pkg.mk" | 33 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.29 2008/02/27 18:16:37 jlam Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.30 2008/02/29 22:41:13 jlam Exp $ | |
2 | 2 | |||
3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | 3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | |
4 | READLINE_BUILDLINK3_MK:= ${READLINE_BUILDLINK3_MK}+ | 4 | READLINE_BUILDLINK3_MK:= ${READLINE_BUILDLINK3_MK}+ | |
5 | 5 | |||
6 | .if !empty(BUILDLINK_DEPTH:M+) | 6 | .if !empty(BUILDLINK_DEPTH:M+) | |
7 | BUILDLINK_DEPENDS+= readline | 7 | BUILDLINK_DEPENDS+= readline | |
8 | .endif | 8 | .endif | |
9 | 9 | |||
10 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nreadline} | 10 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nreadline} | |
11 | BUILDLINK_PACKAGES+= readline | 11 | BUILDLINK_PACKAGES+= readline | |
12 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}readline | 12 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}readline | |
13 | 13 | |||
14 | .if !empty(READLINE_BUILDLINK3_MK:M+) | 14 | .if !empty(READLINE_BUILDLINK3_MK:M+) | |
@@ -20,29 +20,29 @@ BUILDLINK_FILES.readline+= include/histo | @@ -20,29 +20,29 @@ BUILDLINK_FILES.readline+= include/histo | |||
20 | BUILDLINK_FILES.readline+= include/readline.h | 20 | BUILDLINK_FILES.readline+= include/readline.h | |
21 | 21 | |||
22 | BUILDLINK_FNAME_TRANSFORM.readline+= \ | 22 | BUILDLINK_FNAME_TRANSFORM.readline+= \ | |
23 | -e "s|include/history\.h|include/readline/history.h|g" \ | 23 | -e "s|include/history\.h|include/readline/history.h|g" \ | |
24 | -e "s|include/readline\.h|include/readline/readline.h|g" | 24 | -e "s|include/readline\.h|include/readline/readline.h|g" | |
25 | 25 | |||
26 | # Many GNU configure scripts don't check for the correct terminal library | 26 | # Many GNU configure scripts don't check for the correct terminal library | |
27 | # when testing for -lreadline. If BROKEN_READLINE_DETECTION is set to | 27 | # when testing for -lreadline. If BROKEN_READLINE_DETECTION is set to | |
28 | # "yes", then automatically add the right one. | 28 | # "yes", then automatically add the right one. | |
29 | # | 29 | # | |
30 | . include "../../mk/bsd.fast.prefs.mk" | 30 | . include "../../mk/bsd.fast.prefs.mk" | |
31 | BROKEN_READLINE_DETECTION?= no | 31 | BROKEN_READLINE_DETECTION?= no | |
32 | . if !empty(BROKEN_READLINE_DETECTION:M[yY][eE][sS]) | 32 | . if !empty(BROKEN_READLINE_DETECTION:M[yY][eE][sS]) | |
33 | BUILDLINK_TRANSFORM+= l:readline:readline:${BUILDLINK_LIBNAME.termlib} | 33 | BUILDLINK_TRANSFORM+= l:readline:readline:${BUILDLINK_LIBNAME.termcap} | |
34 | . endif | 34 | . endif | |
35 | .endif # READLINE_BUILDLINK3_MK | 35 | .endif # READLINE_BUILDLINK3_MK | |
36 | 36 | |||
37 | CHECK_BUILTIN.readline:= yes | 37 | CHECK_BUILTIN.readline:= yes | |
38 | .include "../../devel/readline/builtin.mk" | 38 | .include "../../devel/readline/builtin.mk" | |
39 | CHECK_BUILTIN.readline:= no | 39 | CHECK_BUILTIN.readline:= no | |
40 | 40 | |||
41 | # A built-in readline is always going to use a built-in termlib. | 41 | # A built-in readline is always going to use a built-in termcap. | |
42 | .if !empty(USE_BUILTIN.readline:M[yY][eE][sS]) | 42 | .if !empty(USE_BUILTIN.readline:M[yY][eE][sS]) | |
43 | USE_BUILTIN.termlib= yes | 43 | USE_BUILTIN.termcap= yes | |
44 | .endif | 44 | .endif | |
45 | 45 | |||
46 | .include "../../mk/termlib.buildlink3.mk" | 46 | .include "../../mk/termcap.buildlink3.mk" | |
47 | 47 | |||
48 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} | 48 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: builtin.mk,v 1.16 2008/02/27 18:16:37 jlam Exp $ | 1 | # $NetBSD: builtin.mk,v 1.17 2008/02/29 22:41:13 jlam Exp $ | |
2 | 2 | |||
3 | BUILTIN_PKG:= readline | 3 | BUILTIN_PKG:= readline | |
4 | 4 | |||
5 | BUILTIN_FIND_LIBS:= edit readline history | 5 | BUILTIN_FIND_LIBS:= edit readline history | |
6 | BUILTIN_FIND_FILES_VAR:= H_READLINE _BLTN_H_READLINE | 6 | BUILTIN_FIND_FILES_VAR:= H_READLINE _BLTN_H_READLINE | |
7 | BUILTIN_FIND_FILES.H_READLINE= /usr/include/readline/readline.h \ | 7 | BUILTIN_FIND_FILES.H_READLINE= /usr/include/readline/readline.h \ | |
8 | /usr/include/readline.h | 8 | /usr/include/readline.h | |
9 | BUILTIN_FIND_FILES._BLTN_H_READLINE= \ | 9 | BUILTIN_FIND_FILES._BLTN_H_READLINE= \ | |
10 | /usr/include/readline/readline.h \ | 10 | /usr/include/readline/readline.h \ | |
11 | /usr/include/readline.h | 11 | /usr/include/readline.h | |
12 | BUILTIN_FIND_GREP.H_READLINE= \#define[ ]*RL_VERSION_MAJOR | 12 | BUILTIN_FIND_GREP.H_READLINE= \#define[ ]*RL_VERSION_MAJOR | |
13 | 13 | |||
14 | .include "../../mk/buildlink3/bsd.builtin.mk" | 14 | .include "../../mk/buildlink3/bsd.builtin.mk" | |
@@ -99,26 +99,26 @@ USE_BUILTIN.readline= no | @@ -99,26 +99,26 @@ USE_BUILTIN.readline= no | |||
99 | . endif | 99 | . endif | |
100 | .endif | 100 | .endif | |
101 | 101 | |||
102 | ### | 102 | ### | |
103 | ### The section below only applies if we are not including this file | 103 | ### The section below only applies if we are not including this file | |
104 | ### solely to determine whether a built-in implementation exists. | 104 | ### solely to determine whether a built-in implementation exists. | |
105 | ### | 105 | ### | |
106 | CHECK_BUILTIN.readline?= no | 106 | CHECK_BUILTIN.readline?= no | |
107 | .if !empty(CHECK_BUILTIN.readline:M[nN][oO]) | 107 | .if !empty(CHECK_BUILTIN.readline:M[nN][oO]) | |
108 | 108 | |||
109 | . if !empty(USE_BUILTIN.readline:M[yY][eE][sS]) | 109 | . if !empty(USE_BUILTIN.readline:M[yY][eE][sS]) | |
110 | . if !empty(BUILTIN_LIB_FOUND.history:M[Nn][Oo]) && \ | 110 | . if !empty(BUILTIN_LIB_FOUND.history:M[Nn][Oo]) && \ | |
111 | !empty(BUILTIN_LIB_FOUND.readline:M[Yy][Ee][Ss]) | 111 | !empty(BUILTIN_LIB_FOUND.readline:M[Yy][Ee][Ss]) | |
112 | BUILDLINK_TRANSFORM+= l:history:readline:${BUILTIN_LIBNAME.termlib} | 112 | BUILDLINK_TRANSFORM+= l:history:readline:${BUILTIN_LIBNAME.termcap} | |
113 | . endif | 113 | . endif | |
114 | . if !empty(BUILTIN_LIB_FOUND.history:M[nN][oO]) && \ | 114 | . if !empty(BUILTIN_LIB_FOUND.history:M[nN][oO]) && \ | |
115 | !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS]) | 115 | !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS]) | |
116 | BUILDLINK_TRANSFORM+= l:history:edit:${BUILTIN_LIBNAME.termlib} | 116 | BUILDLINK_TRANSFORM+= l:history:edit:${BUILTIN_LIBNAME.termcap} | |
117 | . endif | 117 | . endif | |
118 | . if !empty(BUILTIN_LIB_FOUND.readline:M[nN][oO]) && \ | 118 | . if !empty(BUILTIN_LIB_FOUND.readline:M[nN][oO]) && \ | |
119 | !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS]) | 119 | !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS]) | |
120 | BUILDLINK_TRANSFORM+= l:readline:edit:${BUILTIN_LIBNAME.termlib} | 120 | BUILDLINK_TRANSFORM+= l:readline:edit:${BUILTIN_LIBNAME.termcap} | |
121 | . endif | 121 | . endif | |
122 | . endif | 122 | . endif | |
123 | 123 | |||
124 | .endif # CHECK_BUILTIN.readline | 124 | .endif # CHECK_BUILTIN.readline |
# $NetBSD: termcap.buildlink3.mk,v 1.1 2008/02/29 22:41:13 jlam Exp $
#
# This Makefile fragment is meant to be included by packages that require
# a termcap implementation that supports the basic termcap functions:
#
# tgetent, tgetstr, tgetflag, tgetnum, tgoto, tputs
#
# === Variables set by this file ===
#
# TERMCAP_TYPE
# The name of the selected termcap implementation.
TERMCAP_BUILDLINK3_MK:= ${TERMCAP_BUILDLINK3_MK}+
.include "bsd.fast.prefs.mk"
.if !empty(TERMCAP_BUILDLINK3_MK:M+)
CHECK_BUILTIN.termcap:= yes
. include "termcap.builtin.mk"
CHECK_BUILTIN.termcap:= no
. if !empty(USE_BUILTIN.termcap:M[yY][eE][sS])
. if defined(BUILTIN_LIBNAME.termcap)
TERMCAP_TYPE= ${BUILTIN_LIBNAME.termcap}
. else
TERMCAP_TYPE= none
. endif
. else
TERMCAP_TYPE= curses
. endif
BUILD_DEFS+= TERMCAP_TYPE
.endif # TERMCAP_BUILDLINK3_MK
.if ${TERMCAP_TYPE} == "none"
PKG_FAIL_REASON= "No usable termcap library found on the system."
.elif (${TERMCAP_TYPE} == "termcap") || \
(${TERMCAP_TYPE} == "tinfo")
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ntermcap}
BUILDLINK_PACKAGES+= termcap
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}termcap
BUILDLINK_LIBNAME.termcap?= ${BUILTIN_LIBNAME.termcap}
BUILDLINK_LDADD.termcap?= ${BUILDLINK_LIBNAME.termcap:S/^/-l/:S/^-l$//}
BUILDLINK_BUILTIN_MK.termcap= ../../mk/termcap.builtin.mk
.elif ${TERMCAP_TYPE} == "curses"
. include "../../mk/curses.buildlink3.mk"
BUILDLINK_PREFIX.termcap?= ${BUILDLINK_PREFIX.curses}
BUILDLINK_LIBNAME.termcap?= ${BUILDLINK_LIBNAME.curses}
BUILDLINK_LDADD.termcap?= ${BUILDLINK_LDADD.curses}
.endif
# $NetBSD: termcap.builtin.mk,v 1.1 2008/02/29 22:41:13 jlam Exp $
BUILTIN_PKG:= termcap
BUILTIN_FIND_LIBS:= termcap tinfo curses
.include "buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
.if !defined(IS_BUILTIN.termcap)
IS_BUILTIN.termcap= no
. if !empty(BUILTIN_LIB_FOUND.termcap:M[yY][eE][sS]) || \
!empty(BUILTIN_LIB_FOUND.tinfo:M[yY][eE][sS]) || \
!empty(BUILTIN_LIB_FOUND.curses:M[yY][eE][sS])
IS_BUILTIN.termcap= yes
. endif
.endif
MAKEVARS+= IS_BUILTIN.termcap
###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.termcap)
. if ${PREFER.termcap} == "pkgsrc"
USE_BUILTIN.termcap= no
. else
USE_BUILTIN.termcap= ${IS_BUILTIN.termcap}
. endif # PREFER.termcap
.endif
MAKEVARS+= USE_BUILTIN.termcap
# Define BUILTIN_LIBNAME.termcap to be the base name of the built-in
# termcap library.
#
.if !empty(BUILTIN_LIB_FOUND.termcap:M[yY][eE][sS])
BUILTIN_LIBNAME.termcap= termcap
.elif !empty(BUILTIN_LIB_FOUND.tinfo:M[yY][eE][sS])
BUILTIN_LIBNAME.termcap= tinfo
.elif !empty(BUILTIN_LIB_FOUND.curses:M[yY][eE][sS])
BUILTIN_LIBNAME.termcap= curses
.endif
###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
###
CHECK_BUILTIN.termcap?= no
.if !empty(CHECK_BUILTIN.termcap:M[nN][oO])
. if !empty(USE_BUILTIN.termcap:M[yY][eE][sS])
BUILDLINK_LIBNAME.termcap= ${BUILTIN_LIBNAME.termcap}
. endif
.endif # CHECK_BUILTIN.termcap
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.65 2008/02/28 08:14:41 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.66 2008/02/29 22:41:13 jlam Exp $ | |
2 | 2 | |||
3 | DISTNAME= heimdal-1.1 | 3 | DISTNAME= heimdal-1.1 | |
4 | CATEGORIES= security | 4 | CATEGORIES= security | |
5 | MASTER_SITES= http://www.h5l.org/dist/src/ | 5 | MASTER_SITES= http://www.h5l.org/dist/src/ | |
6 | 6 | |||
7 | MAINTAINER= lha@NetBSD.org | 7 | MAINTAINER= lha@NetBSD.org | |
8 | HOMEPAGE= http://www.h5l.org/ | 8 | HOMEPAGE= http://www.h5l.org/ | |
9 | COMMENT= Kerberos 5 implementation | 9 | COMMENT= Kerberos 5 implementation | |
10 | 10 | |||
11 | CONFLICTS+= arla-[0-9]* | 11 | CONFLICTS+= arla-[0-9]* | |
12 | CONFLICTS+= mit-krb5-[0-9]* | 12 | CONFLICTS+= mit-krb5-[0-9]* | |
13 | CONFLICTS+= openafs-[0-9]* | 13 | CONFLICTS+= openafs-[0-9]* | |
14 | CONFLICTS+= gss-[0-9]* | 14 | CONFLICTS+= gss-[0-9]* | |
@@ -40,27 +40,27 @@ CONFIGURE_ENV+= COMPILE_ET=no # build H | @@ -40,27 +40,27 @@ CONFIGURE_ENV+= COMPILE_ET=no # build H | |||
40 | 40 | |||
41 | CFLAGS.Darwin+= -DBIND_8_COMPAT | 41 | CFLAGS.Darwin+= -DBIND_8_COMPAT | |
42 | 42 | |||
43 | # Though Solaris has a <vis.h> header, it does something very unrelated | 43 | # Though Solaris has a <vis.h> header, it does something very unrelated | |
44 | # to the BSD <vis.h> header. | 44 | # to the BSD <vis.h> header. | |
45 | # | 45 | # | |
46 | OPSYSVARS+= CONFIGURE_ENV | 46 | OPSYSVARS+= CONFIGURE_ENV | |
47 | CONFIGURE_ENV.SunOS+= ac_cv_header_vis_h=no | 47 | CONFIGURE_ENV.SunOS+= ac_cv_header_vis_h=no | |
48 | 48 | |||
49 | # Heimdal's configure script expects to find the readline.h header as | 49 | # Heimdal's configure script expects to find the readline.h header as | |
50 | # <readline.h>. Also force the configure script to use the terminal | 50 | # <readline.h>. Also force the configure script to use the terminal | |
51 | # library needed by the readline library. | 51 | # library needed by the readline library. | |
52 | # | 52 | # | |
53 | CONFIGURE_ENV+= ac_cv_funclib_tgetent=${BUILDLINK_LDADD.termlib:Q} | 53 | CONFIGURE_ENV+= ac_cv_funclib_tgetent=${BUILDLINK_LDADD.termcap:Q} | |
54 | CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} | 54 | CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} | |
55 | CPPFLAGS+= -I${BUILDLINK_PREFIX.readline}/include/readline | 55 | CPPFLAGS+= -I${BUILDLINK_PREFIX.readline}/include/readline | |
56 | 56 | |||
57 | .if ${OPSYS} == "IRIX" | 57 | .if ${OPSYS} == "IRIX" | |
58 | PLIST_SUBST+= IF_IRIX="" | 58 | PLIST_SUBST+= IF_IRIX="" | |
59 | .else | 59 | .else | |
60 | PLIST_SUBST+= IF_IRIX="@comment " | 60 | PLIST_SUBST+= IF_IRIX="@comment " | |
61 | .endif | 61 | .endif | |
62 | 62 | |||
63 | OWN_DIRS_PERMS= ${HEIMDAL_HDB_DIR} ${ROOT_USER} ${ROOT_GROUP} 0700 | 63 | OWN_DIRS_PERMS= ${HEIMDAL_HDB_DIR} ${ROOT_USER} ${ROOT_GROUP} 0700 | |
64 | SPECIAL_PERMS+= ${PREFIX}/bin/otp ${SETUID_ROOT_PERMS} | 64 | SPECIAL_PERMS+= ${PREFIX}/bin/otp ${SETUID_ROOT_PERMS} | |
65 | SPECIAL_PERMS= ${PREFIX}/bin/${KRB5_PREFIX}su ${SETUID_ROOT_PERMS} | 65 | SPECIAL_PERMS= ${PREFIX}/bin/${KRB5_PREFIX}su ${SETUID_ROOT_PERMS} | |
66 | RCD_SCRIPTS= kadmind kcm kdc kpasswdd | 66 | RCD_SCRIPTS= kadmind kcm kdc kpasswdd |