blob: dd56ec04551df0b27b2035e7cadc8aa80c17be97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $NetBSD: Makefile,v 1.25 2012/04/15 22:01:00 wiz Exp $
DISTNAME= bcc
PKGREVISION= 1
PKGNAME= bcc-95.3.12
CATEGORIES= devel lang
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Bruce Evans' C compiler (with as and ld); can do 16-bit code
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS= bin86-[0-9]*
CONFLICTS+= dev86-[0-9]*
NOT_FOR_PLATFORM= *-*-alpha
NOT_FOR_PLATFORM+= Interix-*-* # no <a.out.h>
NOT_FOR_PLATFORM+= DragonFly-*-x86_64 # Cannot build 32-bit binary
USE_BSD_MAKEFILE= yes
USE_TOOLS+= groff nroff
INSTALLATION_DIRS= bin lib/bcc ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "x86_64"
# Has LP64 issues, so must build as 32-bit binary
CFLAGS+= -m32
LDFLAGS+= -m32
.endif
.if ${OPSYS} == "DragonFly"
CPPFLAGS+= -D_POSIX_SOURCE
.endif
post-extract:
set -e; \
cd ${FILESDIR}; \
mkdir ${WRKSRC}/bcc-cc1; \
cp Makefile.main ${WRKSRC}/Makefile; \
cp Makefile.ld ${WRKSRC}/ld/Makefile; \
cp ld86.1 ${WRKSRC}/ld/; \
cp Makefile.as ${WRKSRC}/as/Makefile; \
cp as86.1 ${WRKSRC}/as/; \
cp Makefile.bcc ${WRKSRC}/bcc/Makefile; \
cp bcc.1 ${WRKSRC}/bcc/; \
cp Makefile.bcc-cc1 ${WRKSRC}/bcc-cc1/Makefile; \
cp bcc-cc1.1 ${WRKSRC}/bcc-cc1/
rm -f ${WRKSRC}/as/typeconv.o
.include "../../mk/bsd.pkg.mk"
|