wine-staging/debian/rules

73 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

#!/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
%:
dh $@ --parallel
2014-07-29 18:09:17 -07:00
override_dh_auto_configure:
# Apply our patches, reconfigure, and update the wineserver protocol request data
make -C "$(CURDIR)/patches/" DESTDIR="$(CURDIR)" install
2014-07-29 18:09:17 -07:00
# Run configure
ifeq ($(DEB_BUILD_ARCH), amd64)
2014-07-29 18:09:17 -07:00
./configure --prefix=/opt/wine-compholio \
--libdir=\$${prefix}/lib64 \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--enable-win64 \
--without-gstreamer \
--with-xattr \
$(CONFFLAGS)
else
2014-07-29 18:09:17 -07:00
./configure --prefix=/opt/wine-compholio \
--libdir=\$${prefix}/lib \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--without-gstreamer \
--with-xattr \
$(CONFFLAGS)
endif
2014-07-29 18:09:17 -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
override_dh_installdocs:
# Create copies of license files
cp "$(CURDIR)/LICENSE" "$(CURDIR)/LICENSE.wine"
cp "$(CURDIR)/LICENSE.md" "$(CURDIR)/LICENSE.wine-compholio"
dh_installdocs --link-doc=wine-compholio
2014-07-29 18:09:17 -07:00
override_dh_install:
dh_install --fail-missing
2014-07-29 18:09:17 -07:00
# These files will end up in multiple packages otherwise
rm -f debian/wine-compholio/opt/wine-compholio/bin/wine
rm -f debian/wine-compholio/opt/wine-compholio/bin/wine-preloader
rm -f debian/wine-compholio/opt/wine-compholio/bin/wine64
rm -f debian/wine-compholio/opt/wine-compholio/bin/wine64-preloader
2014-07-29 18:09:17 -07:00
override_dh_strip:
dh_strip -Xwine-pthread -Xwine-kthread --dbg-package=wine-compholio-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)
dh_shlibdeps -l $(CURDIR)/debian/tmp/opt/wine-compholio/lib64/
else
dh_shlibdeps -l $(CURDIR)/debian/tmp/opt/wine-compholio/lib/
endif