Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 1997 14:14:54 +1000 (EST)
From:      sutton@aardvark.apana.org.au
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/3987: Update port - crossgo32 
Message-ID:  <199706300414.OAA01228@solsbury-hill.home>
Resent-Message-ID: <199706300420.VAA02629@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3987
>Category:       ports
>Synopsis:       Update port - crossgo32
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 29 21:20:00 PDT 1997
>Last-Modified:
>Originator:     Joel Sutton
>Organization:
>Release:        FreeBSD 2.2.1-RELEASE i386
>Environment:

FreeBSD solsbury-hill 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Wed Jun 11 21:59:13 EST 1997     jsutton@solsbury-hill:/usr/src/sys/compile/EVERYDAY  i386

>Description:

Here is an update for the crossgo32 port. I have added an extra
distribution which includes a utility to convert the COFF binaries
into dos EXE files. I also take over as maintainer with the previous
maintainers permission.

>How-To-Repeat:


>Fix:
	
Please update this port when/if you have a moment. If there are any
problems please email me. Thanks, Joel...

diff -ru crossgo32-old/Makefile crossgo32/Makefile
--- crossgo32-old/Makefile	Wed Apr 30 20:13:49 1997
+++ crossgo32/Makefile	Thu Jun 26 15:08:42 1997
@@ -2,26 +2,57 @@
 # Version required:     1.3
 # Date created:         6 Mar 97
 # Whom:                 Pedro Giffuni <pgiffuni@fps.biblos.unal.edu.co>
+# Date updated: 	Sun Jun 22 16:11:40 EST 1997
+# Whom:			Joel Sutton <sutton@aardvark.apana.org.au>
 #
-# $Id: Makefile,v 1.3 1997/04/30 03:17:57 asami Exp $
+# $Id$
 #
 
 DISTNAME=	crosstree-1.3
 PKGNAME=	crossgo32-1.3
 CATEGORIES=	devel
-MASTER_SITES=	${MASTER_SITE_LOCAL}
+MASTER_SITES=	${MASTER_SITE_LOCAL} \
+		ftp://ftp.cygnus.com/pub/embedded/crossgcc/
 
-MAINTAINER=	pgiffuni@fps.biblos.unal.edu.co
+MAINTAINER=	sutton@aardvark.apana.org.au
 
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} dosrel-1.0${EXTRACT_SUFX}
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix=${PREFIX} --target=${TARGET}
 USE_GMAKE=	yes
 TARGET= 	i386-go32
 
-MAN1=	i386-go32-ar.1 i386-go32-nm.1 i386-go32-objdump.1 	\
-	i386-go32-ranlib.1 i386-go32-size.1 i386-go32-strings.1	\
-	i386-go32-strip.1 i386-go32-objcopy.1 i386-go32-nlmconv.1 \
-	i386-go32-g++.1 i386-go32-gcc.1 cccp.1 \
-	i386-go32-c++filt.1 configure.1 i386-go32-as.1 i386-go32-ld.1 
+MAN1=	i386-go32-ar.1 i386-go32-nm.1 i386-go32-objdump.1\
+	i386-go32-ranlib.1 i386-go32-size.1 i386-go32-strings.1\
+	i386-go32-strip.1 i386-go32-objcopy.1 i386-go32-nlmconv.1\
+	i386-go32-g++.1 i386-go32-gcc.1 cccp.1\
+	i386-go32-c++filt.1 configure.1 i386-go32-as.1 i386-go32-ld.1
+
+DOCDIR=	${PREFIX}/share/doc/crossgo32
+GO32DIR=${PREFIX}/share/crossgo32
+
+post-extract:
+	${MV} ${WRKDIR}/dosrel-1.0/ ${WRKSRC}
+
+post-patch:
+	${CP} ${FILESDIR}/Makefile ${WRKSRC}/dosrel-1.0/
+
+post-build:
+	@cd ${WRKSRC}/dosrel-1.0 ;\
+	 make coff2exe
+
+post-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/dosrel-1.0/coff2exe \
+		${PREFIX}/bin/i386-go32-coff2exe
+.if !defined(NOPORTDOCS)
+	@${ECHO_MSG} "===>  Installing documentation into ${DOCDIR}"
+	${MKDIR} ${DOCDIR}
+	${INSTALL_DATA} ${WRKSRC}/FAQ-0.8 ${DOCDIR}/
+	${INSTALL_DATA} ${PKGDIR}/DESCR ${DOCDIR}/Readme.FreeBSD
+.endif
+	@${ECHO_MSG} "===>  Installing DJGPP exe files into ${GO32DIR}"
+	${MKDIR} ${GO32DIR}
+	${INSTALL_DATA} ${WRKSRC}/dosrel-1.0/go32.exe ${GO32DIR}/
+	${INSTALL_DATA} ${WRKSRC}/dosrel-1.0/emu387 ${GO32DIR}/
 
 .include <bsd.port.mk>
Only in crossgo32/files: Makefile
diff -ru crossgo32-old/files/md5 crossgo32/files/md5
--- crossgo32-old/files/md5	Fri Mar 28 07:53:42 1997
+++ crossgo32/files/md5	Sun May 18 17:43:37 1997
@@ -1 +1,2 @@
 MD5 (crosstree-1.3.tar.gz) = 02a77d3892c93aa6cfeeebe39e949051
+MD5 (dosrel-1.0.tar.gz) = c0f25ef6cdb766aa0fab4dc0075fb94d
Only in crossgo32/patches: patch-ba
diff -ru crossgo32-old/pkg/DESCR crossgo32/pkg/DESCR
--- crossgo32-old/pkg/DESCR	Fri Apr 11 08:19:35 1997
+++ crossgo32/pkg/DESCR	Mon Jun 30 14:06:46 1997
@@ -1,13 +1,66 @@
-This package permits the creation of 32-bit DOS executables.
+Crossgo32 is a cross-compiler built from "gcc 2.7.2.2" which uses the
+Cygnus embedded libraries to create smaller binaries. Unfortunately
+there is no networking support at the moment. Binaries are created in
+the COFF format and a utility is provided to convert these binaries
+into DJGPPv1 exe files.
+
 The package is composed of the following utilities:
 GNU`s misc. utilities		binutils-2.7
 The GNU's C Compiler		gcc-2.7.2.2  + crosspatch
 Cygnus's embedded libraries	newlib-1.7.1
+Cygnus's dos release utilities  dosrel-1.0
+
+
+Compiling your code
+===================
+
+Compiling your code is just as easy (or should that be difficult?) as
+gcc. All of the go32 compiler binaries have been installed with the
+i386-go32 prefix. So, if you wanted to compile a file called "hello.c"
+then you might use something like:
+
+	i386-go32-gcc -o hello hello.c
+
+This will produce a COFF binary called "hello". You will now need to
+convert that binary into a EXE file so that it can be run on a DOS
+machine. It's as easy as typing:
+
+	 i386-go32-coff2exe hello
+
+This will produce "hello.exe". 
+
+To run your programs you need to have a DPMI server running and the
+go32.exe & emu387 files in your DOS path. Crossgo32 binaries will work
+with a range of DPMI servers - I have personally had success with
+Windows 95 - and there is a server available from the DJGPP web
+site. The DOS files mentioned above should be in
+/usr/local/share/crossgo32 (or similar on your system). Please check
+the DJGPP FAQ for more information on this topic.
+
+
+More Information
+================
+
+DJGPP web site - including DPMI server, source code and FAQ's etc...
+	http://www.delorie.com/djgpp/
+
+
+Related ports 
+============= 
+
+This cross-compiler port was originally created by Pedro Giffuni using
+the Cygnus cross-compiler FAQ and mailing list postings. You will find
+other ports in the collection which use the same distribution. The
+intention was to create a cross-compiler kit for all platforms
+emulated on FreeBSD.
+
+If you are interested in network support and DJGPP v2 exe files,
+amongst other DJGPP bits and pieces, check out the crossgo32-dgjpp2
+selection of ports. 
+
+
+Share and enjoy,
+
+Joel...
+sutton@aardvark.apana.org.au
 
-To run your programs you require an specific DPMI software available with
-DJGPP. For more information about go32 take a look at
-	http://www.delorie.com/DJGPP.
-
-_________
-Pedro Giffuni S.
-pgiffuni@fps.biblos.unal.edu.co
diff -ru crossgo32-old/pkg/PLIST crossgo32/pkg/PLIST
--- crossgo32-old/pkg/PLIST	Fri Mar 28 07:53:42 1997
+++ crossgo32/pkg/PLIST	Mon Jun 30 14:05:35 1997
@@ -15,6 +15,7 @@
 bin/protoize
 bin/unprotoize
 bin/i386-go32-gcc
+bin/i386-go32-coff2exe
 i386-go32/bin/nm
 i386-go32/bin/strip
 i386-go32/bin/ar
@@ -183,3 +184,8 @@
 man/man1/cccp.1.gz
 man/man1/i386-go32-ld.1.gz
 man/man1/i386-go32-as.1.gz
+share/doc/crossgo32/FAQ-0.8
+share/doc/crossgo32/Readme.FreeBSD
+share/crossgo32/go32.exe
+share/crossgo32/emu387
+
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706300414.OAA01228>