2005-12-06 16:37:44 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2006-04-05 13:18:07 +00:00
|
|
|
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
2005-12-06 16:37:44 +00:00
|
|
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
|
|
|
2006-04-05 13:18:07 +00:00
|
|
|
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
|
|
|
|
confflags += --build `echo $(DEB_BUILD_GNU_TYPE) | sed -e 's/i[345]86/i686/'`
|
|
|
|
else
|
|
|
|
confflags += --build `echo $(DEB_BUILD_GNU_TYPE) | sed -e 's/i[345]86/i686/'` --host `echo $(DEB_HOST_GNU_TYPE) | sed -e 's/i[345]86/i686/'`
|
|
|
|
endif
|
|
|
|
|
2005-12-06 16:37:44 +00:00
|
|
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS = -g
|
2006-05-23 14:03:02 +00:00
|
|
|
CXXFLAGS = -g
|
2005-12-06 16:37:44 +00:00
|
|
|
else
|
|
|
|
CFLAGS = -O2 -g
|
2006-05-23 14:03:02 +00:00
|
|
|
CXXFLAGS = -O2 -g
|
2005-12-06 16:37:44 +00:00
|
|
|
endif
|
|
|
|
|
2009-07-08 13:44:48 +00:00
|
|
|
%:
|
|
|
|
dh $@
|
|
|
|
|
|
|
|
configure: configure.ac cf/boinc.m4
|
|
|
|
autoreconf --install --symlink --force
|
|
|
|
|
|
|
|
binary: configure
|
|
|
|
dh $@ --before dh_auto_configure
|
2005-12-06 16:37:44 +00:00
|
|
|
# Add here commands to configure the package.
|
|
|
|
# autoreconf
|
2006-04-05 13:18:07 +00:00
|
|
|
./configure $(confflags) \
|
2005-12-06 16:37:44 +00:00
|
|
|
--prefix=/usr \
|
2006-04-17 19:51:43 +00:00
|
|
|
--enable-gtk-doc \
|
2006-06-08 16:33:09 +00:00
|
|
|
--enable-backend-boinc \
|
2012-10-17 08:30:03 +00:00
|
|
|
--disable-backend-condor \
|
2007-03-13 14:54:13 +00:00
|
|
|
--enable-backend-local \
|
2009-07-08 15:00:47 +00:00
|
|
|
--with-html-dir=/usr/share/doc/libdcapi-doc \
|
2008-02-18 10:02:47 +00:00
|
|
|
--disable-java \
|
2006-05-23 14:03:02 +00:00
|
|
|
CFLAGS="$(CFLAGS)" \
|
|
|
|
CXXFLAGS="$(CXXFLAGS)"
|
2009-09-07 15:37:59 +00:00
|
|
|
dh $@ --after dh_auto_configure -X.svn --dbg-package=libdcapi-dbg
|