add ploticus, yet another graphics program

svn path=/nixpkgs/trunk/; revision=6214
This commit is contained in:
Armijn Hemel 2006-08-23 16:09:03 +00:00
parent ca6ae0b53d
commit 3580697f20
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,15 @@
source $stdenv/setup
preBuild() {
cd src
}
preBuild=preBuild
preInstall() {
ensureDir $out/bin
}
preInstall=preInstall
genericBuild

View file

@ -0,0 +1,15 @@
{stdenv, fetchurl, zlib, libX11, libpng}:
stdenv.mkDerivation {
name = "ploticus-2.33";
builder = ./builder.sh;
src = fetchurl {
url = http://surfnet.dl.sourceforge.net/sourceforge/ploticus/pl233src.tar.gz;
md5 = "1e242200e7e52f7a24041c95f58f2fc1";
};
buildInputs = [zlib libX11 libpng];
patches = [./ploticus-install.patch];
}

View file

@ -0,0 +1,13 @@
diff -ruN pl233src/src/Makefile pl233src.new/src/Makefile
--- pl233src/src/Makefile 2006-06-02 17:31:46.000000000 +0200
+++ pl233src.new/src/Makefile 2006-08-23 18:05:50.000000000 +0200
@@ -190,7 +190,8 @@
#### If you plan to do a "make install", where do you want the executable(s) to be moved to?
-BIN = /usr/local/bin
+#BIN = /usr/local/bin
+BIN = $(out)/bin
#### To set a hard-coded directory for prefabs files, uncomment & edit the following..