2013-11-21 12:33:37 -08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
# Use gcc-4.5 if it's available
|
|
|
|
ifeq ($(shell which gcc-4.5),)
|
|
|
|
CC = gcc
|
|
|
|
else
|
|
|
|
CC = gcc-4.5
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
make -C "$(CURDIR)/patches/" DESTDIR="$(CURDIR)" install
|
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
|
|
|
|
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"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ -e debian/wine-staging-i386 ]; then \
|
|
|
|
mkdir -p debian/wine-compholio-i386/opt/wine-compholio/bin; \
|
|
|
|
for _file in $$(ls "debian/wine-staging-i386/opt/wine-staging/bin"); do \
|
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio-i386/opt/wine-compholio/bin/$$_file"; \
|
|
|
|
done \
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e debian/wine-staging-amd64 ]; then \
|
|
|
|
mkdir -p debian/wine-compholio-amd64/opt/wine-compholio/bin; \
|
|
|
|
for _file in $$(ls "debian/wine-staging-amd64/opt/wine-staging/bin"); do \
|
|
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio-amd64/opt/wine-compholio/bin/$$_file"; \
|
|
|
|
done \
|
|
|
|
fi
|
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
|