audio/nosefart imported.

ok alek@
This commit is contained in:
niallo 2005-03-08 14:36:26 +00:00
parent 42a17ff768
commit a864926480
6 changed files with 100 additions and 0 deletions

31
audio/nosefart/Makefile Executable file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/03/08 14:36:26 niallo Exp $
COMMENT= "nsf (Nintendo sound) file player"
DISTNAME= nosefart-2.3-mls
PKGNAME= nosefart-2.3
CATEGORIES= audio
HOMEPAGE= http://nosefart.sourceforge.net/
MAINTAINER= Matt Jibson <dolmant@gmail.com>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nosefart/}
EXTRACT_SUFX= .tar.bz2
NO_REGRESS= yes
USE_GMAKE= yes
WANTLIB= m c ossaudio
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKDIST}/nsfobj/nosefart ${PREFIX}/bin/
.include <bsd.port.mk>

4
audio/nosefart/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (nosefart-2.3-mls.tar.bz2) = 89c0e59bb3ab562a647653c90b3a8ed1
RMD160 (nosefart-2.3-mls.tar.bz2) = 54365aaf542d76f726a9b9ebb0d93a7a219c2e5e
SHA1 (nosefart-2.3-mls.tar.bz2) = ab5755674adefa3f6f63e0772245831e7c0be2f7
SIZE (nosefart-2.3-mls.tar.bz2) = 531605

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2005/03/08 14:36:26 niallo Exp $
--- Makefile.orig Fri Aug 13 01:19:33 2004
+++ Makefile Tue Mar 8 14:12:12 2005
@@ -1,11 +1,11 @@
################################
# Configuration
-CC = gcc
-CFLAGS =
-LDFLAGS = -lm
+#CC = gcc
+#CFLAGS =
+LDFLAGS = -lm -lossaudio
PREFIX = /usr
-WANT_DEBUG=TRUE
+#WANT_DEBUG=TRUE
# nothing below here should need to be changed

View File

@ -0,0 +1,41 @@
$OpenBSD: patch-src_linux_main_linux_c,v 1.1.1.1 2005/03/08 14:36:26 niallo Exp $
--- src/linux/main_linux.c.orig Fri Mar 4 10:57:15 2005
+++ src/linux/main_linux.c Fri Mar 4 10:57:46 2005
@@ -17,8 +17,9 @@ UNIX systems */
#include <sys/ioctl.h>
#include <sys/types.h>
-#include <sys/soundcard.h>
+#include <soundcard.h>
#include <sys/stat.h>
+#include <signal.h>
#include "types.h"
#include "nsf.h"
@@ -223,7 +224,7 @@ static void open_hardware(const char *de
doesn't show up as a char device. The original author (Matthew Conte) seems
to have thought that esddsp should work without this hack. Is doing this
bad? --Matthew Strait */
- if( !S_ISCHR(status.st_mode) && strcmp("/dev/dsp", device))
+ if( !S_ISCHR(status.st_mode) && strcmp("/dev/audio", device))
{
printf("%s is not a character device.\n", device);
exit(1);
@@ -305,7 +306,7 @@ static void show_help(void)
printf("\t-h \tHelp\n");
printf("\t-v \tVersion information\n");
printf("\n\t-t x\tStart playing track x (default: 1)\n");
- printf("\n\t-d x\tUse device x (default: /dev/dsp)\n");
+ printf("\n\t-d x\tUse device x (default: /dev/audio)\n");
printf("\t-s x\tPlay at x times the normal speed.\n");
printf("\t-f x\tUse x sampling rate (default: 44100)\n");
printf("\t-l x\tLimit total playing time to x seconds (0 = unlimited)\n");
@@ -565,7 +566,7 @@ static void close_nsf_file(void)
/* HAS ROOT PERMISSIONS -- BE CAREFUL */
int main(int argc, char **argv)
{
- char *device = "/dev/dsp";
+ char *device = "/dev/audio";
char *filename;
int track = 1;
int done = 0;

3
audio/nosefart/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
Nosefart plays NSF (Nintendo Entertainment System Sound Format) files so
you can listen to those old tunes without actually having to play
through the games.

2
audio/nosefart/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/03/08 14:36:26 niallo Exp $
bin/nosefart