aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ctronome
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2010-08-19 09:29:41 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2010-08-19 09:29:41 +0800
commit06cb11acf77aad0d0e05fd5cf2b92e9536bb6eb0 (patch)
tree3b129a8ab396b1714b9e11c0c8d8013e89549c82 /audio/ctronome
parent61bc06eb69087ab8612de1286e865eb3ea85ff04 (diff)
downloadfreebsd-ports-graphics-06cb11acf77aad0d0e05fd5cf2b92e9536bb6eb0.tar.gz
freebsd-ports-graphics-06cb11acf77aad0d0e05fd5cf2b92e9536bb6eb0.tar.zst
freebsd-ports-graphics-06cb11acf77aad0d0e05fd5cf2b92e9536bb6eb0.zip
A very simple yet powerful programmable console metronome.
WWW: http://ctronome.kign.org/ PR: 149754 Submitted by: Charles Mercadal <mercadal@diablonet.net>
Diffstat (limited to 'audio/ctronome')
-rw-r--r--audio/ctronome/Makefile26
-rw-r--r--audio/ctronome/distinfo3
-rw-r--r--audio/ctronome/files/patch-Makefile16
-rw-r--r--audio/ctronome/pkg-descr3
-rw-r--r--audio/ctronome/pkg-plist4
5 files changed, 52 insertions, 0 deletions
diff --git a/audio/ctronome/Makefile b/audio/ctronome/Makefile
new file mode 100644
index 00000000000..30a19925b51
--- /dev/null
+++ b/audio/ctronome/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: ctronome
+# Date created: 11 August 2010
+# Whom: Charles Mercadal <mercadal@diablonet.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ctronome
+PORTVERSION= 0.5.3
+CATEGORIES= audio
+MASTER_SITES= http://ctronome.kign.org/source/
+
+MAINTAINER= mercadal@diablonet.net
+COMMENT= A programmable console-based metronome
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|linux/soundcard.h|sys/soundcard.h|' ${WRKSRC}/ctronome.h ${WRKSRC}/dsp.c
+ @${REINPLACE_CMD} -e 's|/usr/share/ctronome|${DATADIR}|' ${WRKSRC}/ctronome.h
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ctronome ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/metronome1.wav ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/metronome2.wav ${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/audio/ctronome/distinfo b/audio/ctronome/distinfo
new file mode 100644
index 00000000000..250d2cfb55e
--- /dev/null
+++ b/audio/ctronome/distinfo
@@ -0,0 +1,3 @@
+MD5 (ctronome-0.5.3.tar.gz) = 12b46a7825ea5156100ac1f0bcd148ab
+SHA256 (ctronome-0.5.3.tar.gz) = 0ceb6ab2f243ac45d0475e901f70f5ac20100c7489d28375fc2b5ce38c0124ad
+SIZE (ctronome-0.5.3.tar.gz) = 25979
diff --git a/audio/ctronome/files/patch-Makefile b/audio/ctronome/files/patch-Makefile
new file mode 100644
index 00000000000..1c8cad9ad2a
--- /dev/null
+++ b/audio/ctronome/files/patch-Makefile
@@ -0,0 +1,16 @@
+exit--- Makefile.orig 2008-12-18 13:49:32.000000000 +0300
++++ Makefile 2010-08-18 21:47:01.000000000 +0400
+@@ -1,11 +1,11 @@
+ VERSION = 0.5.3
+-CC = gcc
++CC ?= gcc
+ OBJS = ctronome.o dsp.o routines.o
+
+ all: ctronome
+
+ %.o: %.c ctronome.h routines.h
+- $(CC) -c $<
++ $(CC) $(CFLAGS) -c $<
+
+ ctronome: $(OBJS)
+ $(CC) -o ctronome $(OBJS)
diff --git a/audio/ctronome/pkg-descr b/audio/ctronome/pkg-descr
new file mode 100644
index 00000000000..b5e093bc221
--- /dev/null
+++ b/audio/ctronome/pkg-descr
@@ -0,0 +1,3 @@
+A very simple yet powerful programmable console metronome.
+
+WWW: http://ctronome.kign.org/
diff --git a/audio/ctronome/pkg-plist b/audio/ctronome/pkg-plist
new file mode 100644
index 00000000000..1e21a9fa902
--- /dev/null
+++ b/audio/ctronome/pkg-plist
@@ -0,0 +1,4 @@
+bin/ctronome
+%%DATADIR%%/metronome1.wav
+%%DATADIR%%/metronome2.wav
+@dirrm %%DATADIR%%