Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / gramofile / patches / patch-ab
blob0cb9ee10ba87741d0b25729619aff8b34917a44a
1 $NetBSD: patch-ab,v 1.2 2005/11/11 16:49:32 joerg Exp $
3 --- bplaysrc/Makefile.orig      2000-03-27 21:24:46.000000000 +0000
4 +++ bplaysrc/Makefile
5 @@ -6,18 +6,27 @@ OBJS = bplay.o sndfunc.o shmbuf.o ../yes
6          ../clrscr.o ../secshms.o
7  #SRCS = bplay.c sndfunc.o shmbuf.c
8  
9 -CC = gcc
10 -LDFLAGS = 
11 +#CC = gcc
12 +#LDFLAGS = 
14  ########## CHOOSE YOUR ARCHITECTURE:    (NOTE: also see ../Makefile!)
16 +OS= $(shell uname -s)
18 +ifeq (${OS}, Linux)
19  # For Linux (and maybe others), use these:
20  CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DREDHAT50 -DLP2CD -DVUMETER # -DDEBUG
21  LIBS = -lncurses
23 +else
24 +ifeq (${OS}, DragonFly)
25 +CFLAGS = -Wall -O2 -DLP2CD -DVUMETER
26 +LIBS = -lcurses ${LIBOSSAUDIO}
27 +else
28  # For FreeBSD (and maybe others), use these:
29 -#CFLAGS = -Wall -O2 -DLP2CD -DVUMETER # -DDEBUG
30 -#LIBS = -lncurses
31 +CFLAGS = -Wall -O2 -DLP2CD -DVUMETER -DOLD_CURSES -D_SEM_SEMUN_UNDEFINED # -DDEBUG
32 +LIBS = -lcurses ${LIBOSSAUDIO}
33 +endif
34 +endif
36  # -DOLD_CURSES can be used here, too.