head	1.12;
access;
symbols
	RELENG_6_4_0_RELEASE:1.10.10.1
	RELENG_6_4:1.10.10.1.0.4
	RELENG_6_4_BP:1.10.10.1
	RELENG_6_3_0_RELEASE:1.10.10.1
	RELENG_6_3:1.10.10.1.0.2
	RELENG_6_3_BP:1.10.10.1
	RELENG_6_2_0_RELEASE:1.10
	RELENG_6_2:1.10.0.18
	RELENG_6_2_BP:1.10
	RELENG_5_5_0_RELEASE:1.10
	RELENG_5_5:1.10.0.16
	RELENG_5_5_BP:1.10
	RELENG_6_1_0_RELEASE:1.10
	RELENG_6_1:1.10.0.14
	RELENG_6_1_BP:1.10
	RELENG_6_0_0_RELEASE:1.10
	RELENG_6_0:1.10.0.12
	RELENG_6_0_BP:1.10
	RELENG_6:1.10.0.10
	RELENG_6_BP:1.10
	RELENG_5_4_0_RELEASE:1.10
	RELENG_5_4:1.10.0.8
	RELENG_5_4_BP:1.10
	RELENG_4_11_0_RELEASE:1.2.2.4
	RELENG_4_11:1.2.2.4.0.16
	RELENG_4_11_BP:1.2.2.4
	RELENG_5_3_0_RELEASE:1.10
	RELENG_5_3:1.10.0.6
	RELENG_5_3_BP:1.10
	RELENG_5:1.10.0.4
	RELENG_5_BP:1.10
	RELENG_4_10_0_RELEASE:1.2.2.4
	RELENG_4_10:1.2.2.4.0.14
	RELENG_4_10_BP:1.2.2.4
	RELENG_5_2_1_RELEASE:1.10
	RELENG_5_2_0_RELEASE:1.10
	RELENG_5_2:1.10.0.2
	RELENG_5_2_BP:1.10
	RELENG_4_9_0_RELEASE:1.2.2.4
	RELENG_4_9:1.2.2.4.0.12
	RELENG_4_9_BP:1.2.2.4
	RELENG_5_1_0_RELEASE:1.9
	RELENG_5_1:1.9.0.4
	RELENG_5_1_BP:1.9
	RELENG_4_8_0_RELEASE:1.2.2.4
	RELENG_4_8:1.2.2.4.0.10
	RELENG_4_8_BP:1.2.2.4
	RELENG_5_0_0_RELEASE:1.9
	RELENG_5_0:1.9.0.2
	RELENG_5_0_BP:1.9
	RELENG_4_7_0_RELEASE:1.2.2.4
	RELENG_4_7:1.2.2.4.0.8
	RELENG_4_7_BP:1.2.2.4
	RELENG_4_6_2_RELEASE:1.2.2.4
	RELENG_4_6_1_RELEASE:1.2.2.4
	RELENG_4_6_0_RELEASE:1.2.2.4
	RELENG_4_6:1.2.2.4.0.6
	RELENG_4_6_BP:1.2.2.4
	RELENG_4_5_0_RELEASE:1.2.2.4
	RELENG_4_5:1.2.2.4.0.4
	RELENG_4_5_BP:1.2.2.4
	RELENG_4_4_0_RELEASE:1.2.2.4
	RELENG_4_4:1.2.2.4.0.2
	RELENG_4_4_BP:1.2.2.4
	RELENG_4_3_0_RELEASE:1.2.2.3
	RELENG_4_3:1.2.2.3.0.2
	RELENG_4_3_BP:1.2.2.3
	RELENG_4_2_0_RELEASE:1.2.2.2
	RELENG_4_1_1_RELEASE:1.2.2.1
	PRE_SMPNG:1.3
	RELENG_4_1_0_RELEASE:1.2.2.1
	RELENG_4_0_0_RELEASE:1.2
	RELENG_4:1.2.0.2
	RELENG_4_BP:1.2;
locks; strict;
comment	@# @;


1.12
date	2007.01.20.07.49.42;	author rafan;	state dead;
branches;
next	1.11;

1.11
date	2005.11.10.18.07.06;	author ru;	state Exp;
branches;
next	1.10;

1.10
date	2003.06.06.13.46.55;	author kuriyama;	state Exp;
branches
	1.10.10.1;
next	1.9;

1.9
date	2002.05.21.07.08.30;	author peter;	state Exp;
branches;
next	1.8;

1.8
date	2001.05.17.08.30.09;	author peter;	state Exp;
branches;
next	1.7;

1.7
date	2001.03.27.17.27.07;	author ru;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.05.12.38.22;	author tg;	state Exp;
branches;
next	1.5;

1.5
date	2000.10.11.08.20.37;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	2000.10.11.08.14.44;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	2000.05.24.09.01.23;	author tg;	state Exp;
branches;
next	1.2;

1.2
date	2000.01.14.07.57.35;	author rgrimes;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	99.09.05.05.32.46;	author peter;	state Exp;
branches;
next	;

1.10.10.1
date	2007.04.06.17.52.05;	author rafan;	state dead;
branches;
next	;

1.2.2.1
date	2000.05.25.09.54.28;	author tg;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	2000.10.12.18.41.05;	author peter;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2000.12.07.12.23.57;	author tg;	state Exp;
branches;
next	1.2.2.4;

1.2.2.4
date	2001.04.25.10.04.33;	author ru;	state Exp;
branches;
next	1.2.2.5;

1.2.2.5
date	2012.11.17.07.23.57;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Retire old ncurses build glue

Approved by:	delphij
@
text
@# Makefile for libmenu
# $FreeBSD: src/lib/libmenu/Makefile,v 1.11 2005/11/10 18:07:06 ru Exp $

NCURSES=${.CURDIR}/../../contrib/ncurses

.PATH:	${NCURSES}/menu ${NCURSES}/include
.PATH:  ${NCURSES}/man

LIB=    menu
DPADD=	${LIBNCURSES}
LDADD=	-lncurses
AWK?=	awk

SRCS=	ncurses_def.h \
	m_attribs.c m_cursor.c m_driver.c m_format.c m_global.c m_hook.c \
	m_item_cur.c m_item_nam.c m_item_new.c m_item_opt.c m_item_top.c \
	m_item_use.c m_item_val.c m_item_vis.c m_items.c m_new.c m_opts.c \
	m_pad.c m_pattern.c m_post.c m_req_name.c m_scale.c m_spacing.c \
	m_sub.c m_userptr.c m_win.c
INCS=	${NCURSES}/menu/menu.h ${NCURSES}/menu/eti.h

CLEANFILES+=	ncurses_def.h
CFLAGS+= -I.
.if exists(${.OBJDIR}/../libncurses)
CFLAGS+= -I${.OBJDIR}/../libncurses
.endif
CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \
	-Wall -DNDEBUG -DHAVE_CONFIG_H

ncurses_def.h:	MKncurses_def.sh ncurses_defs
	AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
	    ${NCURSES}/include/ncurses_defs > ncurses_def.h

MANx=	menu.3x menu_attributes.3x menu_cursor.3x \
	menu_driver.3x menu_format.3x menu_hook.3x menu_items.3x \
	menu_mark.3x menu_new.3x menu_opts.3x menu_pattern.3x \
	menu_post.3x menu_requestname.3x menu_spacing.3x \
	menu_userptr.3x menu_win.3x mitem_current.3x mitem_name.3x \
	mitem_new.3x mitem_opts.3x mitem_userptr.3x mitem_value.3x \
	mitem_visible.3x

# Generate the MAN list from MANx
.for page in ${MANx}
CLEANFILES+=${page:T:S/x$//g}
MAN+=${page:T:S/x$//g}
${page:T:S/x$//g}: ${page}
	cat ${.ALLSRC} > ${.TARGET}
.endfor

MLINKS+=menu_attributes.3 menu_back.3 menu_attributes.3 menu_fore.3 \
	menu_attributes.3 menu_grey.3 menu_attributes.3 menu_pad.3 \
	menu_attributes.3 set_menu_back.3 menu_attributes.3 set_menu_fore.3 \
	menu_attributes.3 set_menu_grey.3 menu_attributes.3 set_menu_pad.3
MLINKS+=menu_cursor.3 pos_menu_cursor.3
MLINKS+=menu_format.3 set_menu_format.3
MLINKS+=menu_hook.3 item_init.3 menu_hook.3 item_term.3 \
	menu_hook.3 menu_init.3 menu_hook.3 menu_term.3 \
	menu_hook.3 set_item_init.3 menu_hook.3 set_item_term.3 \
	menu_hook.3 set_menu_init.3 menu_hook.3 set_menu_term.3
MLINKS+=menu_items.3 item_count.3 menu_items.3 set_menu_items.3
MLINKS+=menu_mark.3 set_menu_mark.3
MLINKS+=menu_new.3 free_menu.3 menu_new.3 new_menu.3
MLINKS+=menu_opts.3 menu_opts_off.3 menu_opts.3 menu_opts_on.3
MLINKS+=menu_pattern.3 set_menu_pattern.3
MLINKS+=menu_post.3 post_menu.3 menu_post.3 unpost_menu.3
MLINKS+=menu_requestname.3 menu_request_by_name.3 \
	menu_requestname.3 menu_request_name.3
MLINKS+=menu_spacing.3 set_menu_spacing.3
MLINKS+=menu_userptr.3 set_menu_userptr.3
MLINKS+=menu_win.3 menu_sub.3 menu_win.3 scale_menu.3 \
	menu_win.3 set_menu_sub.3 menu_win.3 set_menu_win.3
MLINKS+=mitem_current.3 current_item.3 mitem_current.3 item_index.3 \
	mitem_current.3 set_top_row.3 mitem_current.3 top_row.3 \
	mitem_current.3 set_current_item.3
MLINKS+=mitem_name.3 item_description.3 mitem_name.3 item_name.3
MLINKS+=mitem_new.3 free_item.3 mitem_new.3 new_item.3
MLINKS+=mitem_opts.3 item_opts.3 mitem_opts.3 item_opts_off.3 \
	mitem_opts.3 item_opts_on.3 mitem_opts.3 set_item_opts.3 \
	mitem_opts.3 set_menu_opts.3
MLINKS+=mitem_userptr.3 item_userptr.3 mitem_userptr.3 set_item_userptr.3
MLINKS+=mitem_value.3 item_value.3 mitem_value.3 set_item_value.3
MLINKS+=mitem_visible.3 item_visible.3

.include <bsd.lib.mk>
@


1.11
log
@Add missing shared library interdependencies.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.10
log
@Use
	cat ${.ALLSRC} > ${.TARGET}
rather than
	ln -sf ${.ALLSRC} ${.TARGET}
not to depends on absolute-path of symbolic links.

Commented by:  marcel, obrien, bde
@
text
@d10 2
@


1.10.10.1
log
@MFC: ncurses + wide character support from HEAD which include:
  - new ncurses build framework
  - enable ncurses wide character support

Approved by:	delphij (mentor)
Tested by:	several people on stable@@
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.10 2003/06/06 13:46:55 kuriyama Exp $
@


1.9
log
@Make this a little easier to build standalone.  (same change as libpanel)
@
text
@d45 1
a45 1
	ln -s ${.ALLSRC} ${.TARGET}
@


1.8
log
@Update for ncurses 5.2-20010512 import
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.7 2001/03/27 17:27:07 ru Exp $
d21 5
a25 1
CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \
@


1.7
log
@MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.6 2000/12/05 12:38:22 tg Exp $
d28 1
a28 1
MANx=	menu.3x menu_attribs.3x menu_attributes.3x menu_cursor.3x \
@


1.6
log
@Install manpages, including appropriate MLINKS.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.5 2000/10/11 08:20:37 peter Exp $
d28 1
a28 1
MAN3x=	menu.3x menu_attribs.3x menu_attributes.3x menu_cursor.3x \
d36 5
a40 6
# Generate the MAN3 list from MAN3x
.for page in ${MAN3x}
CLEANFILES+=${page:T:S/3x$/3/g}
MAN3+=${page:T:S/3x$/3/g}
all-man: ${page:T:S/3x$/3/g}
${page:T:S/3x$/3/g}: ${page}
a78 2

.SUFFIXES: .3x .3
@


1.5
log
@Oops, beforedepend isn't needed.  The build problem I had was due to
something else.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.4 2000/10/11 08:14:44 peter Exp $
d7 1
d28 51
d80 2
@


1.4
log
@Update after ncurses 20001009 import
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.3 2000/05/24 09:01:23 tg Exp $
a21 2

beforedepend:	ncurses_def.h
@


1.3
log
@Add missing source files. Sort SRCS.

PR:		18631
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.2 2000/01/14 07:57:35 rgrimes Exp $
d6 1
a6 1
.PATH:	${NCURSES}/menu
d9 1
d11 2
a12 1
SRCS=	m_attribs.c m_cursor.c m_driver.c m_format.c m_global.c m_hook.c \
d19 2
a20 1
CFLAGS+= -I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \
d22 6
@


1.2
log
@Replace beforeinstall target with new variables used by .mk system.

Reviewed by:	marcel, and make world
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.1 1999/09/05 05:32:46 peter Exp $
d11 4
a14 3
	m_item_cur.c m_item_nam.c m_item_new.c m_item_opt.c m_item_use.c \
	m_item_val.c m_item_vis.c m_items.c m_new.c m_opts.c m_post.c \
	m_req_name.c m_spacing.c m_userptr.c m_win.c
@


1.2.2.1
log
@MFC: Add missing source files.

PR:		18631
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.2 2000/01/14 07:57:35 rgrimes Exp $
d11 3
a13 4
	m_item_cur.c m_item_nam.c m_item_new.c m_item_opt.c m_item_top.c \
	m_item_use.c m_item_val.c m_item_vis.c m_items.c m_new.c m_opts.c \
	m_pad.c m_pattern.c m_post.c m_req_name.c m_scale.c m_spacing.c \
	m_sub.c m_userptr.c m_win.c
@


1.2.2.2
log
@MFC: ncurses 5.1-20001009
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.2.2.1 2000/05/25 09:54:28 tg Exp $
d6 1
a6 1
.PATH:	${NCURSES}/menu ${NCURSES}/include
a8 1
AWK?=	awk
d10 1
a10 2
SRCS=	ncurses_def.h \
	m_attribs.c m_cursor.c m_driver.c m_format.c m_global.c m_hook.c \
d17 1
a17 2
CLEANFILES+=	ncurses_def.h
CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \
a18 4

ncurses_def.h:	MKncurses_def.sh ncurses_defs
	AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
	    ${NCURSES}/include/ncurses_defs > ncurses_def.h
@


1.2.2.3
log
@MFC: Install missing manpages, add missing functions to MLINKS.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.2.2.2 2000/10/12 18:41:05 peter Exp $
a6 1
.PATH:  ${NCURSES}/man
a26 51
MAN3x=	menu.3x menu_attribs.3x menu_attributes.3x menu_cursor.3x \
	menu_driver.3x menu_format.3x menu_hook.3x menu_items.3x \
	menu_mark.3x menu_new.3x menu_opts.3x menu_pattern.3x \
	menu_post.3x menu_requestname.3x menu_spacing.3x \
	menu_userptr.3x menu_win.3x mitem_current.3x mitem_name.3x \
	mitem_new.3x mitem_opts.3x mitem_userptr.3x mitem_value.3x \
	mitem_visible.3x

# Generate the MAN3 list from MAN3x
.for page in ${MAN3x}
CLEANFILES+=${page:T:S/3x$/3/g}
MAN3+=${page:T:S/3x$/3/g}
all-man: ${page:T:S/3x$/3/g}
${page:T:S/3x$/3/g}: ${page}
	ln -s ${.ALLSRC} ${.TARGET}
.endfor

MLINKS+=menu_attributes.3 menu_back.3 menu_attributes.3 menu_fore.3 \
	menu_attributes.3 menu_grey.3 menu_attributes.3 menu_pad.3 \
	menu_attributes.3 set_menu_back.3 menu_attributes.3 set_menu_fore.3 \
	menu_attributes.3 set_menu_grey.3 menu_attributes.3 set_menu_pad.3
MLINKS+=menu_cursor.3 pos_menu_cursor.3
MLINKS+=menu_format.3 set_menu_format.3
MLINKS+=menu_hook.3 item_init.3 menu_hook.3 item_term.3 \
	menu_hook.3 menu_init.3 menu_hook.3 menu_term.3 \
	menu_hook.3 set_item_init.3 menu_hook.3 set_item_term.3 \
	menu_hook.3 set_menu_init.3 menu_hook.3 set_menu_term.3
MLINKS+=menu_items.3 item_count.3 menu_items.3 set_menu_items.3
MLINKS+=menu_mark.3 set_menu_mark.3
MLINKS+=menu_new.3 free_menu.3 menu_new.3 new_menu.3
MLINKS+=menu_opts.3 menu_opts_off.3 menu_opts.3 menu_opts_on.3
MLINKS+=menu_pattern.3 set_menu_pattern.3
MLINKS+=menu_post.3 post_menu.3 menu_post.3 unpost_menu.3
MLINKS+=menu_requestname.3 menu_request_by_name.3 \
	menu_requestname.3 menu_request_name.3
MLINKS+=menu_spacing.3 set_menu_spacing.3
MLINKS+=menu_userptr.3 set_menu_userptr.3
MLINKS+=menu_win.3 menu_sub.3 menu_win.3 scale_menu.3 \
	menu_win.3 set_menu_sub.3 menu_win.3 set_menu_win.3
MLINKS+=mitem_current.3 current_item.3 mitem_current.3 item_index.3 \
	mitem_current.3 set_top_row.3 mitem_current.3 top_row.3 \
	mitem_current.3 set_current_item.3
MLINKS+=mitem_name.3 item_description.3 mitem_name.3 item_name.3
MLINKS+=mitem_new.3 free_item.3 mitem_new.3 new_item.3
MLINKS+=mitem_opts.3 item_opts.3 mitem_opts.3 item_opts_off.3 \
	mitem_opts.3 item_opts_on.3 mitem_opts.3 set_item_opts.3 \
	mitem_opts.3 set_menu_opts.3
MLINKS+=mitem_userptr.3 item_userptr.3 mitem_userptr.3 set_item_userptr.3
MLINKS+=mitem_value.3 item_value.3 mitem_value.3 set_item_value.3
MLINKS+=mitem_visible.3 item_visible.3

a27 2

.SUFFIXES: .3x .3
@


1.2.2.4
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libmenu/Makefile,v 1.2.2.3 2000/12/07 12:23:57 tg Exp $
d28 1
a28 1
MANx=	menu.3x menu_attribs.3x menu_attributes.3x menu_cursor.3x \
d36 6
a41 5
# Generate the MAN list from MANx
.for page in ${MANx}
CLEANFILES+=${page:T:S/x$//g}
MAN+=${page:T:S/x$//g}
${page:T:S/x$//g}: ${page}
d80 2
@


1.2.2.5
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/lib/libmenu/Makefile 75949 2001-04-25 10:04:44Z ru $
@


1.1
log
@Add bmake glue for libmenu (the SVSV-style ETI curses menu driver from
ncurses)
@
text
@d2 1
a2 1
# $FreeBSD$
d14 1
a17 6

beforeinstall:
.for i in menu.h eti.h
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${NCURSES}/menu/$i \
		${DESTDIR}/usr/include
.endfor
@

