2000-01-29 02:47:30 +00:00
|
|
|
# New ports collection makefile for: djgpp2 cross compiler kit
|
1997-08-13 09:38:10 +00:00
|
|
|
# Version required: 2.01
|
|
|
|
# Date created: Sun Jun 22 16:57:39 EST 1997
|
|
|
|
# Whom: Joel Sutton <sutton@aardvark.apana.org.au>
|
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1997-08-13 09:38:10 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= djcrx201
|
|
|
|
PKGNAME= crossgo32-djgpp2-2.01
|
|
|
|
CATEGORIES= devel
|
2000-01-29 02:47:30 +00:00
|
|
|
MASTER_SITES= ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/old/ \
|
|
|
|
ftp://ftp.cdrom.com/pub/simtelnet/gnu/djgpp/v2/old/
|
1997-08-13 09:38:10 +00:00
|
|
|
|
2000-01-29 02:47:30 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1997-08-13 09:38:10 +00:00
|
|
|
|
2000-01-29 02:47:30 +00:00
|
|
|
BUILD_DEPENDS= i386-go32-gcc:${PORTSDIR}/devel/crossgo32
|
|
|
|
RUN_DEPENDS= i386-go32-gcc:${PORTSDIR}/devel/crossgo32
|
1998-08-10 06:26:07 +00:00
|
|
|
|
1999-04-29 12:16:44 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
EXTRACT_BEFORE_ARGS= -qLa
|
1997-08-13 09:38:10 +00:00
|
|
|
|
|
|
|
# Source directories
|
|
|
|
#
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
DJGPPLIB= ${WRKSRC}/lib
|
|
|
|
DJGPPINCLUDE= ${WRKSRC}/include
|
|
|
|
DJGPPDOC= ${WRKSRC}/cross
|
|
|
|
DJGPPINFO= ${WRKSRC}/info
|
|
|
|
STUBSRC= ${WRKSRC}/src/stub
|
|
|
|
|
|
|
|
# Install directories
|
|
|
|
#
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/djgpp2
|
|
|
|
CROSSGO= ${PREFIX}/i386-go32
|
|
|
|
CROSSGOGCC= ${PREFIX}/lib/gcc-lib/i386-go32/2.7.2.2/
|
|
|
|
CROSSGOLIB= ${PREFIX}/i386-go32/lib
|
|
|
|
CROSSGOINCLUDE= ${PREFIX}/i386-go32/include
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/Makefile ${STUBSRC}/
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
-${RM} ${DJGPPLIB}/*.orig
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${ECHO_MSG} "===> Building stub utilities"
|
|
|
|
@cd ${STUBSRC} ;\
|
2000-01-29 02:47:30 +00:00
|
|
|
${MAKE} all
|
1997-08-13 09:38:10 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${ECHO_MSG} "===> Moving old crossgo libs away"
|
|
|
|
@cd ${CROSSGO} ;\
|
|
|
|
${MV} lib lib-newlib ;\
|
|
|
|
${MV} include include-newlib
|
|
|
|
@cd ${CROSSGOGCC} ;\
|
|
|
|
${MKDIR} old-newlib ;\
|
|
|
|
${MV} include old-newlib ;\
|
|
|
|
${MV} libgcc.a old-newlib ;\
|
|
|
|
${MV} specs old-newlib ;\
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${ECHO_MSG} "===> Installing binaries"
|
|
|
|
${INSTALL_PROGRAM} ${STUBSRC}/stubify ${PREFIX}/bin/i386-go32-stubify
|
|
|
|
${INSTALL_PROGRAM} ${STUBSRC}/stubedit ${PREFIX}/bin/i386-go32-stubedit
|
|
|
|
|
|
|
|
@${ECHO_MSG} "===> Installing libraries"
|
|
|
|
${CP} -R ${DJGPPLIB} ${CROSSGOLIB}
|
|
|
|
|
|
|
|
@${ECHO_MSG} "===> Installing include files"
|
|
|
|
${CP} -R ${DJGPPINCLUDE} ${CROSSGOINCLUDE}
|
|
|
|
|
|
|
|
@${ECHO_MSG} "===> Installing info files"
|
|
|
|
${INSTALL_DATA} ${DJGPPINFO}/libc.inf ${PREFIX}/info/libc.info
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_MSG} "===> Installing documentation into ${DOCDIR}"
|
|
|
|
${MKDIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${DJGPPDOC}/install ${DOCDIR}/
|
|
|
|
${INSTALL_DATA} ${DJGPPDOC}/readme ${DOCDIR}/
|
2000-01-29 02:47:30 +00:00
|
|
|
${INSTALL_DATA} ${PKGDIR}/DESCR ${DOCDIR}/README.FreeBSD
|
1997-08-13 09:38:10 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|