Merge from vendor branch TNF:
[pkgsrc.git] / devel / bcc / scripts / configure
1 #!/bin/sh
2 #
3 # $NetBSD: configure,v 1.1 1998/07/17 04:43:25 tsarna Exp $
4 # FreeBSD Id: configure,v 1.1.1.1 1995/03/26 18:08:54 joerg Exp
5 #
6 # Author:               Jörg Wunsch <joerg@FreeBSD.org>
7 # Date of creation:     Mar 26, 1995
8 #
9
10 # we don't need Bruce's symlink, since bmake knows about .PATH
11
12 rm -f ${WRKSRC}/as/typeconv.o
13
14 # since we like the ease of BSD's fancy .include <> files, we wish to
15 # have an own directory for the compiler driver
16
17 mv ${WRKSRC}/bcc ${WRKSRC}/bcc-cc1
18 mkdir ${WRKSRC}/bcc
19 cp -p ${FILESDIR}/Makefile.bcc ${WRKSRC}/bcc/Makefile
20
21 # i wrote some man pages after Bruce's bcc.doc
22 cp -p ${FILESDIR}/ld86.1 ${WRKSRC}/ld/
23 cp -p ${FILESDIR}/as86.1 ${WRKSRC}/as/
24 cp -p ${FILESDIR}/bcc.1 ${WRKSRC}/bcc/
25 cp -p ${FILESDIR}/bcc-cc1.1 ${WRKSRC}/bcc-cc1/
26
27 # create a Makefile.inc to pass the local prefix down to
28 # the build stage:
29
30 cat > ${WRKSRC}/Makefile.inc <<*EOF*
31 #
32 # Makefile.inc
33 #
34 # This file has been created by the "configure" script; DO NOT EDIT.
35 #
36 # Edit the port's Makefile \${PREFIX} variable should you wish to
37 # override this, and reconfigure.
38 #
39
40 LOCALPREFIX = ${PREFIX}
41
42 # Make sure we always install man- and catpages to have a consistent PLIST
43
44 MANINSTALL= catinstall maninstall
45 *EOF*
46
47 # a simple Makefile to make all the subdirs
48
49 cat > ${WRKSRC}/Makefile <<*EOF*
50
51 SUBDIR = ld as bcc-cc1 bcc
52
53 .include <bsd.subdir.mk>
54 *EOF*