|
|
|
@ -1,11 +1,8 @@
|
|
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
|
|
|
|
|
|
DEB_CONFIGURE_INCLUDEDIR := /usr/include
|
|
|
|
|
DEB_CONFIGURE_MANDIR := /usr/share/man
|
|
|
|
|
DEB_CONFIGURE_PREFIX := /usr
|
|
|
|
@ -23,10 +20,13 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
|
|
|
|
|
&& echo xz || echo bzip2)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
|
export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|
|
|
|
export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
|
|
|
|
|
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
|
|
|
|
|
|
export DH_OPTIONS
|
|
|
|
|
export QTDIR=/usr/share/qt3
|
|
|
|
|
export QMAKESPEC=$(QTDIR)/mkspecs/dilos-g++
|
|
|
|
|
export TQTDIR=/usr/share/tqt3
|
|
|
|
|
export QMAKESPEC=$(TQTDIR)/mkspecs/dilos-g++
|
|
|
|
|
|
|
|
|
|
CXXFLAGS = -Wall -g
|
|
|
|
|
|
|
|
|
@ -36,10 +36,8 @@ else
|
|
|
|
|
CXXFLAGS += -O2
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
PYTHONS := $(shell pyversions -vr debian/control)
|
|
|
|
|
#DBG_PYTHONS := $(shell pyversions -vd)
|
|
|
|
|
|
|
|
|
|
DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_python)
|
|
|
|
|
PYTHONS := $(shell py3versions -vd)
|
|
|
|
|
#DBG_PYTHONS := $(shell py3versions -vd)
|
|
|
|
|
|
|
|
|
|
GCCVER := $(shell gcc --version | sed -n '/^gcc (GCC)/s/.*(GCC) \(...\).*/\1/p')
|
|
|
|
|
ifneq (,$(filter $(GCCVER),4.2 4.3))
|
|
|
|
@ -59,7 +57,6 @@ build-%/configure-stamp:
|
|
|
|
|
mkdir -p build-$*
|
|
|
|
|
cd build-$* && python$* ../configure.py \
|
|
|
|
|
-c -u -k /usr -o /usr/include -n /usr/lib/$(DEB_HOST_MULTIARCH) \
|
|
|
|
|
-e python$* \
|
|
|
|
|
-v /usr/share/sip-tqt/trinity -j $(SPLIT)
|
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
|
@ -68,7 +65,6 @@ dbg-build-%/configure-stamp:
|
|
|
|
|
mkdir -p dbg-build-$*
|
|
|
|
|
cd dbg-build-$* && python$*-dbg ../configure.py \
|
|
|
|
|
-c -u -k /usr -o /usr/include -n /usr/lib \
|
|
|
|
|
-e python$* \
|
|
|
|
|
-v /usr/share/sip-tqt/trinity -j $(SPLIT)
|
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
|
@ -135,20 +131,20 @@ install-arch:
|
|
|
|
|
|
|
|
|
|
# set -e; \
|
|
|
|
|
# for version in ${DBG_PYTHONS}; do \
|
|
|
|
|
# $(MAKE) -C dbg-build-$$version install DESTDIR=$(CURDIR)/debian/python-pytde-dbg;\
|
|
|
|
|
# $(MAKE) -C dbg-build-$$version install DESTDIR=$(CURDIR)/debian/python3-pytde-dbg;\
|
|
|
|
|
# done
|
|
|
|
|
|
|
|
|
|
dh_install -a --sourcedir=$(CURDIR)/debian/tmp
|
|
|
|
|
|
|
|
|
|
mkdir -p $(CURDIR)/debian/python-pytde/usr/lib/$(DEB_HOST_MULTIARCH)
|
|
|
|
|
ln -s /usr/lib/$(DEB_HOST_MULTIARCH)/trinity/libkonsolepart.so $(CURDIR)/debian/python-pytde/usr/lib/$(DEB_HOST_MULTIARCH)
|
|
|
|
|
# for i in $$(find debian/python-*-dbg -name '*.so'); do \
|
|
|
|
|
mkdir -p $(CURDIR)/debian/python3-pytde/usr/lib/$(DEB_HOST_MULTIARCH)
|
|
|
|
|
ln -s /usr/lib/$(DEB_HOST_MULTIARCH)/trinity/libkonsolepart.so $(CURDIR)/debian/python3-pytde/usr/lib/$(DEB_HOST_MULTIARCH)
|
|
|
|
|
# for i in $$(find debian/python3-*-dbg -name '*.so'); do \
|
|
|
|
|
# b=$$(basename $$i .so); \
|
|
|
|
|
# mv $$i $$(dirname $$i)/$${b}_d.so; \
|
|
|
|
|
# done
|
|
|
|
|
# find debian/python-*-dbg ! -type d \
|
|
|
|
|
# find debian/python3-*-dbg ! -type d \
|
|
|
|
|
# ! \( -name '*.so' -o -name '*config_d.py' \) | xargs rm -f
|
|
|
|
|
# find debian/python-*-dbg -depth -type d -empty -exec rmdir {} \;
|
|
|
|
|
# find debian/python3-*-dbg -depth -type d -empty -exec rmdir {} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Must not depend on anything. This is to be called by
|
|
|
|
@ -162,11 +158,11 @@ binary-common:
|
|
|
|
|
dh_installexamples
|
|
|
|
|
dh_link
|
|
|
|
|
ifeq (,$(findstring -i, $(DH_OPTIONS)))
|
|
|
|
|
DH_OPTIONS= dh_strip -ppython-pytde #--dbg-package=python-pytde-dbg
|
|
|
|
|
DH_OPTIONS= dh_strip -ppython3-pytde #--dbg-package=python3-pytde-dbg
|
|
|
|
|
endif
|
|
|
|
|
dh_compress -X.py -X.ui -X.dtd
|
|
|
|
|
dh_fixperms
|
|
|
|
|
${DH_PYTHON2}
|
|
|
|
|
dh_python3 --no-dbg-cleaning
|
|
|
|
|
dh_installdeb
|
|
|
|
|
dh_shlibdeps -l /usr/lib/$(DEB_HOST_MULTIARCH)
|
|
|
|
|
dh_gencontrol
|
|
|
|
|