1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#!/usr/bin/make -f
CFLAGS += -fvisibility=hidden
LDFLAGS += -Wl,-z,defs -Wl,--as-needed
ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf))
arch_flags += --with-opengl=es
endif
ifeq (linux,$(DEB_HOST_ARCH_OS))
arch_flags += --enable-fb
endif
%:
dh $@ --with autoreconf --parallel
override_dh_auto_configure:
dh_auto_configure -- \
--disable-rpath \
--enable-doc \
--with-profile=dev \
--with-tests=regular \
--with-crypto=gnutls \
--disable-cserve \
--disable-pulseaudio \
--disable-physics \
--disable-tslib \
--disable-magic-debug \
--disable-gstreamer \
$(arch_flags)
override_dh_auto_build-indep:
$(MAKE) doc
override_dh_auto_test-indep:
override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-CK_DEFAULT_TIMEOUT=300 $(MAKE) -j1 check VERBOSE=yes
endif
# The install phase doesn't work reliably in parallel
# Force it to run with only 1 thread to avoid issues
override_dh_auto_install:
$(MAKE) -j1 DESTDIR=$(CURDIR)/debian/tmp install
override_dh_install:
dh_install
ifeq ($(DEB_HOST_ARCH_OS),linux)
dh_install -plibecore-dev debian/tmp/usr/lib/*/libecore_fb.so
endif
override_dh_makeshlibs:
dh_makeshlibs -Xmodule.so
override_dh_shlibdeps:
dh_shlibdeps -Nlibefreet1a
dh_shlibdeps -plibefreet1a -- -xlibefreet-bin
override_dh_strip:
dh_strip --dbg-package=efl-dbg
|