Add support for the Alpha and create a directory on install so this packages
on machines with a clean ${PREFIX} directory.
This commit is contained in:
parent
db4fa41272
commit
cb5230eccd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26052
4 changed files with 42 additions and 2 deletions
|
@ -23,6 +23,7 @@ USE_QT= yes
|
|||
WRKSRC= ${WRKDIR}/Krio
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/share/icons/mini ${PREFIX}/share/applnk/Utilities
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/krio ${PREFIX}/bin/krio
|
||||
${INSTALL_DATA} ${WRKSRC}/icons/krio.xpm ${PREFIX}/share/icons/krio.xpm
|
||||
${INSTALL_DATA} ${WRKSRC}/icons/mini/mini-krio.xpm ${PREFIX}/share/icons/mini/krio.xpm
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- Makefile.orig Wed Jul 21 21:39:27 1999
|
||||
+++ Makefile Sat Jan 29 12:27:42 2000
|
||||
@@ -2,9 +2,8 @@
|
||||
+++ Makefile Fri Feb 18 23:18:40 2000
|
||||
@@ -2,9 +2,12 @@
|
||||
|
||||
CC = g++
|
||||
RIODIR = rio107
|
||||
|
@ -9,6 +9,10 @@
|
|||
-LDFLAGS = -L/usr/X11R6/lib -L/usr/lib -L/usr/include -lqt -lkdecore -lkdeui -lkfile -lkfm -lX11 -lXext
|
||||
+CFLAGS += -I${X11BASE}/include/X11/qt -I${LOCALBASE}/include -I${X11BASE}/include -I$(RIODIR)
|
||||
+LDFLAGS = -L${X11BASE}/lib -L${LOCALBASE}/lib -lqt -lkdecore -lkdeui -lkfile -lkfm -lX11 -lXext
|
||||
+.if ${MACHINE_ARCH} == "alpha"
|
||||
+LDFLAGS += -lio
|
||||
+.endif
|
||||
+
|
||||
DEST = krio
|
||||
OBJS = Krio.o MainWin.o rio.o KRioListView.o
|
||||
SOURCES = Krio/Krio.cpp Krio/MainWin.cpp $(RIODIR)/rio.cpp Krio/KRioListView.cpp
|
||||
|
|
16
audio/krio/files/patch-ab
Normal file
16
audio/krio/files/patch-ab
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- rio107/rio.cpp.orig Fri Feb 18 11:07:32 2000
|
||||
+++ rio107/rio.cpp Fri Feb 18 11:08:13 2000
|
||||
@@ -79,6 +79,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
|
19
audio/krio/files/patch-ac
Normal file
19
audio/krio/files/patch-ac
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- rio107/makefile.orig Fri Feb 18 11:16:16 2000
|
||||
+++ rio107/makefile Fri Feb 18 11:17:15 2000
|
||||
@@ -6,10 +6,15 @@
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
+.if ${MACHINE_ARCH} == "alpha"
|
||||
+LDADD= -lio
|
||||
+.endif
|
||||
+CXXFLAGS?= -O1
|
||||
+
|
||||
all: rio
|
||||
|
||||
rio: app.cpp rio.cpp
|
||||
- g++ -O1 -o rio app.cpp rio.cpp
|
||||
+ ${CXX} ${CXXFLAGS} -o rio app.cpp rio.cpp ${LDADD}
|
||||
chmod +s rio
|
||||
|
||||
clean:
|
Loading…
Reference in a new issue