freebsd-ports/audio/nosefart/files/patch-aa
Kirill Ponomarev e4a8648341 - Update to version 1.92f
- Add automatic track length calculation with -a option.
- Add -i (info) and -l <len> (only play <len> length) options.
- Show enabled and persistent channels.

PR:		57200
Submitted by:	maintainer
2003-09-25 09:24:10 +00:00

67 lines
1.6 KiB
Text

--- Makefile.orig Wed Sep 24 11:02:34 2003
+++ Makefile Wed Sep 24 19:43:19 2003
@@ -1,12 +1,6 @@
################################
# Configuration
-CC = gcc
-CFLAGS =
-LDFLAGS = -lm
-PREFIX = /usr/local
-WANT_DEBUG=TRUE
-
# nothing below here should need to be changed
################################
@@ -21,19 +15,13 @@
CFLAGS += -DNSF_PLAYER
-ifeq "$(WANT_DEBUG)" "TRUE"
- CFLAGS += -ggdb
-else
- CFLAGS += -O2 -fomit-frame-pointer -ffast-math -funroll-loops
- DEBUG_OBJECTS =
-endif
-
CFLAGS +=\
-I$(SRCDIR)\
-I$(SRCDIR)/linux\
-I$(SRCDIR)/sndhrdw\
-I$(SRCDIR)/machine\
-I$(SRCDIR)/cpu/nes6502\
+ -I$(LOCALBASE)/include\
-I$(BUILDTOP)\
-I/usr/local/include/
@@ -59,9 +47,11 @@
SOURCES = $(addprefix $(SRCDIR)/, $(SRCS))
OBJECTS = $(patsubst $(SRCDIR)/%.c,$(BUILDDIR)/%.o,$(SOURCES))
+LDLIBS = -lm
+
ALL_OBJECTS = $(OBJECTS)
-ALL_TARGETS = $(BUILDTOP)/$(NAME)
+ALL_TARGETS = $(BUILDTOP)/config.h $(BUILDTOP)/$(NAME)
################################
# Rules
@@ -87,7 +77,7 @@
install: all
mkdir -p $(PREFIX)/bin
- cp $(ALL_TARGETS) $(PREFIX)/bin
+ $(INSTALL) $(COPY) $(STRIP) -g $(BINGRP) -m $(BINMODE) -o $(BINOWN) $(BUILDTOP)/$(NAME) $(PREFIX)/bin
@echo "-----------------------------------------------"
@echo "Be sure to run chmod +s $(PREFIX)/bin/$(NAME) if you want ordinary users"
@echo "to be able to use /dev/dsp. SUID isn't necessary, though, if you want to"
@@ -105,7 +95,7 @@
# The real heavy lifting
$(BUILDTOP)/$(NAME): $(OBJECTS)
- $(CC) $(NSFINFO_CFLAGS) $(LDFLAGS) -o $@ $^
+ $(CC) $(NSFINFO_CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$(BUILDDIR)/%.o: $(SRCDIR)/%.c
$(CC) $(NSFINFO_CFLAGS) -o $@ -c $<