diff options
author | green <green@FreeBSD.org> | 2000-10-14 11:22:33 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2000-10-14 11:22:33 +0000 |
commit | 58411f4645b63e0cbda9367f2efaff511e3d61bb (patch) | |
tree | 275452606e03b4c1ac342afa433aef9871ce403d | |
parent | 34e82d07e44a5ef20fbfa3ecad75a51586d74d79 (diff) | |
download | FreeBSD-ports-58411f4645b63e0cbda9367f2efaff511e3d61bb.zip FreeBSD-ports-58411f4645b63e0cbda9367f2efaff511e3d61bb.tar.gz |
Add nosefart, a music player for NSF (NES Sound Format) files.
Submitted by: Seth <sethk@osd.bsdi.com>
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/nosefart/Makefile | 24 | ||||
-rw-r--r-- | audio/nosefart/distinfo | 1 | ||||
-rw-r--r-- | audio/nosefart/files/patch-aa | 86 | ||||
-rw-r--r-- | audio/nosefart/pkg-comment | 1 | ||||
-rw-r--r-- | audio/nosefart/pkg-descr | 8 | ||||
-rw-r--r-- | audio/nosefart/pkg-plist | 1 |
7 files changed, 122 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index 34b2e12..ce2fe1c 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -95,6 +95,7 @@ SUBDIR += mxv SUBDIR += napster SUBDIR += nas + SUBDIR += nosefart SUBDIR += nspmod SUBDIR += openal SUBDIR += opennap diff --git a/audio/nosefart/Makefile b/audio/nosefart/Makefile new file mode 100644 index 0000000..774da04 --- /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 0000000..fe516cb --- /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 0000000..933be07 --- /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 0000000..4477e33 --- /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 0000000..0cc52ec --- /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 0000000..9a1e2c8 --- /dev/null +++ b/audio/nosefart/pkg-plist @@ -0,0 +1 @@ +bin/nosefart |