The Birdfont Source Code
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
Fix kfreebsd build on Debian
--- 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 + "/"