mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
86 lines
2.6 KiB
Makefile
Executable File
86 lines
2.6 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
# 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)
|
|
|
|
%:
|
|
dh $@ --parallel
|
|
|
|
|
|
override_dh_auto_configure:
|
|
|
|
# Apply our patches, reconfigure, and update the wineserver protocol request data
|
|
"$(CURDIR)/patches/patchinstall.sh" DESTDIR="$(CURDIR)" --all
|
|
|
|
# Run configure
|
|
ifeq ($(DEB_BUILD_ARCH), amd64)
|
|
./configure --prefix=/opt/wine-staging \
|
|
--libdir=\$${prefix}/lib64 \
|
|
--mandir=\$${prefix}/share/man \
|
|
--infodir=\$${prefix}/share/info \
|
|
--enable-win64 \
|
|
--without-gstreamer \
|
|
--with-xattr \
|
|
$(CONFFLAGS)
|
|
else
|
|
./configure --prefix=/opt/wine-staging \
|
|
--libdir=\$${prefix}/lib \
|
|
--mandir=\$${prefix}/share/man \
|
|
--infodir=\$${prefix}/share/info \
|
|
--without-gstreamer \
|
|
--with-xattr \
|
|
$(CONFFLAGS)
|
|
endif
|
|
|
|
|
|
override_dh_auto_test:
|
|
# Wine's test suite does not pass on build daemons, skip it for now
|
|
|
|
|
|
override_dh_installdocs:
|
|
dh_installdocs --link-doc=wine-staging
|
|
|
|
|
|
override_dh_install:
|
|
dh_install --fail-missing
|
|
|
|
# These files will end up in multiple packages otherwise
|
|
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
|
|
|
|
# Create compatibility symlinks
|
|
mkdir -p debian/wine-compholio/opt/wine-compholio/bin
|
|
mkdir -p debian/wine-staging-compat/usr/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"; \
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-staging-compat/usr/bin/$$_file"; \
|
|
done
|
|
|
|
# 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"; \
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-staging-compat/usr/bin/$$_file"; \
|
|
done
|
|
else
|
|
for _file in wine wine-preloader; do \
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio/opt/wine-compholio/bin/$$_file"; \
|
|
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-staging-compat/usr/bin/$$_file"; \
|
|
done
|
|
endif
|
|
|
|
override_dh_strip:
|
|
dh_strip -Xwine-pthread -Xwine-kthread --dbg-package=wine-staging-dbg
|
|
|
|
|
|
override_dh_shlibdeps:
|
|
ifeq ($(DEB_HOST_ARCH),amd64)
|
|
dh_shlibdeps -l $(CURDIR)/debian/tmp/opt/wine-staging/lib64/
|
|
else
|
|
dh_shlibdeps -l $(CURDIR)/debian/tmp/opt/wine-staging/lib/
|
|
endif
|