2007-01-31 01:04:11 +01:00
|
|
|
# $NetBSD: Makefile,v 1.27 2007/01/31 00:04:11 wiz Exp $
|
1998-08-12 14:30:58 +02:00
|
|
|
#
|
|
|
|
|
1999-01-04 23:37:29 +01:00
|
|
|
DISTVERSION= 2.02.0
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
1998-08-12 14:30:58 +02:00
|
|
|
DISTFILES= ${DJGPP_FILES}
|
|
|
|
EXTRACT_ONLY= # none of the djgpp files
|
2005-04-18 13:42:23 +02:00
|
|
|
MASTER_SITES= ftp://ftp.delorie.com/pub/djgpp/deleted/v2/ \
|
|
|
|
http://ftp.delorie.com/pub/djgpp/deleted/v2/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/djgpp/deleted/v2/ \
|
|
|
|
ftp://gd.tuwien.ac.at/pc/dos/djgpp/deleted/v2/ \
|
|
|
|
http://gd.tuwien.ac.at/pc/dos/djgpp/deleted/v2/
|
1998-08-12 14:30:58 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
|
1998-08-12 14:30:58 +02:00
|
|
|
|
2006-03-12 15:31:23 +01:00
|
|
|
SITES.wmemu2b.zip= http://ftp.delorie.com/pub/djgpp/beta/ \
|
2005-04-18 13:42:23 +02:00
|
|
|
ftp://ftp.delorie.com/pub/djgpp/beta/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/djgpp/beta/ \
|
|
|
|
ftp://gd.tuwien.ac.at/pc/dos/djgpp/beta/ \
|
|
|
|
http://gd.tuwien.ac.at/pc/dos/djgpp/beta/
|
|
|
|
|
2007-01-31 01:04:11 +01:00
|
|
|
BROKEN_IN= pkgsrc-2006Q4
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/djgpp
|
1999-01-04 23:37:29 +01:00
|
|
|
USE_CROSS_BINUTILS= yes
|
|
|
|
BINUTILS_GNUTARGET= coff-go32
|
|
|
|
BINUTILS_LDEMULATION= i386go32
|
|
|
|
USE_CROSS_EGCS= yes
|
2006-03-12 15:31:23 +01:00
|
|
|
USE_TOOLS+= makeinfo unzip
|
1999-01-04 23:37:29 +01:00
|
|
|
|
2003-08-04 23:07:48 +02:00
|
|
|
# Scripts in the build need to have a $CPP defined that works with the built
|
|
|
|
# compiler
|
|
|
|
NO_EXPORT_CPP= yes
|
|
|
|
|
1999-01-04 23:37:29 +01:00
|
|
|
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 \
|
2006-03-12 15:31:23 +01:00
|
|
|
${UNZIP_CMD} -Loq ${_DISTDIR}/$$file; \
|
1998-08-12 14:30:58 +02:00
|
|
|
done; \
|
2004-01-27 01:53:10 +01:00
|
|
|
for file in `${FIND} include -type f -print`; 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
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
.include "../../cross/COMMON/cross.mk"
|