$NetBSD: patch-aa,v 1.3 2003/01/19 21:31:10 hubertf Exp $ --- Makefile.orig Mon Dec 16 00:32:21 2002 +++ Makefile @@ -1,10 +1,10 @@ # Csound Makefile # edit the following definitions according to need: -INCLUDE = /usr/local/include -LIB = /usr/local/lib -DEST = /usr/local/bin -MAN = /usr/local/man +INCLUDE = $(PREFIX)/include +LIB = $(PREFIX)/lib +DEST = $(PREFIX)/bin +MAN = $(PREFIX)/man MAN1 = $(MAN)/man1 CAT1 = $(MAN)/cat1 # these directories must exist for stages beyond 'make csound' @@ -23,7 +23,7 @@ # .c.o: # $(CC) $(CFLAGS) -c $*.c -o $@ -DEFINES = -DWINDOWS -DRTAUDIO -DSFIRCAM -DSYS5 -DLINUX -DPIPES -DMACROS -DTCLTK -DIV_SCHED -DHAVE_FLTK +DEFINES = -DNETBSDRTAUDIO -DRTAUDIO -DSFIRCAM -DSYS5 -DLINUX -DPIPES -DMACROS -DPREFIX=\"$(PREFIX)\" # choose any of - # -DSYS5 invoke System 5 headers (e.g. 'string.h' for 'strings.h') # -DWINDOWS include window system calls (X11, SGI, or FG graphics) @@ -50,7 +50,7 @@ # (e.g., Linux on SPARC [not tested]), you should also define - # -DLINUX_BE Linux audio device handler for big-endian samples -CFLAGS = -Wall -O2 -malign-loops=4 -malign-jumps=4 -ffast-math -fomit-frame-pointer -finline-functions -funroll-loops -DWITHx87 $(RPM_OPT_FLAGS) $(DEFINES) +CFLAGS = -Wall $(RPM_OPT_FLAGS) $(DEFINES) # -O Simple optimisation # -O2 to be more specific about the optimization level # -f compile single-precision floats (4.3,VAX,DEC-RISC) @@ -90,12 +90,12 @@ # CXX = g++ CXXFLAGS = -fno-exceptions -fno-rtti -FLTKSRC = widgets.cpp -FLTKOBJ = widgets.o +FLTKSRC = +FLTKOBJ = # source and object files for FLTK widgets #FLTKLIB = -lfltk -lpthread -lg++ -FLTKLIB = /usr/local/lib/libfltk.a /usr/lib/libpthread.a \ - /usr/lib/libstdc++-libc6.2-2.a.3 +FLTKLIB = + # libraries required by widgets.cpp # -lfltk -lpthread -lg++ use dynamic libraries # @@ -105,7 +105,7 @@ # directiories and version # numbers are system-dependent) -LIBS = $(FLTKLIB) -L /usr/X11R6/lib -lX11 -ltcl -ltk -lm -ldl +LIBS = $(LDFLAGS) -lm # -lefence # -lm required # -lX11 for X window calls @@ -124,8 +124,8 @@ # note: SuSE 7.3 users should use -ltcl8.3 -ltk8.3, but another # (probably better) solution is to create symbolic links -WINSRC = winFLTK.c FL_graph.cpp -WINOBJ = winFLTK.o FL_graph.o +WINSRC = +WINOBJ = # ;if WINDOWS enabled in DEFINES, choose one of - # winX11.o for X11 window graphics # winSGI.o for SGI window graphics @@ -135,8 +135,10 @@ #AUDSRC = rtlinux.c LINUXaudio.c #AUDOBJ = rtlinux.o LINUXaudio.o -AUDSRC = rtalsa.c -AUDOBJ = rtalsa.c +#AUDSRC = rtalsa.c +#AUDOBJ = rtalsa.c +AUDSRC = rtNetBSD.c +AUDOBJ = rtNetBSD.o # ;if RTAUDIO enabled in DEFINES, include one of # rtaudio.o general interface to audio handlers & libraries # rtDEC.c rtSGI.c rtHP.c rtSUN.c