Skip to content

Commit

Permalink
copy ltcsmpte jltcdump.
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Aug 16, 2012
0 parents commit 9adc2ab
Show file tree
Hide file tree
Showing 12 changed files with 612 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.gitignore export-ignore
.gitattributes export-ignore
debian export-ignore
build-deb.sh export-ignore
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tags
cscope.*
jltcdump
*.swp
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
PREFIX ?= /usr/local
bindir = $(PREFIX)/bin

CFLAGS=`pkg-config --cflags ltcsmpte jack` -DVERSION=\"0.1.1\" -Wall
LOADLIBES=`pkg-config --libs ltcsmpte jack` -lm

all: jltcdump

jltcdump: jltcdump.c

jltcdump.1: jltcdump
help2man -N -n 'JACK LTC dump' -o jltcdump.1 ./jltcdump

clean:
rm -f jltcdump

install: jltcdump
install -d $(DESTDIR)$(bindir)
install -m755 jltcdump $(DESTDIR)$(bindir)

uninstall:
rm -f $(DESTDIR)$(bindir)/jltcdump
-rmdir $(DESTDIR)$(bindir)

.PHONY: all clean install uninstall
37 changes: 37 additions & 0 deletions build-deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

DEBRELEASE=$(head -n1 debian/changelog | cut -d ' ' -f 2 | sed 's/[()]*//g')

TMPDIR=/tmp/jltcdump-${DEBRELEASE}
rm -rf ${TMPDIR}

GITBRANCH=${GITBRANCH:-master}

echo "debian -export-ignore" >> .git/info/attributes

git-buildpackage \
--git-upstream-branch=$GITBRANCH --git-debian-branch=$GITBRANCH \
--git-upstream-tree=branch \
--git-export-dir=${TMPDIR} --git-cleaner=/bin/true \
--git-force-create \
-rfakeroot $@

ERROR=$?

ed -s .git/info/attributes > /dev/null << EOF
/debian -export-ignore
d
wq
EOF

if test $ERROR != 0; then
exit $ERROR
fi

lintian -i --pedantic ${TMPDIR}/jltcdump_${DEBRELEASE}_*.changes \
| tee /tmp/jltcdump.issues

echo
ls ${TMPDIR}/jltcdump_${DEBRELEASE}_*.changes
echo
echo dput rg42 ${TMPDIR}/jltcdump_${DEBRELEASE}_*.changes
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jltcdump (0.1.1-1) unstable; urgency=low

* Initial release

-- Robin Gareus <robin@gareus.org> Tue, 07 Aug 2012 15:41:48 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: jltcdump
Section: sound
Priority: optional
Maintainer: Robin Gareus <robin@gareus.org>
Build-Depends: debhelper (>= 7.0.50~),
libjack-dev | libjack-jackd2-dev,
libltcsmpte-dev
Homepage: http://ltcsmpte.sf.net/
Standards-Version: 3.9.2

Package: jltcdump
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: decode linear timecode from JACK live source
ltcdump is a small tool to extract LTC encoded SMPTE timecode
from a live audio input
27 changes: 27 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: jltcdump
Upstream-Contact:
Robin Gareus <robin@gareus.org>
Source: http://rg42.org/gitweb/?p=jltcdump.git;a=snapshot;h=HEAD

Files: *
Copyright:
2006,2012 Robin Gareus <robin@gareus.org>
License: GPL-2+

License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
X-Comment: On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-2'.
1 change: 1 addition & 0 deletions debian/manpages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jltcdump.1
12 changes: 12 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/make -f

%:
dh $@

override_dh_auto_build:
$(MAKE) LDFLAGS=-Wl,--as-needed

override_dh_auto_install:
$(MAKE) install DESTDIR=$(CURDIR)/debian/jltcdump PREFIX=/usr

override_dh_auto_clean:
20 changes: 20 additions & 0 deletions jltcdump.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4.
.TH JLTCDUMP "1" "August 2012" "jltcdump version 0.1" "User Commands"
.SH NAME
jltcdump \- JACK LTC dump
.SH SYNOPSIS
.B jltcdump
[ \fIOPTIONS \fR] [ \fIJACK-PORTS \fR]
.SH DESCRIPTION
jltcdump \- JACK app to parse linear time code.
.SH OPTIONS
.TP
\fB\-h\fR, \fB\-\-help\fR
display this help and exit
.TP
\fB\-V\fR, \fB\-\-version\fR
output version information and exit
.SH "REPORTING BUGS"
Report bugs to Robin Gareus <robin@gareus.org>
.SH COPYRIGHT
Copyright \(co GPL 2006,2012 Robin Gareus <robin@gareus.org>
Loading

0 comments on commit 9adc2ab

Please sign in to comment.