diff options
| author | hallgren <hallgren@chalmers.se> | 2016-04-12 15:01:11 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2016-04-12 15:01:11 +0000 |
| commit | 145495339155ac97c4dfb4e3401fdca635980311 (patch) | |
| tree | 758edffc5a9ee21851e845e0d9fb5941d2ae90ce /debian/rules | |
| parent | 94b8ebf40215e477cf625d55e83b1c718e406e08 (diff) | |
Changes to include the Java binding in binary distribution packages
This means that you now need to have a Java SDK installed to build
a Debian package.
The bin/build-binary-dist.sh (which builds bintar packages and OS X installer
packages) now skips the Python binding if python is not installed. Likewise
it skips the Java binding if a Java SDK is not installed.
Diffstat (limited to 'debian/rules')
| -rw-r--r-- | debian/rules | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 0079f32ca..bf2d65372 100644 --- a/debian/rules +++ b/debian/rules @@ -15,25 +15,29 @@ override_dh_shlibdeps: override_dh_auto_build: cd src/runtime/python && EXTRA_INCLUDE_DIRS=$(CURDIR)/src/runtime/c EXTRA_LIB_DIRS=$(CURDIR)/src/runtime/c/.libs python setup.py build + cd src/runtime/java && make INSTALL_PATH=/usr/lib echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs cabal build override_dh_auto_clean: rm -fr dist/build -cd src/runtime/python && rm -fr build + -cd src/runtime/java && make clean -cd src/runtime/c && make clean override_dh_auto_configure: - cd src/runtime/c && ./setup.sh configure --prefix=/usr - cd src/runtime/c && ./setup.sh build + cd src/runtime/c && bash setup.sh configure --prefix=/usr + cd src/runtime/c && bash setup.sh build cabal update cabal install --only-dependencies cabal configure --prefix=/usr -fserver -fc-runtime --extra-lib-dirs=$(CURDIR)/src/runtime/c/.libs --extra-include-dirs=$(CURDIR)/src/runtime/c override_dh_auto_install: LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs cabal copy --destdir=$(CURDIR)/debian/gf - cd src/runtime/c && ./setup.sh copy prefix=$(CURDIR)/debian/gf/usr + cd src/runtime/c && bash setup.sh copy prefix=$(CURDIR)/debian/gf/usr cd src/runtime/python && python setup.py install --prefix=$(CURDIR)/debian/gf/usr + cd src/runtime/java && make INSTALL_PATH=$(CURDIR)/debian/gf/usr/lib install + cp src/runtime/java/jpgf.jar $(CURDIR)/debian/gf/usr/lib D="`find debian/gf -name site-packages`" && [ -n "$$D" ] && cd $$D && cd .. && mv site-packages dist-packages override_dh_auto_test: |
