Add funktrackergold 1.5.2, a curses MOD/FNK music tracker.

PR:		26265
Submitted by:	Mark Pulford <mark@kyne.com.au>
This commit is contained in:
Will Andrews
2001-04-07 06:10:56 +00:00
parent 2d391874d4
commit bcf9893d07
8 changed files with 192 additions and 0 deletions
+1
View File
@@ -53,6 +53,7 @@
SUBDIR += flac
SUBDIR += fmio
SUBDIR += freeamp
SUBDIR += funktrackergold
SUBDIR += gdcd
SUBDIR += gdrdao
SUBDIR += gkrellmms
+29
View File
@@ -0,0 +1,29 @@
# New ports collection makefile for: funktrackergold
# Date created: Apr 1, 2001
# Whom: Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#
PORTNAME= funktrackergold
PORTVERSION= 1.5.2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SUNSITE} http://jsno.downunder.net.au/rel/unix_projects/
MASTER_SITE_SUBDIR= apps/sound/players
DISTNAME= funktrackergold-1.5-2
EXTRACT_SUFX= .tgz
MAINTAINER= mark@kyne.com.au
WRKSRC= ${WRKDIR}/funkgold
MAKE_ARGS= EXTRA_CFLAGS="${PTHREAD_CFLAGS}" \
EXTRA_LDFLAGS="${PTHREAD_LIBS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/funkgold ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/${PORTNAME}/README
.endif
.include <bsd.port.mk>
+1
View File
@@ -0,0 +1 @@
MD5 (funktrackergold-1.5-2.tgz) = 56d5294dd8c690290087e16f34c08869
@@ -0,0 +1,76 @@
--- Makefile.orig Mon Jun 22 20:24:17 1998
+++ Makefile Sun Apr 1 20:44:19 2001
@@ -5,53 +5,10 @@
# FunktrackerGOLD now comes under the GNU General Public License. Please
# read the COPYING notice in this distribution.
############################################################################
-CC = gcc
-OPTIONS = -Wall -O2 -pipe -fomit-frame-pointer
-LIB = -lpthread -lncurses -lm
+LDFLAGS+=$(EXTRA_LDFLAGS) -lncurses -lm
+CFLAGS+=$(EXTRA_CFLAGS)
-ifeq ($(OSTYPE),Linux)
- OPTIONS += -DLinux
-else
- ifeq ($(OSTYPE),FreeBSD)
- OPTIONS += -DFreeBSD
- LIB += -ltermcap #-lmytinfo
- else
- OPTIONS += -DLinux
- endif
-endif
-
-HOST_SAFE = 0
-
-ifeq ($(HOSTTYPE),i386)
- HOST_SAFE = 1
-endif
-
-ifeq ($(HOSTTYPE),i486)
- HOST_SAFE = 1
-endif
-
-ifeq ($(HOSTTYPE),i586)
- HOST_SAFE = 1
-endif
-
-ifeq ($(HOSTTYPE),i686)
- HOST_SAFE = 1
-endif
-
-###############################
-all:
- @if [ $(HOST_SAFE) = '1' ]; then \
- make funkgold; \
- else \
- echo "***********************************************"; \
- echo "This is not an INTEL based machine. As the Funktracker"; \
- echo "format is in Intel byte sex (and i haven't yet made"; \
- echo "provisions for other processors), trying to play"; \
- echo "funktracker songs on this machine will be dangerous."; \
- echo ""; \
- echo "Refer to INSTALL file."; \
- echo "***********************************************"; \
- fi
+all: funkgold
###############################
OBJ_FT = dsp_mixxer.o funktracker.o funkload.o funkgold_misc.o \
@@ -59,7 +16,7 @@
funkgold_trac.o funkgold.o
funkgold: $(OBJ_FT)
- $(CC) $(OPTIONS) -o funkgold $(OBJ_FT) $(LIB)
+ $(CC) -o funkgold $(OBJ_FT) $(LDFLAGS)
strip funkgold
###############################
@@ -69,7 +26,3 @@
release:
make
rm -f *.o
-
-###############################
-%.o: %.c %.h
- $(CC) $(OPTIONS) -c $< -o $@
+73
View File
@@ -0,0 +1,73 @@
--- ../funkgold-orig/dsp_mixxer.c Mon Jun 22 20:09:39 1998
+++ dsp_mixxer.c Sun Apr 1 17:51:50 2001
@@ -15,15 +15,11 @@
***************************************************************************/
#include <stdio.h>
#include <math.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#ifdef Linux
- #include <sys/soundcard.h>
-#elif FreeBSD
- #include <machine/soundcard.h>
-#endif
+#include <sys/soundcard.h>
#include "funktracker_defs.h"
#include "funktracker.h"
#include "funkload.h"
--- ../funkgold-orig/funkgold.c Sun Jun 21 22:10:54 1998
+++ funkgold.c Sun Apr 1 17:53:18 2001
@@ -23,7 +23,7 @@
***************************************************************************/
#include <curses.h>
#include <unistd.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <sys/time.h>
--- ../funkgold-orig/funkgold_dir.c Wed Dec 2 22:01:23 1998
+++ funkgold_dir.c Sun Apr 1 18:05:59 2001
@@ -18,7 +18,6 @@
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
-#include <malloc.h>
#include <string.h>
#include <stdlib.h>
#include "funktracker_defs.h"
--- ../funkgold-orig/funkgold_misc.c Sun Jun 21 15:56:46 1998
+++ funkgold_misc.c Sun Apr 1 17:53:30 2001
@@ -17,7 +17,6 @@
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
-#include <malloc.h>
#include "funktracker_defs.h"
#include "dsp_mixxer.h"
#include "funktracker.h"
--- ../funkgold-orig/funkgold_sm.c Sun Jun 21 15:57:07 1998
+++ funkgold_sm.c Sun Apr 1 17:53:44 2001
@@ -16,7 +16,7 @@
***************************************************************************/
#include <curses.h>
#include <unistd.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "funktracker_defs.h"
#include "dsp_mixxer.h"
#include "funktracker.h"
--- ../funkgold-orig/funkload.c Sun Jun 21 15:57:21 1998
+++ funkload.c Sun Apr 1 17:53:51 2001
@@ -15,7 +15,7 @@
***************************************************************************/
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "funktracker_defs.h"
#include "dsp_mixxer.h"
#include "funktracker.h"
+1
View File
@@ -0,0 +1 @@
A curses MOD/FNK music tracker
+8
View File
@@ -0,0 +1,8 @@
FunktrackerGOLD is a curses based tracker for the MOD and FNK file
formats. Information on using Funktracker can be found in
share/doc/funktrackergold/README
WWW: http://jsno.downunder.net.au/proj_linux/funk.html
- Mark Pulford
mark@kyne.com.au
+3
View File
@@ -0,0 +1,3 @@
bin/funkgold
%%PORTDOCS%%share/doc/funktrackergold/README
%%PORTDOCS%%@dirrm share/doc/funktrackergold