2013-11-21 12:33:37 -08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2015-07-27 15:59:48 -07:00
|
|
|
# Prefer gcc-4.5, then 4.7, then 4.9 - otherwise fallback to gcc.
|
|
|
|
export CC = $(shell for _cc in gcc-4.5 gcc-4.7 gcc-4.9 gcc false; do \
|
|
|
|
if which "$$_cc" >/dev/null 2>&1; then echo "$$_cc"; break; fi; done)
|
2013-11-21 12:33:37 -08:00
|
|
|
|
2014-03-24 16:52:10 -07:00
|
|
|
%:
|
|
|
|
dh $@ --parallel
|
2013-11-21 12:33:37 -08:00
|
|
|
|
2014-07-29 18:09:17 -07:00
|
|
|
|
2014-03-24 16:52:10 -07:00
|
|
|
override_dh_auto_configure:
|
2013-11-21 12:33:37 -08:00
|
|
|
|
2014-02-07 19:37:54 -08:00
|
|
|
# Apply our patches, reconfigure, and update the wineserver protocol request data
|
2015-01-07 02:09:21 -08:00
|
|
|
"$(CURDIR)/patches/patchinstall.sh" DESTDIR="$(CURDIR)" --all
|
2013-11-21 12:33:37 -08:00
|
|
|
|
2014-07-29 18:09:17 -07:00
|
|
|
# Run configure
|
2013-11-21 12:33:37 -08:00
|
|
|
ifeq ($(DEB_BUILD_ARCH), amd64)
|
2014-12-17 11:36:31 -08:00
|
|
|
./configure --prefix=/opt/wine-staging \
|
2014-07-29 18:09:17 -07:00
|
|
|
--libdir=\$${prefix}/lib64 \
|
|
|
|
--mandir=\$${prefix}/share/man \
|
|
|
|
--infodir=\$${prefix}/share/info \
|
|
|
|
--enable-win64 \
|
|
|
|
--without-gstreamer \
|
|
|
|
--with-xattr \
|
|
|
|
$(CONFFLAGS)
|
2013-11-21 12:33:37 -08:00
|
|
|
else
|
2014-12-17 11:36:31 -08:00
|
|
|
./configure --prefix=/opt/wine-staging \
|
2014-07-29 18:09:17 -07:00
|
|
|
--libdir=\$${prefix}/lib \
|
|
|
|
--mandir=\$${prefix}/share/man \
|
|
|
|
--infodir=\$${prefix}/share/info \
|
|
|
|
--without-gstreamer \
|
|
|
|
--with-xattr \
|
|
|
|
$(CONFFLAGS)
|
2013-11-21 12:33:37 -08:00
|
|
|
endif
|
|
|
|
|
2014-07-29 18:09:17 -07:00
|
|
|
|
2014-03-24 16:52:10 -07:00
|
|
|
override_dh_auto_test:
|
|
|
|
# Wine's test suite does not pass on build daemons, skip it for now
|
|
|
|
|
2014-07-29 18:09:17 -07:00
|
|
|
|
2014-03-24 16:52:10 -07:00
|
|
|
override_dh_installdocs:
|
2014-12-17 11:36:31 -08:00
|
|
|
dh_installdocs --link-doc=wine-staging
|
2014-03-24 16:52:10 -07:00
|
|
|
|
2014-07-29 18:09:17 -07:00
|
|
|
|
2014-03-24 16:52:10 -07:00
|
|
|
override_dh_install:
|
|
|
|
dh_install --fail-missing
|
2014-07-29 18:09:17 -07:00
|
|
|
|
2014-03-24 16:52:10 -07:00
|
|
|
# These files will end up in multiple packages otherwise
|
2014-12-17 11:36:31 -08:00
|
|
|
rm -f debian/wine-staging/opt/wine-staging/bin/wine
|
|
|
|
rm -f debian/wine-staging/opt/wine-staging/bin/wine-preloader
|
|
|
|
rm -f debian/wine-staging/opt/wine-staging/bin/wine64
|
|
|
|
rm -f debian/wine-staging/opt/wine-staging/bin/wine64-preloader
|
2014-03-24 16:52:10 -07:00
|
|
|
|
2014-12-18 17:30:05 -08:00
|
|
|
# Create compatibility symlinks
|
|
|
|
mkdir -p debian/wine-compholio/opt/wine-compholio/bin
|
2015-03-31 21:10:00 -07:00
|
|
|
mkdir -p debian/wine-staging-compat/usr/bin
|
|
|
|
|
2014-12-18 17:30:05 -08:00
|
|
|
for _file in $$(ls "debian/wine-staging/opt/wine-staging/bin"); do \
|
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio/opt/wine-compholio/bin/$$_file"; \
|
2015-03-31 21:10:00 -07:00
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-staging-compat/usr/bin/$$_file"; \
|
2014-12-18 17:30:05 -08:00
|
|
|
done
|
|
|
|
|
2015-01-11 04:42:15 -08:00
|
|
|
# Architecture specific compatibility symlinks
|
|
|
|
ifeq ($(DEB_HOST_ARCH),amd64)
|
|
|
|
for _file in wine wine-preloader wine64 wine64-preloader; do \
|
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio/opt/wine-compholio/bin/$$_file"; \
|
2015-03-31 21:10:00 -07:00
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-staging-compat/usr/bin/$$_file"; \
|
2015-01-11 04:42:15 -08:00
|
|
|
done
|
|
|
|
else
|
|
|
|
for _file in wine wine-preloader; do \
|
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio/opt/wine-compholio/bin/$$_file"; \
|
2015-03-31 21:10:00 -07:00
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-staging-compat/usr/bin/$$_file"; \
|
2015-01-11 04:42:15 -08:00
|
|
|
done
|
|
|
|
endif
|
2014-07-29 18:09:17 -07:00
|
|
|
|
2014-03-24 16:52:10 -07:00
|
|
|
override_dh_strip:
|
2014-12-17 11:36:31 -08:00
|
|
|
dh_strip -Xwine-pthread -Xwine-kthread --dbg-package=wine-staging-dbg
|
2014-03-24 20:49:02 -07:00
|
|
|
|
2014-07-29 18:09:17 -07:00
|
|
|
|
2014-03-24 20:49:02 -07:00
|
|
|
override_dh_shlibdeps:
|
|
|
|
ifeq ($(DEB_HOST_ARCH),amd64)
|
2014-12-17 11:36:31 -08:00
|
|
|
dh_shlibdeps -l $(CURDIR)/debian/tmp/opt/wine-staging/lib64/
|
2014-03-24 20:49:02 -07:00
|
|
|
else
|
2014-12-17 11:36:31 -08:00
|
|
|
dh_shlibdeps -l $(CURDIR)/debian/tmp/opt/wine-staging/lib/
|
2014-03-24 20:49:02 -07:00
|
|
|
endif
|