2012-04-16 00:00:58 +02:00
|
|
|
# $NetBSD: Makefile,v 1.25 2012/04/15 22:01:00 wiz Exp $
|
1998-07-17 06:39:19 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
DISTNAME= bcc
|
2008-03-08 01:13:42 +01:00
|
|
|
PKGREVISION= 1
|
1999-05-24 22:39:35 +02:00
|
|
|
PKGNAME= bcc-95.3.12
|
2005-02-13 04:04:55 +01:00
|
|
|
CATEGORIES= devel lang
|
1998-07-17 06:39:19 +02:00
|
|
|
|
2012-04-16 00:00:58 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= Bruce Evans' C compiler (with as and ld); can do 16-bit code
|
1998-07-17 06:39:19 +02:00
|
|
|
|
2010-01-29 18:44:37 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2008-03-08 01:13:42 +01:00
|
|
|
CONFLICTS= bin86-[0-9]*
|
|
|
|
CONFLICTS+= dev86-[0-9]*
|
|
|
|
|
2009-07-14 19:26:35 +02:00
|
|
|
NOT_FOR_PLATFORM= *-*-alpha
|
2005-11-07 20:23:30 +01:00
|
|
|
NOT_FOR_PLATFORM+= Interix-*-* # no <a.out.h>
|
2011-12-02 21:44:32 +01:00
|
|
|
NOT_FOR_PLATFORM+= DragonFly-*-x86_64 # Cannot build 32-bit binary
|
1998-11-13 00:03:39 +01:00
|
|
|
|
2007-01-18 12:55:45 +01:00
|
|
|
USE_BSD_MAKEFILE= yes
|
2008-02-07 14:24:36 +01:00
|
|
|
USE_TOOLS+= groff nroff
|
1998-07-20 15:09:24 +02:00
|
|
|
|
2006-10-22 08:31:43 +02:00
|
|
|
INSTALLATION_DIRS= bin lib/bcc ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
|
|
|
|
|
2007-06-30 20:24:51 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2009-07-14 19:26:35 +02:00
|
|
|
.if ${MACHINE_ARCH} == "x86_64"
|
|
|
|
# Has LP64 issues, so must build as 32-bit binary
|
|
|
|
CFLAGS+= -m32
|
|
|
|
LDFLAGS+= -m32
|
|
|
|
.endif
|
|
|
|
|
2007-06-30 20:24:51 +02:00
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
|
|
CPPFLAGS+= -D_POSIX_SOURCE
|
|
|
|
.endif
|
|
|
|
|
2006-10-22 08:31:43 +02:00
|
|
|
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
|
2001-10-25 22:40:07 +02:00
|
|
|
|
1998-07-17 06:39:19 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|