Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2004 14:55:36 +0200 (CEST)
From:      Jean-Yves Lefort <jylefort@brutele.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68198: New port: audio/phatbeat, a beat counter
Message-ID:  <20040622125536.D2E1B22E28@jsite.lefort.net>
Resent-Message-ID: <200406221300.i5MD0hJo049989@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68198
>Category:       ports
>Synopsis:       New port: audio/phatbeat, a beat counter
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 22 13:00:42 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Thu May 27 14:42:30 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	phatbeat
#	phatbeat/files
#	phatbeat/files/patch-Makefile
#	phatbeat/files/patch-phatbeat.cpp
#	phatbeat/pkg-plist
#	phatbeat/pkg-descr
#	phatbeat/distinfo
#	phatbeat/Makefile
#
echo c - phatbeat
mkdir -p phatbeat > /dev/null 2>&1
echo c - phatbeat/files
mkdir -p phatbeat/files > /dev/null 2>&1
echo x - phatbeat/files/patch-Makefile
sed 's/^X//' >phatbeat/files/patch-Makefile << 'END-of-phatbeat/files/patch-Makefile'
X--- Makefile.orig	Tue Jun 22 14:28:51 2004
X+++ Makefile	Tue Jun 22 14:47:27 2004
X@@ -1,11 +1,10 @@
X-CPP = g++
X-SDL_LIBS = `sdl-config --libs`
X-SDL_CFLAGS = `sdl-config --cflags`
X+SDL_LIBS = `$(SDL_CONFIG) --libs`
X+SDL_CFLAGS = `$(SDL_CONFIG) --cflags`
X ## dirs must be appended with a / character!
X-LOCAL = /usr/local/
X-SHAREDIR = $(LOCAL)share/phatbeat/
X+LOCAL = $(PREFIX)
X+SHAREDIR = $(LOCAL)/share/phatbeat/
X D_PFLAGS = -Wall -g 	## For debugging, use this.
X-PFLAGS = -Wall -finline-functions -O3 $(SDL_CFLAGS)
X+PFLAGS = $(CFLAGS) $(SDL_CFLAGS)
X XFLAGS = $(PFLAGS) $(SDL_LIBS) -lSDL_image -lm
X PROGS = phatbeat phatx
X 
X@@ -18,34 +17,34 @@
X all: $(PROGS)
X 
X phatbeat: BeatCounter.o phatbeat.o
X-	$(CPP) $(PFLAGS) phatbeat.o BeatCounter.o -o phatbeat
X+	$(CXX) $(PFLAGS) phatbeat.o BeatCounter.o -o phatbeat
X 
X phatx: BeatCounter.o phatx.o numbers.o resize.o portability.o
X-	$(CPP) $(XFLAGS) portability.o phatx.o resize.o numbers.o BeatCounter.o -o phatx
X+	$(CXX) $(XFLAGS) portability.o phatx.o resize.o numbers.o BeatCounter.o -o phatx
X 
X BeatCounter.o: BeatCounter.h BeatCounter.cpp
X-	$(CPP) $(PFLAGS) -c BeatCounter.cpp
X+	$(CXX) $(PFLAGS) -c BeatCounter.cpp
X 
X numbers.o: numbers.h numbers.cpp portability.o
X-	$(CPP) $(PFLAGS) -c numbers.cpp
X-	
X+	$(CXX) $(PFLAGS) -c numbers.cpp
X+
X resize.o: resize.h resize.cpp
X-	$(CPP) $(PFLAGS) -c resize.cpp
X+	$(CXX) $(PFLAGS) -c resize.cpp
X 
X phatbeat.o: phatbeat.cpp
X-	$(CPP) $(PFLAGS) -c phatbeat.cpp 
X+	$(CXX) $(PFLAGS) -c phatbeat.cpp 
X 
X phatx.o: phatx.cpp
X-	$(CPP) $(PFLAGS) -c phatx.cpp 
X+	$(CXX) $(PFLAGS) -c phatx.cpp 
X 
X portability.o: portability.cpp
X-	$(CPP) $(PFLAGS) -D'SHAREDIR="$(SHAREDIR)"' -c portability.cpp 
X+	$(CXX) $(PFLAGS) -D'SHAREDIR="$(SHAREDIR)"' -c portability.cpp 
X 
X ## For compiling a win32 version under cygwin, issue
X ## 'make phat_win', and it will do so.
X 
X phat_win: BeatCounter.o phatx.o numbers.o resize.o phatres.o
X-	$(CPP) -o phat_win.exe phatx.o resize.o numbers.o BeatCounter.o portability.o phatres.o $(XFLAGS)
X+	$(CXX) -o phat_win.exe phatx.o resize.o numbers.o BeatCounter.o portability.o phatres.o $(XFLAGS)
X 
X phatres.o: phatres.rc
X 	windres phatres.rc phatres.o
X@@ -55,10 +54,10 @@
X 
X ## Installation routines for unix.   
X install: 
X-	## First, install the programs.
X-	/usr/bin/install -c -m 755 phatbeat $(LOCAL)/bin
X-	/usr/bin/install -c -m 755 phatx $(LOCAL)/bin
X-	/usr/bin/install -c -m 444 phatbeat.1 $(LOCAL)/man/man1
X-	## Then, the images
X-	mkdir -p $(SHAREDIR)/images
X-	/usr/bin/install -c -m 444 images/* $(SHAREDIR)/images
X+	$(MKDIR) $(LOCAL)/bin
X+	$(INSTALL_PROGRAM) phatbeat $(LOCAL)/bin
X+	$(INSTALL_PROGRAM) phatx $(LOCAL)/bin
X+	$(MKDIR) $(LOCAL)/man/man1
X+	$(INSTALL_MAN) phatbeat.1 $(LOCAL)/man/man1
X+	$(MKDIR) $(SHAREDIR)images
X+	$(INSTALL_DATA) images/* $(SHAREDIR)images
END-of-phatbeat/files/patch-Makefile
echo x - phatbeat/files/patch-phatbeat.cpp
sed 's/^X//' >phatbeat/files/patch-phatbeat.cpp << 'END-of-phatbeat/files/patch-phatbeat.cpp'
X--- phatbeat.cpp.orig	Tue Jun 22 02:34:13 2004
X+++ phatbeat.cpp	Tue Jun 22 02:35:53 2004
X@@ -24,6 +24,9 @@
X #include "BeatCounter.h" 
X using namespace std;
X 
X+#include <sys/types.h>
X+#include <sys/time.h>
X+#include <string.h>
X #include <stdlib.h>
X using namespace std;
X #include <stdio.h>
END-of-phatbeat/files/patch-phatbeat.cpp
echo x - phatbeat/pkg-plist
sed 's/^X//' >phatbeat/pkg-plist << 'END-of-phatbeat/pkg-plist'
Xbin/phatbeat
Xbin/phatx
Xshare/phatbeat/images/0.png
Xshare/phatbeat/images/1.png
Xshare/phatbeat/images/2.png
Xshare/phatbeat/images/3.png
Xshare/phatbeat/images/4.png
Xshare/phatbeat/images/5.png
Xshare/phatbeat/images/6.png
Xshare/phatbeat/images/7.png
Xshare/phatbeat/images/8.png
Xshare/phatbeat/images/9.png
Xshare/phatbeat/images/AC_dn.png
Xshare/phatbeat/images/AC_up.png
Xshare/phatbeat/images/bkgnd_test5.png
Xshare/phatbeat/images/blackgnd.png
Xshare/phatbeat/images/blnk.png
Xshare/phatbeat/images/dnarrow_dn.png
Xshare/phatbeat/images/dnarrow_up.png
Xshare/phatbeat/images/icon.png
Xshare/phatbeat/images/phaticon.ico
Xshare/phatbeat/images/point.png
Xshare/phatbeat/images/tap_dn.png
Xshare/phatbeat/images/tap_up.png
Xshare/phatbeat/images/uparrow_dn.png
Xshare/phatbeat/images/uparrow_up.png
X@dirrm share/phatbeat/images
X@dirrm share/phatbeat
END-of-phatbeat/pkg-plist
echo x - phatbeat/pkg-descr
sed 's/^X//' >phatbeat/pkg-descr << 'END-of-phatbeat/pkg-descr'
XIn a nutshell, PhatBeat is a cross-platform (Linux and Windows) beat
Xcounter for use by collectors, producers, DJs, and others interested
Xin beat-oriented music. For now it requires users to tap in the beat
Xduring listening, after which it calculates and displays the track's
XBPM and the size of a measure in seconds.
X
XWWW: http://www.postreal.org/phatbeat
X
X- Jean-Yves Lefort
Xjylefort@brutele.be
END-of-phatbeat/pkg-descr
echo x - phatbeat/distinfo
sed 's/^X//' >phatbeat/distinfo << 'END-of-phatbeat/distinfo'
XMD5 (PhatBeat-1.1.tar.gz) = 72a1c38db5e1b197f0e1d06a0928f922
XSIZE (PhatBeat-1.1.tar.gz) = 206229
END-of-phatbeat/distinfo
echo x - phatbeat/Makefile
sed 's/^X//' >phatbeat/Makefile << 'END-of-phatbeat/Makefile'
X# New ports collection makefile for:	PhatBeat
X# Date created:			22 Jun 2004
X# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		phatbeat
XPORTVERSION=		1.1
XCATEGORIES=		audio
XMASTER_SITES=		http://www.postreal.org/files/
XDISTNAME=		PhatBeat-${PORTVERSION}
X
XMAINTAINER=		jylefort@brutele.be
XCOMMENT=		A beat counter
X
XUSE_X_PREFIX=		yes
XUSE_SDL=		sdl image
XMAN1=			phatbeat.1
X
XMAKE_ENV=		MKDIR="${MKDIR}" \
X			INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
X			INSTALL_MAN="${INSTALL_MAN}" \
X			INSTALL_DATA="${INSTALL_DATA}"
X
X.include <bsd.port.mk>
END-of-phatbeat/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040622125536.D2E1B22E28>