summaryrefslogtreecommitdiff
path: root/audio/ctronome
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2010-08-19 01:29:41 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2010-08-19 01:29:41 +0000
commit46a6feb7deff634431256cb945ef794b35e9de5f (patch)
treea47055f1fb14ad95fcebeeb944b4f3d32a7f45c3 /audio/ctronome
parent- Update to 0.16.1 (diff)
A very simple yet powerful programmable console metronome.
WWW: http://ctronome.kign.org/ PR: 149754 Submitted by: Charles Mercadal <mercadal@diablonet.net>
Notes
Notes: svn path=/head/; revision=259555
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 000000000000..30a19925b515
--- /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 000000000000..250d2cfb55ee
--- /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 000000000000..1c8cad9ad2ac
--- /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 000000000000..b5e093bc221d
--- /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 000000000000..1e21a9fa902d
--- /dev/null
+++ b/audio/ctronome/pkg-plist
@@ -0,0 +1,4 @@
+bin/ctronome
+%%DATADIR%%/metronome1.wav
+%%DATADIR%%/metronome2.wav
+@dirrm %%DATADIR%%