From c9eb3f5b8de5b0d00681773cfd9ce2417b569744 Mon Sep 17 00:00:00 2001 From: augustss Date: Thu, 30 Oct 1997 00:15:01 +0000 Subject: NetBSD port. --- audio/tracker/Makefile | 6 ++-- audio/tracker/patches/patch-ad | 62 ++++++++++++++++++++++++++++++++++++++++++ audio/tracker/patches/patch-ae | 22 +++++++++++++++ 3 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 audio/tracker/patches/patch-ad create mode 100644 audio/tracker/patches/patch-ae diff --git a/audio/tracker/Makefile b/audio/tracker/Makefile index 0c74e58858f..1359ebd3ac6 100644 --- a/audio/tracker/Makefile +++ b/audio/tracker/Makefile @@ -3,7 +3,8 @@ # Date created: 2 Oct 1994 # Whom: swallace # -# $Id: Makefile,v 1.1.1.1 1997/10/28 23:19:12 augustss Exp $ +# $NetBSD: Makefile,v 1.2 1997/10/30 00:15:01 augustss Exp $ +# FreeBSD Id: Makefile,v 1.29 1996/12/20 23:46:22 ache Exp # DISTNAME= tracker-5.3 @@ -11,13 +12,14 @@ CATEGORIES= audio MASTER_SITES= ftp://ftp.ens.fr/pub/dmi/users/espie/beta/ EXTRACT_SUFX= .tgz +# FreeBSD maintainer MAINTAINER= ache@FreeBSD.ORG RESTRICTED= "Non-redistributable beta" WRKSRC= ${WRKDIR}/tracker USE_GMAKE= yes -MAKE_FLAGS= MACHINE=freebsd CC=$(CC) INSTALL="$(INSTALL)" \ +MAKE_FLAGS= MACHINE=netbsd CC=$(CC) INSTALL="$(INSTALL)" \ INST_BIN_OPT="-c -s -m $(BINMODE) -o $(BINOWN) -g $(BINGRP)" \ INST_MAN_OPT="-c -m 644 -o $(BINOWN) -g $(BINGRP)" \ COMPRESSION_FILE=$(PREFIX)/etc/compression_methods \ diff --git a/audio/tracker/patches/patch-ad b/audio/tracker/patches/patch-ad new file mode 100644 index 00000000000..47cd1b7420f --- /dev/null +++ b/audio/tracker/patches/patch-ad @@ -0,0 +1,62 @@ +diff -u -r ../../work/tracker/Arch/PCux/audio.c ./Arch/PCux/audio.c +--- ../../work/tracker/Arch/PCux/audio.c Thu Oct 30 00:58:14 1997 ++++ ./Arch/PCux/audio.c Thu Oct 30 00:46:12 1997 +@@ -28,10 +28,18 @@ + #include "/usr/src/linux/drivers/sound/soundcard.h" + #else + #ifndef __FreeBSD__ ++#ifdef __NetBSD__ ++#include ++#include ++#define DEV "/dev/audio" ++#else + /* This should be sys/soundcard.h */ + #include ++#define DEV "/dev/dsp" ++#endif + #else + #include ++#define DEV "/dev/dsp" + #endif + #endif + +@@ -53,7 +61,7 @@ + int buf_max; + unsigned long possible, current; + +- audio = open("/dev/dsp", O_WRONLY, 0); ++ audio = open(DEV, O_WRONLY, 0); + if (audio == -1) + end_all("Error opening audio device"); + +diff -u -r ../../work/tracker/Makefile ./Makefile +--- ../../work/tracker/Makefile Thu Oct 30 00:58:14 1997 ++++ ./Makefile Thu Oct 30 01:01:52 1997 +@@ -175,6 +175,15 @@ + UI_freebsd = Unix/ + SHELL_freebsd = /bin/sh + ++CFLAGS_netbsd = -O2 -funroll-loops -finline-functions ++LIBS_netbsd = -lm -lossaudio ++AUDIODIR_netbsd=PCux/ ++CONFIG_netbsd = PCux/netbsd_ ++O_netbsd = .o ++EXE_netbsd = ++UI_netbsd = Unix/ ++SHELL_netbsd = /bin/sh ++ + CFLAGS_aix = -O + LIBS_aix = -lm + AUDIODIR_aix = Aix/ +@@ -344,11 +353,7 @@ + bug2: + lclint -skipansiheaders bug.c + +- +- +- + + export: Docs/tracker.doc + -rm tracker*.tgz + cd ..; tar cvozf tracker/tracker-$(VERSION).tgz -T tracker/arc.list +- diff --git a/audio/tracker/patches/patch-ae b/audio/tracker/patches/patch-ae new file mode 100644 index 00000000000..5eb5940dcbf --- /dev/null +++ b/audio/tracker/patches/patch-ae @@ -0,0 +1,22 @@ +--- /dev/null Thu Oct 30 01:04:49 1997 ++++ Arch/PCux/netbsd_config.h Thu Oct 30 01:05:59 1997 +@@ -0,0 +1,19 @@ ++/* config.h ++ vi:ts=3 sw=3: ++ */ ++ ++/* Configuration for FreeBSD Unix (i386 platform) */ ++ ++#define IS_POSIX ++#define USE_TERMIOS ++#define USE_AT_EXIT ++#define SCO_ANSI_COLOR ++ ++typedef void *GENERIC; ++ ++#define P(args) args ++ ++/* #define ID(x) */ ++#define ID(x) LOCAL char id[]= x ; ++ ++#define stricmp strcasecmp -- cgit v1.2.3