[Pkg-wmaker-commits] [wmcube] 39/67: debian/rules: Update override_dh_auto_build target to set FREEBSD macro when building on kfreebsd.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Tue Aug 25 03:22:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmcube.
commit f8c41173ceaa5728043f7f102a64fd63a9209d4c
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue Jan 13 14:54:24 2015 -0600
debian/rules: Update override_dh_auto_build target to set FREEBSD macro when
building on kfreebsd.
---
debian/rules | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/debian/rules b/debian/rules
index adda8c3..57c9eca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,18 @@
#!/usr/bin/make -f
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
%:
dh $@ --sourcedirectory=wmcube
override_dh_auto_build:
+ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
+ dh_auto_build --sourcedirectory=wmcube -- OS=-DFREEBSD \
+ CFLAGS="$(shell dpkg-buildflags --get CFLAGS)"
+else
dh_auto_build --sourcedirectory=wmcube -- \
CFLAGS="$(shell dpkg-buildflags --get CFLAGS)"
+endif
get-orig-source:
uscan --verbose --force-download --rename
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcube.git
More information about the Pkg-wmaker-commits
mailing list