Skip to content

Commit

Permalink
Merge pull request #6 from rzr/master
Browse files Browse the repository at this point in the history
make install (for debian)
  • Loading branch information
viznut authored Feb 24, 2021
2 parents 1a7df63 + 9846564 commit d0fca3b
Show file tree
Hide file tree
Showing 18 changed files with 289 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*~
debian/*.log
debian/*.subvars
debian/*/*/*
debian/files
packaging/*/*
23 changes: 23 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ibniz (0.0.20140501-0ubuntu0~rzr0) saucy; urgency=medium

* wip: http://rzr.online.fr/q/snapshot#ibniz

-- Philippe Coval <rzr@gna.org> Thu, 01 May 2014 22:02:32 +0200

ibniz (0.0.20140501-0ubuntu0~rzr0) saucy; urgency=medium

* WIP: http://rzr.online.fr/q/snapshot#ibniz

-- Philippe Coval <rzr@gna.org> Thu, 01 May 2014 22:02:31 +0200

ibniz (0.0.0-0) UNRELEASED; urgency=medium

* TODO: remove on release

-- Philippe Coval <rzr@gna.org> Thu, 01 May 2014 22:02:31 +0200

ibniz (1.18-1) unstable; urgency=low

* Initial release (Closes: #724249)

-- maxigas <maxigas@anargeek.net> Mon, 23 Sep 2013 00:12:09 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
19 changes: 19 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Source: ibniz
Section: graphics
Priority: optional
Maintainer: maxigas <maxigas@anargeek.net>
Build-Depends: debhelper (>= 9), libsdl1.2-dev, python-docutils, perl
Standards-Version: 3.9.4
Homepage: http://pelulamu.net/ibniz/
#Vcs-Git: git://git.debian.org/collab-maint/ibniz.git
#Vcs-Browser: http://git.debian.org/?p=collab-maint/ibniz.git;a=summary

Package: ibniz
Architecture: alpha any-amd64 arm armel armhf arm64 any-i386 ia64 mipsel sh4 x32
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Virtual machine for compact low-level audiovisual programs
IBNIZ is a virtual machine designed for extremely compact low-level
audiovisual programs. The leading design goal is usefulness as a
platform for demoscene productions, glitch art and similar projects.
Mainsteam software engineering aspects are considered totally
irrelevant.
34 changes: 34 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ibniz
Source: <http://pelulamu.net/ibniz/>

Files: *
Copyright: 2012 Ville-Matias Heikkila <viznut@low.fi>
License: zlib

Files: debian/*
Copyright: 2013 maxigas <maxigas@anargeek.net>
License: zlib

License: zlib
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:
.
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
.
2. Altered source versions must be plainly marked as such, and must
not be misrepresented as being the original software.
.
3. This notice may not be removed or altered from any source
distribution.



2 changes: 2 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ibniz.txt

1 change: 1 addition & 0 deletions debian/examples
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
examples/*
1 change: 1 addition & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ibniz usr/bin
1 change: 1 addition & 0 deletions debian/manpages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ibniz.1
7 changes: 7 additions & 0 deletions debian/menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
?package(ibniz): \
needs="X11" \
section="Applications/Video" \
title="IBNIZ" \
command="ibniz" \
hints="Audio,Video,VJ,Live programming"

37 changes: 37 additions & 0 deletions debian/patches/fixingmakefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Description: Added hardening flags and fixed a compiler reference.
Hardening flags according to https://wiki.debian.org/Hardening
Author: maxigas <maxigas@anargeek.net>
Forwarded: no
Last-Update: <2013-09-23>

Index: ibniz-1.18/Makefile
===================================================================
--- ibniz-1.18.orig/Makefile 2013-09-23 01:30:34.000000000 +0200
+++ ibniz-1.18/Makefile 2013-09-23 01:38:34.000000000 +0200
@@ -26,16 +26,16 @@
# cat ui_sdl.c vm_slow.c clipboard.c > whole.c

$(EXE): ui_sdl.o vm_slow.o clipboard.o
- $(CC) -Os -s ui_sdl.o vm_slow.o clipboard.o -o $(EXE) $(FLAGS) -lm
+ $(CC) -Os -s ui_sdl.o vm_slow.o clipboard.o -o $(EXE) $(FLAGS) $(LDFLAGS) -lm

ui_sdl.o: ui_sdl.c ibniz.h font.i vm.h texts.i vm.h
- $(CC) -c -Os ui_sdl.c -o ui_sdl.o $(FLAGS)
+ $(CC) -c -Os ui_sdl.c -o ui_sdl.o $(FLAGS) $(CFLAGS) $(CPPFLAGS)

clipboard.o: clipboard.c ibniz.h
- $(CC) -c -Os clipboard.c -o clipboard.o $(FLAGS)
+ $(CC) -c -Os clipboard.c -o clipboard.o $(FLAGS) $(CFLAGS) $(CPPFLAGS)

vm_slow.o: vm_slow.c ibniz.h vm.h
- $(CC) -c -O3 vm_slow.c -o vm_slow.o
+ $(CC) -c -O3 vm_slow.c -o vm_slow.o $(CFLAGS) $(CPPFLAGS)

font.i: font.pl
perl font.pl > font.i
@@ -44,4 +44,4 @@
./vmtest

vmtest: vm_test.c vm_slow.c
- gcc vm_test.c vm_slow.c -o vmtest -lm
+ $(CC) vm_test.c vm_slow.c -o vmtest -lm $(CFLAGS) $(CPPFLAGS)
123 changes: 123 additions & 0 deletions debian/patches/manpage.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
Added a man page which is compiled from rst.Index: ibniz-1.18/Makefile
===================================================================
--- ibniz-1.18.orig/Makefile 2013-09-23 02:20:56.000000000 +0200
+++ ibniz-1.18/Makefile 2013-09-23 02:20:56.000000000 +0200
@@ -2,7 +2,7 @@
CC=gcc
EXE=ibniz
FLAGS=`sdl-config --libs --cflags` -DX11 -lX11
-all: ibniz
+all: ibniz ibniz.1

# For win32 builds using mingw32 (you'll probably need to modify these)
#CC=i586-mingw32msvc-gcc
@@ -11,7 +11,7 @@
#all: ibniz.exe

clean:
- rm -f *.o *~ ibniz vmtest ibniz.exe whole.c
+ rm -f *.o *~ ibniz vmtest ibniz.exe whole.c ibniz.1

package: clean
cd .. && cp -R src ibniz-1.18 && tar czf ibniz-1.18.tar.gz ibniz-1.18
@@ -45,3 +45,7 @@

vmtest: vm_test.c vm_slow.c
$(CC) vm_test.c vm_slow.c -o vmtest -lm $(CFLAGS) $(CPPFLAGS)
+
+ibniz.1: ibniz.rst
+ rst2man ibniz.rst ibniz.1
+
Index: ibniz-1.18/ibniz.rst
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ ibniz-1.18/ibniz.rst 2013-09-23 02:23:38.000000000 +0200
@@ -0,0 +1,88 @@
+=========
+ ibniz
+=========
+
+----------------------------------------------------------
+Virtual machine for compact low-level audiovisual programs
+----------------------------------------------------------
+
+:Author: Originally written by Ville-Matias Heikkila <viznut@low.fi>, Man page by maxigas <maxigas@anargeek.net>, based on the original ibniz.txt.
+:Date: 2013-09-23
+:Copyright: zlib
+:Version: 1.18
+:Manual section: 1
+:Manual group: real time audio-video synthesis
+
+SYNOPSIS
+========
+
+ ibniz [OPTION]... [CODE]
+
+DESCRIPTION
+===========
+
+Virtual machine for compact low-level audiovisual programs
+
+IBNIZ is a virtual machine designed for extremely compact low-level
+audiovisual programs. The leading design goal is usefulness as a
+platform for demoscene productions, glitch art and similar projects.
+Mainsteam software engineering aspects are considered totally
+irrelevant.
+
+IBNIZ stands for Ideally Bare Numeric Impression giZmo. The name also
+refers to Gottfried Leibniz, the 17th-century polymath who, among all,
+invented binary arithmetic, built the first four-operation calculating
+machine, and believed that the world was designed with the principle
+that a minimal set of rules should yield a maximal diversity.
+
+The IBNIZ virtual machine is basically a two-stack machine somewhat
+similar to Forth implementations but with the major difference that
+the stack is cyclical and also used as output buffer. The machine runs
+in an endless loop by default, with the loop counter variable(s)
+pushed on top of the stack on every loop cycle.
+
+Each instruction is one character long, with the exception of
+'loadimm' which consists of a string of hexadecimal digits. This also
+gives IBNIZ some flavor of an esoteric programming language.
+
+OPTIONS
+=======
+
+--config=<file> Read configuration settings from <file>, if it exists.
+--version, -V Show this program's version number and exit.
+--help, -h Show this help message and exit.
+
+And a lot more standard docutils options.
+
+COMMAND LINE OPTIONS
+====================
+
+-h Dump help on command line usage
+-v Dump version info
+-c CODE Execute code
+-n No autorun of loaded code
+
+The following extra options were added for creating the YouTube
+video:
+
+-e Dump user keystrokes to stdout
+-p Playback dumped user keystrokes from stdin
+-M Dump raw video to stdout and raw audio to stderr, 30 fps, non-realtime, yuv4mpeg2 and pcm_s16
+
+EXAMPLES
+========
+
+Some commands used in this process, for reference:
+
+``./ibniz -e > events``
+
+``./ibniz -M -p < events 2>vid.pcm | ffmpeg -y -i - -r 30 vid.avi``
+
+``ffmpeg -i vid.avi -f s16le -ar 44100 -ac 1 -i vid.pcm -vcodec copy vidav.avi``
+
+SEE ALSO
+========
+
+* `ibniz.txt </usr/share/doc/ibniz/ibniz.txt>`
+
+
2 changes: 2 additions & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#fixingmakefile.patch
#manpage.patch
17 changes: 17 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/make -f
export DH_VERBOSE=1

%:
dh $@ --parallel

override_dh_configure: src
mv $</* ./
dh_auto_configure

override_dh_auto_build:
rm -f font.i
dh_auto_build

override_dh_auto_test:
make runtest

1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
6 changes: 6 additions & 0 deletions debian/upstream
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Name: IBNIZ (Ideally Bare Numeric Impression giZmo)
Homepage: http://pelulamu.net/ibniz/
Screenshots: https://www.youtube.com/embed/aKMrBaXJvMs
Repository: https://github.com/viznut/IBNIZ/
Repository-Browse: https://github.com/viznut/IBNIZ/

4 changes: 4 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version=3
http://pelulamu.net/ibniz/ ibniz-(\d\.\d+)\.tar\.gz


4 changes: 4 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ vmtest: vm_test.c vm_slow.c

ibniz2c: ibniz2c.c compiler.c gen_c.c
gcc -DIBNIZ2C -Os compiler.c ibniz2c.c -o ibniz2c -lm

install: ${EXE}
install -d ${DESTDIR}/usr/bin
install $< ${DESTDIR}/usr/bin/

0 comments on commit d0fca3b

Please sign in to comment.