aboutsummaryrefslogtreecommitdiff
path: root/audio/rio
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-02-20 21:00:55 +0000
committerSteve Price <steve@FreeBSD.org>2000-02-20 21:00:55 +0000
commitc330536950521a97a9a2a11be8b5a2ed38110c31 (patch)
tree663451c0200d1202dfdca01d728835b3d6da0dd2 /audio/rio
parent8d40b7b2deb381e03eb315dab1a141a80bcbe19f (diff)
downloadports-c330536950521a97a9a2a11be8b5a2ed38110c31.tar.gz
ports-c330536950521a97a9a2a11be8b5a2ed38110c31.zip
Add support for the Alpha.
Notes
Notes: svn path=/head/; revision=26061
Diffstat (limited to 'audio/rio')
-rw-r--r--audio/rio/files/patch-ab17
-rw-r--r--audio/rio/files/patch-ac10
2 files changed, 18 insertions, 9 deletions
diff --git a/audio/rio/files/patch-ab b/audio/rio/files/patch-ab
index db6747904778..b4515d6791f6 100644
--- a/audio/rio/files/patch-ab
+++ b/audio/rio/files/patch-ab
@@ -1,8 +1,8 @@
-*** rio.cpp Mon Feb 1 17:55:34 1999
---- rio.bsd/rio.cpp Sat Feb 6 21:00:22 1999
+*** rio.cpp.orig Mon Mar 15 06:53:16 1999
+--- rio.cpp Fri Feb 18 11:02:11 2000
***************
-*** 49,54 ****
---- 49,65 ----
+*** 53,58 ****
+--- 53,76 ----
#define CLOCK_SECOND 1000
#define DELETEARRAY delete[]
@@ -12,6 +12,13 @@
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <machine/cpufunc.h>
++ #if defined(__alpha__)
++ #include <sys/types.h>
++ extern "C" {
++ u_int8_t inb(u_int32_t);
++ void outb(u_int32_t, u_int8_t);
++ }
++ #endif
+ #define OUTPORT(p,v) outb( p, v )
+ #define INPORT(p) inb( p )
+ #define CLOCK_SECOND CLOCKS_PER_SEC
@@ -22,7 +29,7 @@
#include <unistd.h>
***************
*** 201,206 ****
---- 212,226 ----
+--- 219,233 ----
m_iPortData = m_iPortBase + OFFSET_PORT_DATA;
m_iPortStatus = m_iPortBase + OFFSET_PORT_STATUS;
m_iPortControl = m_iPortBase + OFFSET_PORT_CONTROL;
diff --git a/audio/rio/files/patch-ac b/audio/rio/files/patch-ac
index a9a41b5e163e..203fbeebf1c1 100644
--- a/audio/rio/files/patch-ac
+++ b/audio/rio/files/patch-ac
@@ -1,5 +1,5 @@
-*** makefile.orig Sat Sep 18 15:19:53 1999
---- makefile Sat Sep 18 15:20:20 1999
+*** makefile.orig Mon Mar 15 06:53:16 1999
+--- makefile Sun Feb 6 12:28:15 2000
***************
*** 6,15 ****
#
@@ -12,7 +12,7 @@
chmod +s rio
clean:
---- 6,19 ----
+--- 6,21 ----
#
###############################################################################
@@ -20,10 +20,12 @@
+ LDADD= -lio
+ .endif
+
++ CXXFLAGS?= -O1
++
all: rio
rio: app.cpp rio.cpp
-! g++ -O1 -o rio app.cpp rio.cpp ${LDADD}
+! g++ ${CXXFLAGS} -o rio app.cpp rio.cpp ${LDADD}
chmod +s rio
clean: