summaryrefslogtreecommitdiff
path: root/audio/nosefart
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-10-14 11:22:33 +0000
committerBrian Feldman <green@FreeBSD.org>2000-10-14 11:22:33 +0000
commit114f2e0be12e0857962044b25cfc48cc2f2561ef (patch)
tree25a841c175631feafbf516b0e875fddda105ef86 /audio/nosefart
parentFix COMMENT handling -- it was incorrectly using the fixed string (diff)
Add nosefart, a music player for NSF (NES Sound Format) files.
Submitted by: Seth <sethk@osd.bsdi.com>
Notes
Notes: svn path=/head/; revision=33819
Diffstat (limited to 'audio/nosefart')
-rw-r--r--audio/nosefart/Makefile24
-rw-r--r--audio/nosefart/distinfo1
-rw-r--r--audio/nosefart/files/patch-aa86
-rw-r--r--audio/nosefart/pkg-comment1
-rw-r--r--audio/nosefart/pkg-descr8
-rw-r--r--audio/nosefart/pkg-plist1
6 files changed, 121 insertions, 0 deletions
diff --git a/audio/nosefart/Makefile b/audio/nosefart/Makefile
new file mode 100644
index 000000000000..774da045f22b
--- /dev/null
+++ b/audio/nosefart/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: nosefart
+# Date created: 11 October 2000
+# Whom: sethk
+#
+# $FreeBSD$
+#
+
+PORTNAME= nosefart
+PORTVERSION= 1.92
+CATEGORIES= audio emulators
+MASTER_SITES= http://www.nofrendo.org/nosefart/
+
+MAINTAINER= sethk@osd.bsdi.com
+
+LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt:install
+
+USE_ZIP= yes
+USE_GMAKE= yes
+
+MAKEFILE= Makefile.linux
+MAKE_ENV+= INSTALL=${INSTALL} BINGRP=${BINGRP} BINMODE=${BINMODE} \
+ BINOWN=${BINOWN}
+
+.include <bsd.port.mk>
diff --git a/audio/nosefart/distinfo b/audio/nosefart/distinfo
new file mode 100644
index 000000000000..fe516cb50993
--- /dev/null
+++ b/audio/nosefart/distinfo
@@ -0,0 +1 @@
+MD5 (nosefart-1.92.zip) = 88d03f2c8feeb452c043e93eec62b866
diff --git a/audio/nosefart/files/patch-aa b/audio/nosefart/files/patch-aa
new file mode 100644
index 000000000000..933be07a1460
--- /dev/null
+++ b/audio/nosefart/files/patch-aa
@@ -0,0 +1,86 @@
+--- Makefile.linux.orig Wed Oct 11 13:05:18 2000
++++ Makefile.linux Thu Oct 12 14:07:05 2000
+@@ -3,12 +3,6 @@
+ ################################
+ # Configuration
+
+-CC = gcc
+-CFLAGS =
+-LDFLAGS =
+-PREFIX = /usr/local
+-# WANT_DEBUG = TRUE
+-
+ # nothing below here should need to be changed
+
+ ################################
+@@ -25,14 +19,10 @@
+ -I$(SRCDIR)/sndhrdw\
+ -I$(SRCDIR)/machine\
+ -I$(SRCDIR)/cpu/nes6502\
++ -I$(LOCALBASE)/include\
+ -I$(BUILDDIR)
+
+-ifeq "$(WANT_DEBUG)" "TRUE"
+- CFLAGS += -ggdb -DNSF_PLAYER
+-else
+- CFLAGS += -O2 -fomit-frame-pointer -ffast-math -funroll-loops -DNSF_PLAYER
+- DEBUG_OBJECTS =
+-endif
++CFLAGS += -DNSF_PLAYER
+
+ ################################
+ # Here's where the directory tree gets ugly
+@@ -55,36 +45,26 @@
+ OBJS = $(addsuffix .o, $(FILES))
+ OBJECTS = $(addprefix $(BUILDDIR)/, $(OBJS))
+
++LDLIBS = -L$(LOCALBASE)/lib -lm -lgnugetopt
++
+ ################################
+ # Rules
+
+-all: $(BUILDDIR)/$(NAME)
++all: $(BUILDDIR)/config.h $(BUILDDIR)/$(NAME)
+
+ ################################
+ # Support
+
+-$(BUILDDIR):
++$(BUILDDIR)/config.h: Makefile.linux
++ [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
+ -mkdir -p $(BUILDDIR)/cpu/nes6502 $(BUILDDIR)/machine $(BUILDDIR)/sndhrdw $(BUILDDIR)/linux
+-
+-$(BUILDDIR)/config.h: $(BUILDDIR) Makefile.linux
+ echo "#define VERSION \"$(VERSION)\"" > $(BUILDDIR)/config.h
+ echo "#define NAME \"$(NAME)\"" >> $(BUILDDIR)/config.h
+
+-$(BUILDDIR)/dep: $(BUILDDIR)/config.h
+- $(CC) $(CFLAGS) -M $(SOURCES) > $@
+-
+-include $(BUILDDIR)/dep
+-
+ install: $(BUILDDIR)/$(NAME)
+- mkdir -p $(PREFIX)/bin
+- cp $(BUILDDIR)/$(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"
+- @echo "run $(NAME) with a wrapper, like artsdsp from arts or esddsp from esound."
+- @echo "-----------------------------------------------"
+- @echo "Also, make sure that $(PREFIX)/bin is in your PATH."
+-
++ [ -d $(PREFIX)/bin ] || mkdir -p $(PREFIX)/bin
++ $(INSTALL) -cs -g $(BINGRP) -m $(BINMODE) -o $(BINOWN) $(BUILDDIR)/$(NAME) $(PREFIX)/bin
++
+ uninstall:
+ rm -f $(PREFIX)/bin/$(NAME)
+
+@@ -92,7 +72,7 @@
+ # The real heavy lifting
+
+ $(BUILDDIR)/$(NAME): $(OBJECTS)
+- $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
++ $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
+
+ $(BUILDDIR)/%.o: $(SRCDIR)/%.c
+ $(CC) $(CFLAGS) -o $@ -c $<
diff --git a/audio/nosefart/pkg-comment b/audio/nosefart/pkg-comment
new file mode 100644
index 000000000000..4477e3375e15
--- /dev/null
+++ b/audio/nosefart/pkg-comment
@@ -0,0 +1 @@
+A player for NES Sound Format (NSF)
diff --git a/audio/nosefart/pkg-descr b/audio/nosefart/pkg-descr
new file mode 100644
index 000000000000..0cc52ec860fe
--- /dev/null
+++ b/audio/nosefart/pkg-descr
@@ -0,0 +1,8 @@
+This is a port of Nosefart, a player for the NSF sound format, which
+describes music taken from Nintendo Entertainment System game cartriges
+in a compact form.
+
+WWW: http://www.nofrendo.org/nosefart/
+
+- Seth
+sethk@osd.bsdi.com
diff --git a/audio/nosefart/pkg-plist b/audio/nosefart/pkg-plist
new file mode 100644
index 000000000000..9a1e2c82811d
--- /dev/null
+++ b/audio/nosefart/pkg-plist
@@ -0,0 +1 @@
+bin/nosefart