ports/audio/tosha/files/patch-Makefile
Tobias Kortkamp a76df09316 audio/tosha: Fix build on 12.0-CURRENT
In file included from tosha.c:42:
In file included from ./toscsi.h:43:
In file included from /usr/include/cam/cam_ccb.h:46:
In file included from /usr/include/cam/nvme/nvme_all.h:33:
/usr/include/dev/nvme/nvme.h:1335:8: error: unknown type name 'inline'
static inline
       ^

http://beefy11.nyi.freebsd.org/data/head-i386-default/p473363_s335650/logs/tosha-0.6_1.log
2018-07-08 09:29:07 +00:00

31 lines
955 B
Text

--- Makefile.orig 1998-12-16 12:34:09 UTC
+++ Makefile
@@ -17,7 +17,7 @@ MANDIR=$(PREFIX)/man
###################################################
CFLAGS?=-O2
-CFLAGS+=-Wall -ansi -DGLOBAL_ETC_DIR=\"$(ETCDIR)\"
+CFLAGS+=-Wall -DGLOBAL_ETC_DIR=\"$(ETCDIR)\"
.if (exists(/usr/include/camlib.h))
CFLAGS+=-DCAM
@@ -53,15 +53,10 @@ pcmfade: pcmfade.o utils.o
$(CC) $(CFLAGS) -o pcmfade pcmfade.o utils.o
install: $(BINS)
- strip $(BINS)
- install -s -g bin -o bin -m 755 $(BINS) $(BINDIR)
- install -c -g bin -o bin -m 644 tosharc $(ETCDIR)
- install -c -g bin -o bin -m 644 tosha.1 pcmplay.1 pcmfade.1 \
- $(MANDIR)/man1
-.if !defined(NOMANCOMPRESS)
- cd $(MANDIR)/man1 ; \
- $(GZIP_CMD) tosha.1 pcmplay.1 pcmfade.1
-.endif
+ $(BSD_INSTALL_PROGRAM) $(BINS) $(DESTDIR)$(BINDIR)
+ $(BSD_INSTALL_DATA) tosharc $(DESTDIR)$(ETCDIR)
+ $(BSD_INSTALL_MAN) tosha.1 pcmplay.1 pcmfade.1 \
+ $(DESTDIR)$(MANDIR)/man1
clean:
rm -f $(OBJS) *core $(BINS)