head	1.10;
access;
symbols
	RELENG_6_4_0_RELEASE:1.8.10.1
	RELENG_6_4:1.8.10.1.0.4
	RELENG_6_4_BP:1.8.10.1
	RELENG_6_3_0_RELEASE:1.8.10.1
	RELENG_6_3:1.8.10.1.0.2
	RELENG_6_3_BP:1.8.10.1
	RELENG_6_2_0_RELEASE:1.8
	RELENG_6_2:1.8.0.18
	RELENG_6_2_BP:1.8
	RELENG_5_5_0_RELEASE:1.8
	RELENG_5_5:1.8.0.16
	RELENG_5_5_BP:1.8
	RELENG_6_1_0_RELEASE:1.8
	RELENG_6_1:1.8.0.14
	RELENG_6_1_BP:1.8
	RELENG_6_0_0_RELEASE:1.8
	RELENG_6_0:1.8.0.12
	RELENG_6_0_BP:1.8
	RELENG_6:1.8.0.10
	RELENG_6_BP:1.8
	RELENG_5_4_0_RELEASE:1.8
	RELENG_5_4:1.8.0.8
	RELENG_5_4_BP:1.8
	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.8
	RELENG_5_3:1.8.0.6
	RELENG_5_3_BP:1.8
	RELENG_5:1.8.0.4
	RELENG_5_BP:1.8
	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.8
	RELENG_5_2_0_RELEASE:1.8
	RELENG_5_2:1.8.0.2
	RELENG_5_2_BP:1.8
	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.7
	RELENG_5_1:1.7.0.4
	RELENG_5_1_BP:1.7
	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.7
	RELENG_5_0:1.7.0.2
	RELENG_5_0_BP:1.7
	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.10
date	2007.01.20.07.49.42;	author rafan;	state dead;
branches;
next	1.9;

1.9
date	2005.11.10.18.07.05;	author ru;	state Exp;
branches;
next	1.8;

1.8
date	2003.06.06.13.46.55;	author kuriyama;	state Exp;
branches
	1.8.10.1;
next	1.7;

1.7
date	2002.05.21.07.08.30;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	2001.03.27.17.27.01;	author ru;	state Exp;
branches;
next	1.5;

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

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

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

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

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

1.8.10.1
date	2007.04.06.17.52.04;	author rafan;	state dead;
branches;
next	;

1.2.2.1
date	2000.05.25.09.54.27;	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.56;	author tg;	state Exp;
branches;
next	1.2.2.4;

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

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


desc
@@


1.10
log
@Retire old ncurses build glue

Approved by:	delphij
@
text
@# Makefile for libform
# $FreeBSD: src/lib/libform/Makefile,v 1.9 2005/11/10 18:07:05 ru Exp $

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

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

LIB=    form
DPADD=	${LIBNCURSES}
LDADD=	-lncurses

AWK?=	awk

SRCS=	ncurses_def.h \
	fld_arg.c fld_attr.c fld_current.c fld_def.c fld_dup.c fld_ftchoice.c \
	fld_ftlink.c fld_info.c fld_just.c fld_link.c fld_max.c fld_move.c \
	fld_newftyp.c fld_opts.c fld_pad.c fld_page.c fld_stat.c fld_type.c \
	fld_user.c frm_cursor.c frm_data.c frm_def.c frm_driver.c frm_hook.c \
	frm_opts.c frm_page.c frm_post.c frm_req_name.c frm_scale.c frm_sub.c \
	frm_user.c frm_win.c fty_alnum.c fty_alpha.c fty_enum.c fty_int.c \
	fty_ipv4.c fty_num.c fty_regex.c
INCS=	${NCURSES}/form/form.h

CLEANFILES+=	ncurses_def.h
CFLAGS+= -I.
.if exists(${.OBJDIR}/../libncurses)
CFLAGS+= -I${.OBJDIR}/../libncurses
.endif
CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/form -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=	form.3x form_cursor.3x form_data.3x form_driver.3x \
	form_field.3x form_field_attributes.3x form_field_buffer.3x \
	form_field_info.3x form_field_just.3x form_field_new.3x \
	form_field_opts.3x form_field_userptr.3x \
	form_field_validation.3x form_fieldtype.3x form_hook.3x \
	form_new.3x form_new_page.3x form_opts.3x form_page.3x \
	form_post.3x form_requestname.3x form_userptr.3x form_win.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+=form_cursor.3 pos_form_cursor.3
MLINKS+=form_data.3 data_ahead.3 form_data.3 data_behind.3
MLINKS+=form_field.3 field_count.3 form_field.3 form_fields.3 \
	form_field.3 move_field.3 form_field.3 set_form_fields.3
MLINKS+=form_field_attributes.3 field_back.3 \
	form_field_attributes.3 field_fore.3 \
	form_field_attributes.3 field_pad.3 \
	form_field_attributes.3 set_field_back.3 \
	form_field_attributes.3 set_field_fore.3 \
	form_field_attributes.3 set_field_pad.3
MLINKS+=form_field_buffer.3 field_buffer.3 \
	form_field_buffer.3 field_status.3 \
	form_field_buffer.3 set_field_buffer.3 \
	form_field_buffer.3 set_field_status.3 \
	form_field_buffer.3 set_max_field.3
MLINKS+=form_field_info.3 dynamic_fieldinfo.3 form_field_info.3 field_info.3
MLINKS+=form_field_just.3 field_just.3 form_field_just.3 set_field_just.3
MLINKS+=form_field_new.3 dup_field.3 form_field_new.3 free_field.3 \
	form_field_new.3 link_field.3 form_field_new.3 new_field.3
MLINKS+=form_field_opts.3 field_opts.3 form_field_opts.3 field_opts_off.3 \
	form_field_opts.3 field_opts_on.3 form_field_opts.3 set_field_opts.3 \
	form_field_opts.3 set_form_opts.3
MLINKS+=form_field_userptr.3 field_userptr.3 \
	form_field_userptr.3 set_field_userptr.3
MLINKS+=form_field_validation.3 field_arg.3 \
	form_field_validation.3 field_type.3 \
	form_field_validation.3 set_field_type.3
MLINKS+=form_fieldtype.3 link_fieldtype.3 \
	form_fieldtype.3 set_fieldtype_arg.3 \
	form_fieldtype.3 set_fieldtype_choice.3
MLINKS+=form_hook.3 field_init.3 form_hook.3 field_term.3 \
	form_hook.3 form_init.3 form_hook.3 form_term.3 \
	form_hook.3 set_field_init.3 form_hook.3 set_field_term.3 \
	form_hook.3 set_form_init.3 form_hook.3 set_form_term.3
MLINKS+=form_new.3 free_form.3 form_new.3 new_form.3
MLINKS+=form_new_page.3 new_page.3 form_new_page.3 set_new_page.3
MLINKS+=form_opts.3 form_opts_off.3 form_opts.3 form_opts_on.3
MLINKS+=form_page.3 current_field.3 form_page.3 field_index.3 \
	form_page.3 set_current_field.3 form_page.3 set_form_page.3
MLINKS+=form_post.3 post_form.3 form_post.3 unpost_form.3
MLINKS+=form_requestname.3 form_request_by_name.3 \
	form_requestname.3 form_request_name.3
MLINKS+=form_userptr.3 set_form_userptr.3
MLINKS+=form_win.3 form_sub.3 form_win.3 scale_form.3 \
	form_win.3 set_form_sub.3 form_win.3 set_form_win.3

.include <bsd.lib.mk>
@


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


1.8
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
@d11 3
@


1.8.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/libform/Makefile,v 1.8 2003/06/06 13:46:55 kuriyama Exp $
@


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


1.6
log
@MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libform/Makefile,v 1.5 2000/12/05 12:38:22 tg Exp $
d24 5
a28 1
CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/form -I${NCURSES}/menu \
@


1.5
log
@Install manpages, including appropriate MLINKS.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libform/Makefile,v 1.4 2000/10/11 08:19:56 peter Exp $
d31 1
a31 1
MAN3x=	form.3x form_cursor.3x form_data.3x form_driver.3x \
d39 5
a43 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}
a93 2

.SUFFIXES: .3x .3
@


1.4
log
@Update for ncurses 5.1-20001009 import
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libform/Makefile,v 1.3 2000/05/24 09:01:22 tg Exp $
d8 1
d31 63
d95 2
@


1.3
log
@Add missing source files. Sort SRCS.

PR:		18631
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libform/Makefile,v 1.2 2000/01/14 07:57:30 rgrimes Exp $
d7 1
a7 1
.PATH:	${NCURSES}/menu
d10 1
d12 2
a13 1
SRCS=	fld_arg.c fld_attr.c fld_current.c fld_def.c fld_dup.c fld_ftchoice.c \
d22 2
a23 1
CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/form -I${NCURSES}/menu \
d25 4
@


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/libform/Makefile,v 1.1 1999/09/05 05:37:49 peter Exp $
d11 7
a17 4
SRCS=	fty_regex.c fty_num.c fty_int.c fty_ipv4.c fty_enum.c fty_alpha.c \
	fty_alnum.c \
	frm_data.c frm_win.c frm_user.c frm_opts.c frm_hook.c frm_req_name.c \
	fld_user.c fld_type.c fld_stat.c fld_def.c frm_def.c frm_driver.c
@


1.2.2.1
log
@MFC: Add missing source files.

PR:		18631
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libform/Makefile,v 1.2 2000/01/14 07:57:30 rgrimes Exp $
d11 4
a14 7
SRCS=	fld_arg.c fld_attr.c fld_current.c fld_def.c fld_dup.c fld_ftchoice.c \
	fld_ftlink.c fld_info.c fld_just.c fld_link.c fld_max.c fld_move.c \
	fld_newftyp.c fld_opts.c fld_pad.c fld_page.c fld_stat.c fld_type.c \
	fld_user.c frm_cursor.c frm_data.c frm_def.c frm_driver.c frm_hook.c \
	frm_opts.c frm_page.c frm_post.c frm_req_name.c frm_scale.c frm_sub.c \
	frm_user.c frm_win.c fty_alnum.c fty_alpha.c fty_enum.c fty_int.c \
	fty_ipv4.c fty_num.c fty_regex.c
@


1.2.2.2
log
@MFC: ncurses 5.1-20001009
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libform/Makefile,v 1.2.2.1 2000/05/25 09:54:27 tg Exp $
d7 1
a7 1
.PATH:	${NCURSES}/include
a9 1
AWK?=	awk
d11 1
a11 2
SRCS=	ncurses_def.h \
	fld_arg.c fld_attr.c fld_current.c fld_def.c fld_dup.c fld_ftchoice.c \
d20 1
a20 2
CLEANFILES+=	ncurses_def.h
CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/form -I${NCURSES}/menu \
a21 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/libform/Makefile,v 1.2.2.2 2000/10/12 18:41:05 peter Exp $
a7 1
.PATH:  ${NCURSES}/man
a29 63
MAN3x=	form.3x form_cursor.3x form_data.3x form_driver.3x \
	form_field.3x form_field_attributes.3x form_field_buffer.3x \
	form_field_info.3x form_field_just.3x form_field_new.3x \
	form_field_opts.3x form_field_userptr.3x \
	form_field_validation.3x form_fieldtype.3x form_hook.3x \
	form_new.3x form_new_page.3x form_opts.3x form_page.3x \
	form_post.3x form_requestname.3x form_userptr.3x form_win.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+=form_cursor.3 pos_form_cursor.3
MLINKS+=form_data.3 data_ahead.3 form_data.3 data_behind.3
MLINKS+=form_field.3 field_count.3 form_field.3 form_fields.3 \
	form_field.3 move_field.3 form_field.3 set_form_fields.3
MLINKS+=form_field_attributes.3 field_back.3 \
	form_field_attributes.3 field_fore.3 \
	form_field_attributes.3 field_pad.3 \
	form_field_attributes.3 set_field_back.3 \
	form_field_attributes.3 set_field_fore.3 \
	form_field_attributes.3 set_field_pad.3
MLINKS+=form_field_buffer.3 field_buffer.3 \
	form_field_buffer.3 field_status.3 \
	form_field_buffer.3 set_field_buffer.3 \
	form_field_buffer.3 set_field_status.3 \
	form_field_buffer.3 set_max_field.3
MLINKS+=form_field_info.3 dynamic_fieldinfo.3 form_field_info.3 field_info.3
MLINKS+=form_field_just.3 field_just.3 form_field_just.3 set_field_just.3
MLINKS+=form_field_new.3 dup_field.3 form_field_new.3 free_field.3 \
	form_field_new.3 link_field.3 form_field_new.3 new_field.3
MLINKS+=form_field_opts.3 field_opts.3 form_field_opts.3 field_opts_off.3 \
	form_field_opts.3 field_opts_on.3 form_field_opts.3 set_field_opts.3 \
	form_field_opts.3 set_form_opts.3
MLINKS+=form_field_userptr.3 field_userptr.3 \
	form_field_userptr.3 set_field_userptr.3
MLINKS+=form_field_validation.3 field_arg.3 \
	form_field_validation.3 field_type.3 \
	form_field_validation.3 set_field_type.3
MLINKS+=form_fieldtype.3 link_fieldtype.3 \
	form_fieldtype.3 set_fieldtype_arg.3 \
	form_fieldtype.3 set_fieldtype_choice.3
MLINKS+=form_hook.3 field_init.3 form_hook.3 field_term.3 \
	form_hook.3 form_init.3 form_hook.3 form_term.3 \
	form_hook.3 set_field_init.3 form_hook.3 set_field_term.3 \
	form_hook.3 set_form_init.3 form_hook.3 set_form_term.3
MLINKS+=form_new.3 free_form.3 form_new.3 new_form.3
MLINKS+=form_new_page.3 new_page.3 form_new_page.3 set_new_page.3
MLINKS+=form_opts.3 form_opts_off.3 form_opts.3 form_opts_on.3
MLINKS+=form_page.3 current_field.3 form_page.3 field_index.3 \
	form_page.3 set_current_field.3 form_page.3 set_form_page.3
MLINKS+=form_post.3 post_form.3 form_post.3 unpost_form.3
MLINKS+=form_requestname.3 form_request_by_name.3 \
	form_requestname.3 form_request_name.3
MLINKS+=form_userptr.3 set_form_userptr.3
MLINKS+=form_win.3 form_sub.3 form_win.3 scale_form.3 \
	form_win.3 set_form_sub.3 form_win.3 set_form_win.3

a30 2

.SUFFIXES: .3x .3
@


1.2.2.4
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libform/Makefile,v 1.2.2.3 2000/12/07 12:23:56 tg Exp $
d31 1
a31 1
MANx=	form.3x form_cursor.3x form_data.3x form_driver.3x \
d39 6
a44 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}
d95 2
@


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


1.1
log
@Add bmake glue for libform (the SVSV-style ETI curses form driver from
ncurses)
@
text
@d2 1
a2 1
# $FreeBSD$
d15 1
a18 4

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${NCURSES}/form/form.h ${DESTDIR}/usr/include
@

