2001-03-27 05:19:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2001/03/27 03:19:49 hubertf Exp $
|
1998-08-12 14:30:58 +02:00
|
|
|
#
|
|
|
|
|
1999-01-04 23:37:29 +01:00
|
|
|
DISTVERSION= 2.02.0
|
1998-08-12 14:30:58 +02:00
|
|
|
DISTFILES= ${DJGPP_FILES}
|
|
|
|
EXTRACT_ONLY= # none of the djgpp files
|
|
|
|
MASTER_SITES= ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/ \
|
1998-08-26 21:35:37 +02:00
|
|
|
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2misc/
|
1998-08-12 14:30:58 +02:00
|
|
|
|
1998-08-23 22:40:23 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
1998-08-26 16:20:26 +02:00
|
|
|
HOMEPAGE= http://www.delorie.com/djgpp/
|
2001-02-16 15:04:52 +01:00
|
|
|
COMMENT= Cross-compile environment for MS-DOS on 386 and higher
|
1998-08-12 14:30:58 +02:00
|
|
|
|
2001-03-27 05:19:43 +02:00
|
|
|
BUILD_DEPENDS= unzip-*:../../archivers/unzip
|
1998-08-12 14:30:58 +02:00
|
|
|
|
1999-01-04 23:37:29 +01:00
|
|
|
WRKSRC= ${WRKDIR}/djgpp
|
1998-08-23 22:40:23 +02:00
|
|
|
|
1999-01-04 23:37:29 +01:00
|
|
|
USE_CROSS_BINUTILS= yes
|
|
|
|
BINUTILS_GNUTARGET= coff-go32
|
|
|
|
BINUTILS_LDEMULATION= i386go32
|
|
|
|
USE_CROSS_EGCS= yes
|
|
|
|
|
|
|
|
DJGPP_FILES= djcrx202.zip wmemu2b.zip
|
1998-08-12 14:30:58 +02:00
|
|
|
|
|
|
|
TARGET_ARCH= i386-msdosdjgpp
|
2001-03-10 22:15:26 +01:00
|
|
|
CROSS_SYS_INCLUDE= ${WRKSRC}/include
|
1999-01-04 23:37:29 +01:00
|
|
|
SYS_LIB= ${WRKSRC}/lib
|
1998-08-12 14:30:58 +02:00
|
|
|
|
|
|
|
post-extract:
|
1999-01-04 23:37:29 +01:00
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@cd ${WRKSRC}; \
|
1998-08-12 14:30:58 +02:00
|
|
|
for file in ${DJGPP_FILES}; do \
|
|
|
|
unzip -Loq ${_DISTDIR}/$$file; \
|
|
|
|
done; \
|
2000-01-02 04:07:31 +01:00
|
|
|
for file in `${FIND} include -type f`; do \
|
1998-08-12 14:30:58 +02:00
|
|
|
${CAT} $$file | col >$$file.new; \
|
|
|
|
${MV} -f $$file.new $$file; \
|
|
|
|
done
|
1999-01-04 23:37:29 +01:00
|
|
|
@${LN} -f ${SYS_LIB}/crt0.o ${EGCS_WRKSRC}/gcc/
|
1998-08-12 14:30:58 +02:00
|
|
|
@${RM} -f ${SYS_LIB}/djgpp.djl ${SYS_LIB}/specs
|
|
|
|
|
|
|
|
post-patch:
|
2001-03-10 22:15:26 +01:00
|
|
|
@${RM} -f ${CROSS_SYS_INCLUDE}/sys/*.orig
|
1998-08-12 14:30:58 +02:00
|
|
|
|
1999-01-04 23:37:29 +01:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/src/stub && ${LINK.c} -o stubedit stubedit.c
|
|
|
|
cd ${WRKSRC}/src/stub && ${LINK.c} -o stubify stubify.c
|
1998-08-12 14:30:58 +02:00
|
|
|
|
1999-01-04 23:37:29 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/stub/stubedit ${TARGET_DIR}/bin/
|
1998-08-12 14:30:58 +02:00
|
|
|
${LN} -f ${TARGET_DIR}/bin/stubedit ${PREFIX}/bin/${TARGET_ARCH}-stubedit
|
1999-01-04 23:37:29 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/stub/stubify ${TARGET_DIR}/bin/
|
1998-08-12 14:30:58 +02:00
|
|
|
${LN} -f ${TARGET_DIR}/bin/stubedit ${PREFIX}/bin/${TARGET_ARCH}-stubify
|
1999-01-04 23:37:29 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/wmemu387.dxe ${TARGET_DIR}/lib/
|
1998-08-12 14:30:58 +02:00
|
|
|
|
|
|
|
.include "../COMMON/cross.mk"
|