The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix kfreebsd build on Debian

These changes was commited to the Birdfont repository Mon, 24 Aug 2015 13:54:50 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Hideki Yamane <henrich@debian.org>
Mon, 24 Aug 2015 13:54:50 +0000 (15:54 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 24 Aug 2015 13:54:50 +0000 (15:54 +0200)
commit f359e2c0a3cc771de4ac2c6445c3d559d1812192
tree 78a4bbf35d2847537534fc32fcd4f1b5b693f9ab
parent 2d02a0307d0d118c95dd244d59981f8474830d41
Fix kfreebsd build on Debian

dodo.py
scripts/bavala.py
diff --git a/dodo.py b/dodo.py
--- a/dodo.py +++ b/dodo.py @@ -93,7 +93,9 @@ ] - if "bsd" in sys.platform: + if "kfreebsd" in sys.platform: + LIBBIRDGEMS_SO_VERSION=version.LIBBIRDGEMS_SO_VERSION + elif "bsd" in sys.platform: LIBBIRDGEMS_SO_VERSION='${LIBbirdgems_VERSION}' else: LIBBIRDGEMS_SO_VERSION=version.LIBBIRDGEMS_SO_VERSION @@ -105,7 +107,9 @@ yield libbirdgems.gen_so('-shared -L ./build -l m') yield libbirdgems.gen_ln() - if "bsd" in sys.platform: + if "kfreebsd" in sys.platform: + SO_VERSION=version.SO_VERSION + elif "bsd" in sys.platform: SO_VERSION='${LIBbirdfont_VERSION}' else: SO_VERSION=version.SO_VERSION
--- a/scripts/bavala.py +++ b/scripts/bavala.py @@ -227,7 +227,9 @@ """generate a symbolic link to the generated ".so" file""" so_file = self.so.rsplit('/')[-1] - if not "bsd" in sys.platform: + if "kfreebsd" in sys.platform: + create_link = "ln -s -T " + so_file + " " + self.so_link_name + " " + elif not "bsd" in sys.platform: create_link = "ln -s -T " + so_file + " " + self.so_link_name + " " create_link += "&& mv " + self.so_link_name + " " + self.build + "/"