mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
499f0b018c
a hardcoded make on some places, but it should use gmake to work. Also some help programs are called without a path. But the super-user for the installation doesn't have "." in the path normally.
495 lines
12 KiB
Plaintext
495 lines
12 KiB
Plaintext
*** extflat/extflat.h.orig Tue Jul 12 14:29:15 1994
|
|
--- extflat/extflat.h Sat Dec 17 15:53:53 1994
|
|
***************
|
|
*** 23,29 ****
|
|
--- 23,31 ----
|
|
int err0 = Need_to_include_magic_header;
|
|
#endif _MAGIC
|
|
|
|
+ #ifndef __FreeBSD__
|
|
typedef unsigned char u_char;
|
|
+ #endif
|
|
|
|
/*
|
|
* Arguments to EFFlatBuild().
|
|
*** misc/CFLAGS.orig Fri Jul 29 17:46:00 1994
|
|
--- misc/CFLAGS Sat Dec 17 23:51:53 1994
|
|
***************
|
|
*** 1 ****
|
|
! -g
|
|
--- 1 ----
|
|
! -m486 -O2
|
|
*** misc/patchlevel.c.orig Fri Jul 29 12:34:47 1994
|
|
--- misc/patchlevel.c Sat Dec 17 23:43:48 1994
|
|
***************
|
|
*** 57,62 ****
|
|
--- 57,63 ----
|
|
strcat(patchstr, "release-6.4");
|
|
strcat(patchstr, ", linux1");
|
|
|
|
+ strcat(patchstr, ", FreeBSD1");
|
|
/* NEW PATCH LINES GO RIGHT BEFORE THIS LINE */
|
|
return patchstr;
|
|
}
|
|
*** misc/paths.h.orig Thu Jul 7 15:26:29 1994
|
|
--- misc/paths.h Sat Dec 17 23:28:58 1994
|
|
***************
|
|
*** 53,59 ****
|
|
# define PAGERDIR "/usr/bin/pg"
|
|
# endif
|
|
#else
|
|
! # ifdef linux
|
|
# define PAGERDIR "/usr/bin/more"
|
|
# else
|
|
# define PAGERDIR "/usr/ucb/more"
|
|
--- 53,59 ----
|
|
# define PAGERDIR "/usr/bin/pg"
|
|
# endif
|
|
#else
|
|
! # if linux || __FreeBSD__
|
|
# define PAGERDIR "/usr/bin/more"
|
|
# else
|
|
# define PAGERDIR "/usr/ucb/more"
|
|
*** plot/plotPixels.c.orig Fri Jul 29 15:05:41 1994
|
|
--- plot/plotPixels.c Sat Dec 17 16:03:24 1994
|
|
***************
|
|
*** 1336,1342 ****
|
|
--- 1336,1344 ----
|
|
FILE *file; /* File stream on which to dump it. */
|
|
{
|
|
int i;
|
|
+ #ifndef __FreeBSD__
|
|
extern char *sys_errlist[];
|
|
+ #endif
|
|
extern int errno;
|
|
int r,g,b;
|
|
|
|
*** plot/plotRutils.c.orig Mon Jul 11 11:10:50 1994
|
|
--- plot/plotRutils.c Sat Dec 17 16:06:21 1994
|
|
***************
|
|
*** 394,400 ****
|
|
--- 394,402 ----
|
|
FILE *file; /* File in which to dump it. */
|
|
{
|
|
int count;
|
|
+ #ifndef __FreeBSD__
|
|
extern char *sys_errlist[];
|
|
+ #endif
|
|
extern int errno;
|
|
|
|
count = write(fileno(file), (char *) raster->ras_bits,
|
|
*** plow/PlowMain.c.orig Fri Jul 29 17:08:25 1994
|
|
--- plow/PlowMain.c Sat Dec 17 15:44:56 1994
|
|
***************
|
|
*** 22,27 ****
|
|
--- 22,28 ----
|
|
static char rcsid[]="$Header: /a/ncvs/ports/cad/magic/patches/patch-aa,v 1.3 1995/01/29 21:56:58 ats Exp $";
|
|
#endif not lint
|
|
|
|
+ #include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
#include <stdio.h>
|
|
*** prleak/prleak.c.orig Thu Sep 13 13:27:43 1990
|
|
--- prleak/prleak.c Sat Dec 17 15:50:19 1994
|
|
***************
|
|
*** 51,59 ****
|
|
static char allName[] = "/tmp/prlaaXXXXX";
|
|
|
|
long ftell();
|
|
long getw();
|
|
FILE *uopen();
|
|
! int cleanup();
|
|
|
|
int aflag = 0; /* -a: print all calls to malloc/free */
|
|
int dflag = 0; /* -d: print duplicate frees */
|
|
--- 51,61 ----
|
|
static char allName[] = "/tmp/prlaaXXXXX";
|
|
|
|
long ftell();
|
|
+ #ifndef __FreeBSD__
|
|
long getw();
|
|
+ #endif
|
|
FILE *uopen();
|
|
! void cleanup();
|
|
|
|
int aflag = 0; /* -a: print all calls to malloc/free */
|
|
int dflag = 0; /* -d: print duplicate frees */
|
|
***************
|
|
*** 280,286 ****
|
|
{
|
|
if (ap = (struct active *) HashGetValue(he))
|
|
{
|
|
! putw(he->h_key.h_ptr, fd);
|
|
putw(ap->a_size, fd);
|
|
putw(ap->a_seek, fd);
|
|
FREE((char *) ap);
|
|
--- 282,288 ----
|
|
{
|
|
if (ap = (struct active *) HashGetValue(he))
|
|
{
|
|
! putw((int)he->h_key.h_ptr, fd);
|
|
putw(ap->a_size, fd);
|
|
putw(ap->a_seek, fd);
|
|
FREE((char *) ap);
|
|
***************
|
|
*** 615,621 ****
|
|
return (ret);
|
|
}
|
|
|
|
! cleanup()
|
|
{
|
|
unlink(dupName);
|
|
unlink(leakName);
|
|
--- 617,623 ----
|
|
return (ret);
|
|
}
|
|
|
|
! void cleanup()
|
|
{
|
|
unlink(dupName);
|
|
unlink(leakName);
|
|
*** utils/getrect.c.orig Mon Jul 18 14:12:35 1994
|
|
--- utils/getrect.c Sat Dec 17 17:34:16 1994
|
|
***************
|
|
*** 64,75 ****
|
|
--- 64,83 ----
|
|
#define FILE_SET_PTR(fin, cp) ((fin)->_IO_read_ptr = (cp))
|
|
|
|
#else
|
|
+ #ifdef __FreeBSD__
|
|
+ #define FILE_CNT(fin) ((fin)->_r)
|
|
+ #define FILE_PTR(fin) ((char *) (fin)->_p)
|
|
+ #define FILE_DEC_CNT(fin, n) ((fin)->_r -= (n))
|
|
+ #define FILE_SET_PTR(fin, cp) ((fin)->_p = (cp))
|
|
+
|
|
+ #else
|
|
#define FILE_CNT(fin) ((fin)->_cnt)
|
|
#define FILE_PTR(fin) ((char *) fin->_ptr)
|
|
#define FILE_DEC_CNT(fin, n) ((fin)->_cnt -= (n))
|
|
#define FILE_SET_PTR(fin, cp) ((fin)->_ptr = (cp))
|
|
|
|
#endif
|
|
+ #endif
|
|
|
|
bool
|
|
GetRect(fin, skip, rect)
|
|
***************
|
|
*** 115,121 ****
|
|
rect->r_ytop = isNegative ? -n : n;
|
|
|
|
/* Adjust the stdio pointers to reflect the characters read */
|
|
! FILE_DEC_CNT(fin, cp - (char *) fin->_ptr);
|
|
FILE_SET_PTR(fin, (STDIOCHAR *) cp);
|
|
|
|
/* Make sure we skip to end of line or EOF */
|
|
--- 123,129 ----
|
|
rect->r_ytop = isNegative ? -n : n;
|
|
|
|
/* Adjust the stdio pointers to reflect the characters read */
|
|
! FILE_DEC_CNT(fin, cp - FILE_PTR(fin));
|
|
FILE_SET_PTR(fin, (STDIOCHAR *) cp);
|
|
|
|
/* Make sure we skip to end of line or EOF */
|
|
***************
|
|
*** 125,131 ****
|
|
|
|
/* Adjust the stdio pointers to reflect the characters read */
|
|
fastbad:
|
|
! FILE_DEC_CNT(fin, cp - (char *) fin->_ptr);
|
|
FILE_SET_PTR(fin, (STDIOCHAR *) cp);
|
|
goto bad;
|
|
|
|
--- 133,139 ----
|
|
|
|
/* Adjust the stdio pointers to reflect the characters read */
|
|
fastbad:
|
|
! FILE_DEC_CNT(fin, cp - FILE_PTR(fin));
|
|
FILE_SET_PTR(fin, (STDIOCHAR *) cp);
|
|
goto bad;
|
|
|
|
*** utils/malloc.c.orig Thu Aug 25 14:22:18 1994
|
|
--- utils/malloc.c Sat Dec 17 16:08:04 1994
|
|
***************
|
|
*** 643,649 ****
|
|
--- 643,651 ----
|
|
int cursize;
|
|
extern etext;
|
|
extern int errno;
|
|
+ #ifndef __FreeBSD__
|
|
extern char *sys_errlist[];
|
|
+ #endif
|
|
|
|
/*
|
|
* Hmmmm. Somebody's not giving us enough memory.
|
|
*** utils/port.c.orig Thu Aug 18 13:14:30 1994
|
|
--- utils/port.c Sat Dec 17 17:38:57 1994
|
|
***************
|
|
*** 19,24 ****
|
|
--- 19,25 ----
|
|
static char rcsid[] = "$Header: /a/ncvs/ports/cad/magic/patches/patch-aa,v 1.3 1995/01/29 21:56:58 ats Exp $";
|
|
#endif not lint
|
|
|
|
+ #include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <math.h>
|
|
#include "magic.h"
|
|
*** windows/windCmdAM.c.orig Fri Jul 29 16:57:18 1994
|
|
--- windows/windCmdAM.c Sat Dec 17 16:12:01 1994
|
|
***************
|
|
*** 281,287 ****
|
|
{
|
|
#define NUM_FD 20 /* max number of open files per process */
|
|
extern int errno, sys_nerr;
|
|
! #ifndef ALPHA
|
|
extern char *sys_errlist[];
|
|
#endif
|
|
int fd;
|
|
--- 281,287 ----
|
|
{
|
|
#define NUM_FD 20 /* max number of open files per process */
|
|
extern int errno, sys_nerr;
|
|
! #if !ALPHA && !__FreeBSD__
|
|
extern char *sys_errlist[];
|
|
#endif
|
|
int fd;
|
|
*** garouter/Makefile.orig Thu Aug 4 13:16:59 1994
|
|
--- garouter/Makefile Sat Dec 17 16:50:47 1994
|
|
***************
|
|
*** 22,31 ****
|
|
|
|
LINTFLAGS= ${IFLAGS} -u
|
|
LINTLIBS=
|
|
! #LINTLIBS= ${LIB}/lint/database.ln \
|
|
! ${LIB}/lint/gcr.ln ${LIB}/lint/grouter.ln \
|
|
! ${LIB}/lint/signals.ln ${LIB}/lint/textio.ln \
|
|
! ${LIB}/lint/tiles.ln ${LIB}/lint/utils.ln
|
|
.SUFFIXES: .po
|
|
|
|
${MODULE}.o: ${OBJS}
|
|
--- 22,28 ----
|
|
|
|
LINTFLAGS= ${IFLAGS} -u
|
|
LINTLIBS=
|
|
! #LINTLIBS= ${LIB}/lint/database.ln ${LIB}/lint/gcr.ln ${LIB}/lint/grouter.ln ${LIB}/lint/signals.ln ${LIB}/lint/textio.ln ${LIB}/lint/tiles.ln ${LIB}/lint/utils.ln
|
|
.SUFFIXES: .po
|
|
|
|
${MODULE}.o: ${OBJS}
|
|
*** fsleeper/fsleeper.c.orig Thu Jul 7 15:47:35 1994
|
|
--- fsleeper/fsleeper.c Sat Dec 17 16:35:09 1994
|
|
***************
|
|
*** 44,49 ****
|
|
--- 44,58 ----
|
|
#endif
|
|
#endif
|
|
|
|
+ #ifdef __FreeBSD__
|
|
+ #ifndef gtty
|
|
+ #define gtty(fd, buf) ioctl(fd, TIOCGETP, buf)
|
|
+ #endif
|
|
+ #ifndef stty
|
|
+ #define stty(fd, buf) ioctl(fd, TIOCSETP, buf)
|
|
+ #endif
|
|
+ #endif
|
|
+
|
|
main(argc, argv)
|
|
char *argv[];
|
|
{
|
|
*** misc/magic.h.orig Tue Aug 2 15:18:15 1994
|
|
--- misc/magic.h Sat Dec 17 15:31:52 1994
|
|
***************
|
|
*** 217,222 ****
|
|
--- 217,226 ----
|
|
#define IS_LITTLE_ENDIAN /* Digital Alpha AXP */
|
|
#endif
|
|
|
|
+ #ifdef i386
|
|
+ #define IS_LITTLE_ENDIAN /* i386 CPU */
|
|
+ #endif
|
|
+
|
|
/* Well, how'd we do? */
|
|
|
|
#if !defined(IS_BIG_ENDIAN) && !defined(IS_LITTLE_ENDIAN)
|
|
***************
|
|
*** 298,304 ****
|
|
#ifdef SYSV
|
|
extern int sprintf();
|
|
#else
|
|
! #ifndef ALPHA
|
|
extern char* sprintf();
|
|
#endif
|
|
#endif
|
|
--- 302,308 ----
|
|
#ifdef SYSV
|
|
extern int sprintf();
|
|
#else
|
|
! #if !ALPHA && !__FreeBSD__
|
|
extern char* sprintf();
|
|
#endif
|
|
#endif
|
|
*** scmos/Makefile.ORIG Thu Aug 4 22:17:03 1994
|
|
--- scmos/Makefile Thu Feb 23 18:54:29 1995
|
|
***************
|
|
*** 75,81 ****
|
|
uufile: $(SRC)
|
|
uuencode scmos_tech.tar.Z scmos_tech.tar.Z > scmos_tech.uu
|
|
|
|
! clean:;
|
|
rm -f scmos.tech$(VERSION) scmos-ibm.tech$(VERSION) \
|
|
scmos-hp.tech$(VERSION) *.tar.Z *.tar .version3 .version4
|
|
|
|
--- 75,81 ----
|
|
uufile: $(SRC)
|
|
uuencode scmos_tech.tar.Z scmos_tech.tar.Z > scmos_tech.uu
|
|
|
|
! clean:
|
|
rm -f scmos.tech$(VERSION) scmos-ibm.tech$(VERSION) \
|
|
scmos-hp.tech$(VERSION) *.tar.Z *.tar .version3 .version4
|
|
|
|
*** doc/Makefile.ORIG Thu Aug 4 22:30:40 1994
|
|
--- doc/Makefile Fri Feb 24 09:03:09 1995
|
|
***************
|
|
*** 106,109 ****
|
|
cd tutcells; make install CADDIR=${CADDIR}
|
|
|
|
force:
|
|
!
|
|
--- 106,109 ----
|
|
cd tutcells; make install CADDIR=${CADDIR}
|
|
|
|
force:
|
|
!
|
|
*** doc/man/Makefile.ORIG Wed Jul 13 21:06:03 1994
|
|
--- doc/man/Makefile Fri Feb 24 09:06:26 1995
|
|
***************
|
|
*** 206,209 ****
|
|
cp prleak.8 ${MANDIR}/man8
|
|
|
|
force:
|
|
!
|
|
--- 206,209 ----
|
|
cp prleak.8 ${MANDIR}/man8
|
|
|
|
force:
|
|
!
|
|
*** graphics/Makefile.orig Mon Sep 19 23:41:19 1994
|
|
--- graphics/Makefile Fri Feb 24 09:14:43 1995
|
|
***************
|
|
*** 10,16 ****
|
|
LIB= ${MAGICDIR}/lib
|
|
SYSLIB= ${CADDIR}/lib/magic/sys
|
|
BIN= ${CADDIR}/bin
|
|
! IFLAGS= -I. -I${H} -I/usr/openwin/include
|
|
#
|
|
# Configuration for flags and libraries
|
|
#
|
|
--- 10,16 ----
|
|
LIB= ${MAGICDIR}/lib
|
|
SYSLIB= ${CADDIR}/lib/magic/sys
|
|
BIN= ${CADDIR}/bin
|
|
! IFLAGS= -I. -I${H} -I/usr/X11R6/include
|
|
#
|
|
# Configuration for flags and libraries
|
|
#
|
|
***************
|
|
*** 140,146 ****
|
|
installhelp:
|
|
@(for i in ${HELPER_PROGS}; \
|
|
do \
|
|
! make ${MFLAGS} CADDIR=${CADDIR} ${BIN}/$$i; \
|
|
done)
|
|
|
|
installhdrs: ${H}/${MODULE}.h ${H}/graphicsInt.h ${H}/glyphs.h \
|
|
--- 140,146 ----
|
|
installhelp:
|
|
@(for i in ${HELPER_PROGS}; \
|
|
do \
|
|
! ${MAKE} ${MFLAGS} CADDIR=${CADDIR} ${BIN}/$$i; \
|
|
done)
|
|
|
|
installhdrs: ${H}/${MODULE}.h ${H}/graphicsInt.h ${H}/glyphs.h \
|
|
*** Makefile.orig Tue Sep 20 22:55:57 1994
|
|
--- Makefile Fri Feb 24 14:58:41 1995
|
|
***************
|
|
*** 18,23 ****
|
|
--- 18,24 ----
|
|
#
|
|
|
|
SHELL=/bin/sh
|
|
+ MAKE=gmake
|
|
|
|
#
|
|
# NOTE: tiles and tech must be before database in this list
|
|
***************
|
|
*** 38,65 ****
|
|
:status Makefile READ_ME
|
|
DIRS = include cadlib
|
|
CMD = echo Need to define your command via 'make cmd CMD=command'
|
|
! CADDIR = `:findcad`
|
|
CADDIR_SUB = `../:findcad`
|
|
|
|
everything: ${MODULES} .config
|
|
/bin/csh :makeall installhdrs ${MODULES}
|
|
/bin/csh :makeall install ${MODULES}
|
|
/bin/csh :makemains ${PROGRAMS}
|
|
|
|
install: everything directories install-tech
|
|
! cd windows; make installcad CADDIR=${CADDIR_SUB}
|
|
cd doc; make installcad CADDIR=${CADDIR_SUB}
|
|
! /bin/csh :execmod "make installcad CADDIR=${CADDIR}" ${PROGRAMS}
|
|
|
|
install-tech:
|
|
! cd scmos; make install CADDIR=${CADDIR_SUB}
|
|
|
|
directories:
|
|
! :mkdir ${CADDIR}/bin
|
|
! :mkdir ${CADDIR}/lib
|
|
! :mkdir ${CADDIR}/lib/magic
|
|
! :mkdir ${CADDIR}/lib/magic/sys
|
|
! :mkdir ${CADDIR}/man
|
|
|
|
# Remakes the binary in 'lib', if needed. Used for recompiling on
|
|
# a remote machine.
|
|
--- 39,68 ----
|
|
:status Makefile READ_ME
|
|
DIRS = include cadlib
|
|
CMD = echo Need to define your command via 'make cmd CMD=command'
|
|
! CADDIR = `./:findcad`
|
|
CADDIR_SUB = `../:findcad`
|
|
|
|
+ all: everything
|
|
+
|
|
everything: ${MODULES} .config
|
|
/bin/csh :makeall installhdrs ${MODULES}
|
|
/bin/csh :makeall install ${MODULES}
|
|
/bin/csh :makemains ${PROGRAMS}
|
|
|
|
install: everything directories install-tech
|
|
! cd windows; ${MAKE} installcad CADDIR=${CADDIR_SUB}
|
|
cd doc; make installcad CADDIR=${CADDIR_SUB}
|
|
! /bin/csh :execmod "${MAKE} installcad CADDIR=${CADDIR}" ${PROGRAMS}
|
|
|
|
install-tech:
|
|
! cd scmos; ${MAKE} install CADDIR=${CADDIR_SUB}
|
|
|
|
directories:
|
|
! ./:mkdir ${CADDIR}/bin
|
|
! ./:mkdir ${CADDIR}/lib
|
|
! ./:mkdir ${CADDIR}/lib/magic
|
|
! ./:mkdir ${CADDIR}/lib/magic/sys
|
|
! ./:mkdir ${CADDIR}/man
|
|
|
|
# Remakes the binary in 'lib', if needed. Used for recompiling on
|
|
# a remote machine.
|
|
***************
|
|
*** 146,149 ****
|
|
echo ${MODULES}
|
|
|
|
forceit:
|
|
!
|
|
--- 149,152 ----
|
|
echo ${MODULES}
|
|
|
|
forceit:
|
|
!
|