52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $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"
|