Created
November 11, 2017 03:00
-
-
Save ebridges/521017dcf7795ccd22a9dc5e4e8977cf to your computer and use it in GitHub Desktop.
jhbuild customizations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: python -*- | |
#Uncomment this if you have a completed build and only want to rebuild | |
#updated modules instead of everything: | |
# | |
#build_policy = "updated-deps" | |
#Select one of these, or use a different one: Do keep the directories | |
#separate for stable and unstable as they have different | |
#dependencies. You can use 2.3.x for svn builds. | |
prefix = os.path.join(os.environ["HOME"], "gnucash-stable") | |
#prefix = os.path.join(os.environ["HOME"], "gnucash-unstable") | |
#Select which modules to build. The only difference is which gnucash | |
#module (and all of the dependencies, see above) get built. N.B.: If | |
#you are building with/for OS X 10.5, append "Leopard" to the | |
#meta-gnucash module name, e.g. meta-gnucash-stable-Leopard." | |
modules = ["meta-gtk-osx-bootstrap", "meta-gtk-osx-core", "meta-gnucash-stable"] | |
#modules = ["python", "meta-gtk-osx-bootstrap", "meta-gtk-osx-core", "meta-gnucash-unstable"] | |
#modules = ["python", "meta-gtk-osx-bootstrap", "meta-gtk-osx-core", "gnucash-git"] | |
# This will set up the build for your system. The result will run on | |
# the same or newer versionss of MacOS for the same archechture. | |
setup_sdk(architectures=['i386']) | |
# To build a GnuCash able to run on older systems you can specify | |
# minimum version, SDK, and architecture. Note that only | |
# MacOSX10.9.sdk and later can build for earlier MacOS versions, and | |
# that all Macs running 10.7 and later are 64-bit. Finally note that | |
# GnuCash 2.6.99 and later requuire MacOS X 10.9 or later. If you need | |
# to build with an older SDK see | |
# https://wiki.gnome.org/Projects/GTK+/OSX/Building#Building_for_Older_Versions_of_Mac_OS_X | |
#This will build a 32-bit version for 10.5 and later: | |
#setup_sdk("10.5", "10.5", ["i386"]) | |
#moduleset = "http://github.com/gnucash/gnucash-on-osx/raw/master/modulesets/gnucash.modules" | |
moduleset = "file:/Users/gnucash/gnucash.modules" | |
#If you wish to enable the mysql backend on gnucash-stable (it and | |
#pgsql are already included in gnucash-git), uncomment the lines | |
#below. | |
append_autogenargs("gnucash", "--enable-dbi") | |
_gc_module=modules[-1] | |
modules[-1]="pgsql" | |
modules.append(_gc_module) | |
module_extra_env["pgsql"] = { "CMAKE_INSTALL_PREFIX": prefix } | |
append_autogenargs("libdbi-drivers", "--with-pgsql --with-pgsql-incdir=" + prefix + "/include --with-pgsql-libdir=" + prefix + "/lib") | |
append_autogenargs("libofx", "--with-opensp-includes=" + prefix + "/include/OpenSP --with-opensp-libs=" + prefix + "/lib") | |
append_autogenargs("scrollkeeper", "--with-xml-catalog=" + os.path.join(prefix, "etc/xml/catalog")) | |
append_autogenargs("OpenSP", "--enable-shared") #To override the global --disable-shared | |
append_autogenargs("libdbi-drivers","--with-dbi-incdir=" + prefix + "/include --with-dbi-libdir=" + prefix + "/lib") | |
append_autogenargs("gnucash-unstable", "--with-dbi-dbd-dir=" + prefix +"/lib/dbd") | |
append_autogenargs("gnucash-git", "--with-dbi-dbd-dir=" + prefix +"/lib/dbd") | |
append_autogenargs("gnucash", "--with-dbi-dbd-dir=" + prefix +"/lib/dbd") | |
append_autogenargs("libiconv", "--with-libintl-prefix=" + prefix) | |
module_makecheck["gmp"] = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment