summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van den Abeele <pvdabeel@gentoo.org>2003-02-02 19:30:30 +0000
committerPieter van den Abeele <pvdabeel@gentoo.org>2003-02-02 19:30:30 +0000
commit40a622e359502148f5b13957c47b2762696774a9 (patch)
treeea5061fa89639cdaa37a4406e2554e133b507d5b /media-sound/bpmdj
parentset ppc and x86 stable (diff)
downloadhistorical-40a622e359502148f5b13957c47b2762696774a9.tar.gz
historical-40a622e359502148f5b13957c47b2762696774a9.tar.bz2
historical-40a622e359502148f5b13957c47b2762696774a9.zip
Added
Diffstat (limited to 'media-sound/bpmdj')
-rw-r--r--media-sound/bpmdj/ChangeLog15
-rw-r--r--media-sound/bpmdj/bpmdj-1.5.ebuild27
-rw-r--r--media-sound/bpmdj/files/digest-bpmdj-1.51
-rw-r--r--media-sound/bpmdj/files/makefile273
4 files changed, 316 insertions, 0 deletions
diff --git a/media-sound/bpmdj/ChangeLog b/media-sound/bpmdj/ChangeLog
new file mode 100644
index 000000000000..8bdded836c7a
--- /dev/null
+++ b/media-sound/bpmdj/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for media-sound/bpmdj
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/media-sound/bpmdj/ChangeLog,v 1.1 2003/02/02 19:30:08 pvdabeel Exp $
+
+*bpmdj-1.5.ebuild (15 jan 2003)
+
+ First release, tested on PPC
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/media-sound/bpmdj/bpmdj-1.5.ebuild b/media-sound/bpmdj/bpmdj-1.5.ebuild
new file mode 100644
index 000000000000..7926ac28d4bb
--- /dev/null
+++ b/media-sound/bpmdj/bpmdj-1.5.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/bpmdj/bpmdj-1.5.ebuild,v 1.1 2003/02/02 19:30:08 pvdabeel Exp $
+
+S=${WORKDIR}/${P}
+
+DESCRIPTION="Bpmdj, software for measuring the BPM of music and mixing"
+HOMEPAGE="http://bpmdj.strokemusic.org"
+
+SRC_URI="ftp://bpmdj.strokemusic.org/bpmdj/1.5/bpmdj-1.5.source.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+
+DEPEND="x11-libs/qt*"
+
+RDEPEND="mpg123"
+
+src_compile() {
+ cp defines.gentoo defines
+ cp ${FILESDIR}/makefile makefile
+ make || die
+}
+
+src_install () {
+ make DESTDIR=${D} deb-install || die
+}
diff --git a/media-sound/bpmdj/files/digest-bpmdj-1.5 b/media-sound/bpmdj/files/digest-bpmdj-1.5
new file mode 100644
index 000000000000..cdd2f3ca732b
--- /dev/null
+++ b/media-sound/bpmdj/files/digest-bpmdj-1.5
@@ -0,0 +1 @@
+MD5 488e70cab8a8dbfcc83a3ed20e15ba91 bpmdj-1.5.source.tgz 482823
diff --git a/media-sound/bpmdj/files/makefile b/media-sound/bpmdj/files/makefile
new file mode 100644
index 000000000000..100775f44ccf
--- /dev/null
+++ b/media-sound/bpmdj/files/makefile
@@ -0,0 +1,273 @@
+VERSION = 1.5
+include defines
+
+all: cbpm-count cbpm-play kbpm-play kbpm-dj
+
+#############################################################################
+# Rulesets
+#############################################################################
+%.o: %.c
+ $(CC) -c $< $(CFLAGS) -o $@
+
+%.dvi: %.tex
+ $(LATEX) $<
+
+%.ps: %.dvi
+ $(DVIPS) -o $@ $<
+
+%.tex: %.lyx
+ $(LYX) -e latex $<
+
+%.html: %.tex
+ latex2html -split +0 -toc_depth 8 -info 0 -address "" -no_navigation $<
+
+%.moc.cpp: %.h
+ $(MOC) -o $@ $<
+
+%.o: %.cpp
+ $(CC) -c $< $(CFLAGS) -o $@ $(QT_INCLUDE_PATH)
+
+%.cpp: %.ui
+ $(UIC) -i `basename $< .ui`.h -o $@ $<
+
+%.h: %.ui
+ $(UIC) -o `basename $< .ui`.h $<
+
+#############################################################################
+# Cleanup section
+#############################################################################
+clean:
+ $(RM) a.out core *.o *.log *.tex.dep *.toc *.dvi *.aux *.raw
+ $(RM) plot.ps gmon.out toplot.dat build sum.tmp fetchfiles.sh
+ $(RM) cbpm-count cbpm-play kbpm-play kbpm-dj kbpm-count
+ $(RM) *.moc.cpp *.ui.cpp *.ui.h
+ $(RM) tagbox.h tagbox.cpp songplayer.h songplayer.cpp
+ $(RM) bpmcounter.h bpmcounter.cpp
+ $(RM) setupwizard.h setupwizard.cpp
+ $(RM) scanningprogress.h scanningprogress.cpp
+ $(RM) songselector.h songselector.cpp
+ $(RM) about.h about.cpp
+ $(RM) bpmbounds.h bpmbounds.cpp
+ $(RM) askinput.h askinput.cpp
+ $(RM) preferences.h preferences.cpp
+ $(RM) profile-clock process_bpm.sh
+ $(RM) renamer.h renamer.cpp
+ $(RM) -r kbpmdj-$(VERSION)
+ $(RM) -r beatmixing beatmixing.ps version.h
+
+mrproper: clean
+ $(RM) *~ playlist.xmms played.log
+ $(RM) debian/*~
+
+#############################################################################
+# Documentation
+#############################################################################
+beatmixing.html: beatmixing.tex
+
+allhtml: beatmixing.html
+ $(RM) beatmixing/index.html
+ $(CP) index.html beatmixing/index.html
+ $(CP) mixingdesk.jpg beatmixing/
+
+.PHONY: website allhtml all clean
+website: allhtml
+ scp beatmixing/* bpmdj@bpmdj.strokemusic.org:/home/bpmdj/website
+
+#############################################################################
+# Command line version
+#############################################################################
+version.h: profile-clock
+ echo "#define VERSION \""$(VERSION)"\"" >version.h
+ ./profile-clock >>version.h
+
+cbpm-index.c: cbpm-index.h version.h
+cbpm-play.c: cbpm-index.h version.h
+cbpm-count.c: cbpm-index.h version.h
+
+cbpm-count: cbpm-index.o cbpm-count.o
+ $(CC) $^ -o $@
+
+cbpm-play: cbpm-play.o cbpm-index.o player-core.o
+ $(CC) $(LDFLAGS) $^ -o $@
+
+#############################################################################
+# Kde version
+#############################################################################
+KPLAY_OBJECTS = about.o\
+ about.moc.o\
+ songplayer.o\
+ songplayer.moc.o\
+ player-core.o\
+ cbpm-index.o\
+ kbpm-play.o\
+ songplayerlogic.o\
+ songplayerlogic.moc.o\
+ bpmcounter.o\
+ bpmcounter.moc.o\
+ kbpm-counter.o\
+ kbpm-counter.moc.o
+
+KCOUNT_OBJECTS = bpmcounter.o\
+ bpmcounter.moc.o\
+ cbpm-index.o\
+ kbpm-count.o\
+ kbpm-count.moc.o
+
+KSEL_OBJECTS = about.o\
+ about.moc.o\
+ askinput.o\
+ askinput.moc.o\
+ tagbox.o\
+ tagbox.moc.o\
+ scanningprogress.moc.o\
+ scanningprogress.o\
+ bpmbounds.moc.o\
+ bpmbounds.o\
+ songselector.o\
+ songselector.moc.o\
+ songselector.logic.moc.o\
+ songselector.logic.o\
+ process-manager.cpp\
+ preferences.o\
+ preferences.moc.o\
+ qsongviewitem.o\
+ kbpm-index.o\
+ cbpm-index.o\
+ kbpm-played.o\
+ setupwizard.moc.o\
+ setupwizard.o\
+ kbpm-dj.o\
+ kbpm-md5.o\
+ edit-distance.o\
+ renamer.o\
+ renamer.moc.o\
+ renamer.logic.o\
+ renamer.logic.moc.o
+
+renamer.logic.h: renamer.h
+renamer.logic.cpp: renamer.logic.h
+renamer.cpp: renamer.h
+kbpm-play.cpp: bpmcounter.h version.h
+bpmcounter.cpp: bpmcounter.h version.h
+songselector.cpp: songselector.h version.h renamer.logic.h
+tagbox.cpp: tagbox.h
+songselector.logic.h: songselector.h version.h
+songselector.logic.cpp: songselector.logic.h about.h tagbox.h askinput.h\
+ preferences.h version.h scanningprogress.h bpmbounds.h
+preferences.logic.h: preferences.h version.h
+preferences.logic.cpp: preferences.logic.h version.h
+about.cpp: about.h version.h
+askinput.cpp: askinput.h version.h
+kbpm-dj.cpp: setupwizard.h
+songplayer.cpp songplayer.h: songplayer.ui version.h
+ $(UIC) -o songplayer.h songplayer.ui
+ $(UIC) -i songplayer.h -o songplayer.cpp songplayer.ui
+
+kbpm-play: $(KPLAY_OBJECTS)
+ $(CC) $(KPLAY_OBJECTS) -o kbpm-play\
+ $(LDFLAGS) $(QT_INCLUDE_PATH) $(QT_LIBRARY_PATH) $(QT_LIBS)
+
+kbpm-dj: $(KSEL_OBJECTS) songselector.cpp songselector.h
+ $(CC) $(KSEL_OBJECTS) -o kbpm-dj\
+ $(LDFLAGS) $(QT_INCLUDE_PATH) $(QT_LIBRARY_PATH) $(QT_LIBS)
+
+#############################################################################
+# Distributions
+#############################################################################
+DOC = authors changelog copyright todo readme
+BIN = cbpm-count cbpm-play kbpm-play kbpm-dj glue-bpmraw glue-mp3raw\
+ rbpm-play xmms-play
+GOALS = $(DOC) $(BIN)
+
+.PHONY: directories
+
+directories: mrproper
+ $(RM) -r bpmdj-$(VERSION); exit 0
+ $(MKDIR) bpmdj-$(VERSION)
+ $(MKDIR) bpmdj-$(VERSION)/music
+ $(MKDIR) bpmdj-$(VERSION)/index
+
+source.tgz-dist: directories
+ $(CP) -f * bpmdj-$(VERSION); exit 0
+ $(CP) -fR debian bpmdj-$(VERSION); exit 0
+ $(TAR) -cvzf bpmdj-$(VERSION).source.tgz bpmdj-$(VERSION)
+ $(MV) *.tgz ..
+ $(RM) -r bpmdj-$(VERSION); exit 0
+
+bin.tgz-dist: directories
+ $(MAKE) all
+ $(STRIP) $(BIN); exit 0
+ $(CP) -f $(GOALS) bpmdj-$(VERSION); exit 0
+ $(TAR) -cvzf bpmdj-$(VERSION).bin.tgz bpmdj-$(VERSION)
+ $(MV) *.tgz ..
+ $(RM) -r bpmdj-$(VERSION); exit 0
+
+tgz-dist:
+ $(MAKE) source.tgz-dist
+ $(MAKE) bin.tgz-dist
+
+deb-dist:
+ fakeroot debian/rules binary
+
+deb-install: all
+ $(MKDIR) $(DESTDIR)/usr/; exit 0
+ $(MKDIR) $(DESTDIR)/usr/bin/; exit 0
+ $(MKDIR) $(DESTDIR)/usr/share; exit 0
+ $(MKDIR) $(DESTDIR)/usr/share/doc; exit 0
+ $(MKDIR) $(DESTDIR)/usr/share/doc/bpmdj; exit 0
+ $(CP) $(BIN) $(DESTDIR)/usr/bin/
+ $(CP) $(DOC) $(DESTDIR)/usr/share/doc/bpmdj/
+
+
+
+### CODE BELOW WRITTEN BY tsteudten@users.sourceforge.net #################################################################
+# Setup for make redhat-dist
+#############################################################################
+
+RPM_BASE = /usr/src/redhat
+
+#############################################################################
+# Phony targets
+#############################################################################
+
+install: install_bin install_doc
+
+install_bin:
+ for bin in $(TARGETS) $(INST_TARGETS); do \
+ $(INSTALL) -D -m 755 $$bin ${ROOT}$(BINDIR)/$$bin; \
+ done
+
+install_doc:
+ for doc in $(DOC); do \
+ $(INSTALL) -D -m 755 $$doc ${ROOT}$(DOCDIR)/$$doc; \
+ done
+
+uninstall:
+ for bin in $(TARGETS) $(INST_TARGETS); do \
+ $(RM) ${ROOT}$(BINDIR)/$$bin; \
+ done \
+ for doc in $(DOC); do \
+ $(RM) ${ROOT}$(DOCDIR)/$$doc; \
+ done
+
+#############################################################################
+# redhat distribution alpha and x86
+#############################################################################
+
+redhat-dist:
+ @for dir in RPMS SRPMS BUILD SOURCES SPECS; do \
+ if [ ! -w $(RPM_BASE)/$$dir ]; then \
+ $(ECHO) "$(RPM_BASE)/$$dir is not writable for you. Maybe try as root."; \
+ exit; \
+ fi; \
+ done ; \
+ $(MAKE) clean; \
+ $(MKDIR) bpmdj-$(VERSION); \
+ [ -f $(TAR_ARCH) ] && $(RM) $(TAR_ARCH); \
+ $(CP) `find . -maxdepth 1 -type f -print` bpmdj-$(VERSION) ; \
+ $(CAT) bpmdj.spec | \
+ $(SED) "s/_VERSION_/$(VERSION)/g" > bpmdj-$(VERSION)/bpmdj.spec; \
+ $(TAR) --exclude "CVS" -cvzf $(TAR_ARCH) bpmdj-$(VERSION) ; \
+ $(RM) -r bpmdj-$(VERSION); \
+ $(RPM) --clean -ta $(TAR_ARCH); \
+ [ -f $(TAR_ARCH) ] && $(RM) $(TAR_ARCH)