Commit 58b3776
new build script on linux
Changed files (5)
modifiedREADMEmodifiedbirdfont_installmodifiedconfiguremodifiedlibbirdfont/BackgroundTool.valamodifiedscripts/build.py
Diff
@@ -17,8 +17,7 @@ Install vala and all required libraries, they are most likely in packages with a -dev or -devel affix. Install the following packages: -valac -python-doit +valac libglib2.0-dev libgtk2.0-dev libxml2-dev @@ -27,22 +26,14 @@ unicode-data (unicode character database) Configure, build and install: ./configure -doit -sudo ./install +./script/linux_build.py +sudo ./birdfont_install ------------------------- -Bulding Windows Binaries ------------------------- - -Windows binaries are cross compiled with mingw on a Ubuntu system. Install -all dependencies from Gregs repository as described here: - -http://greg.thehellings.com/2012/02/a-better-ubuntu-mingw-experience/ - -You need wine and nsis windows installer as well. - -Compile and build the installer with: -./scripts/build_win32.py +BirdFont have two build systems one very simple python script that +builds all binaries at once and a better build system based on doit +(pydoit.org). The doit scripts will only rebuild the parts that has +changed and is the prefered way to compile BirdFont if you are working +on a new feature. --------------------- Building Mac binaries @@ -58,16 +49,10 @@ Compile all dependencies using MacPorts and run: Precompiled Packages -------------------- -A Windows binary is avalilable at http://birdfont.org -You need to install the windows version on drive C:. +Windows binaries are avalilable at http://birdfont.org A Ubuntu package is avalilable at https://launchpad.net You can apt-get install birdfont form Olivier Bertens repository. -A Debian packages is available at http://packages.debian.org - -A Machintosh binary image is available at http://birdfont.org -You might need to install a more recent version of XOrg. Install -the server and run: -sudo launchctl load -w /Library/LaunchAgents/org.macports.startx.plist - +A Machintosh binary image is available at http://birdfont.org and +a GTK version for Mac can be installed with MacPorts. @@ -59,8 +59,8 @@ install ('resources/linux/birdfont.png', '/share/icons/hicolor/48x48/apps') install ('build/bin/birdfont', '/bin') install ('build/bin/birdfont-export', '/bin')-install ('build/libbirdfont.so.' + version.SO_VERSION, '/lib')-install ('build/libbirdfont.so', '/lib')+install ('build/bin/libbirdfont.so.' + version.SO_VERSION, '/lib')+install ('build/bin/libbirdfont.so', '/lib') if not bsd_manpages: install ('build/birdfont.1.gz', '/share/man/man1')@@ -50,10 +50,6 @@ def configure (): print (FAIL + "valac is too old." + ENDC) exit (1) - if not test_program_version ("doit", 0, 20, 0): - print (FAIL + "doit is too old" + ENDC)- exit (1)- libs = [ 'cairo', 'gdk-pixbuf-2.0', @@ -146,4 +146,3 @@ class BackgroundTool : Tool { } }-@@ -100,7 +100,7 @@ def birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library): run(cc + " " + ldflags + " \ build/birdfont-export/*.o \- build/bin/""" + library + """ \+ -L build/bin/ -l""" + library + """ \ $(pkg-config --libs libxml-2.0) \ $(pkg-config --libs gio-2.0) \ $(pkg-config --libs cairo) \@@ -145,7 +145,7 @@ def birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, library): run(cc + " " + ldflags + """ \ build/birdfont/*.o \- """ + library + """ \+ -L build/bin/ -l""" + library + """ \ $(pkg-config --libs libxml-2.0) \ $(pkg-config --libs gio-2.0) \ $(pkg-config --libs cairo) \