3 # These are used for cross-compiling and for saving the configure script
4 # from having to guess our platform (since we know it already)
6 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17 ifneq (,$(findstring armel,$(DEB_BUILD_ARCH)))
23 JOBS=--jobs=$(shell grep ^processor /proc/cpuinfo | wc -l)
25 WEBKIT_BUILD_DIR=$(TIZEN_OUTPUT_DIR)
26 ifeq "$(WEBKIT_BUILD_DIR)" ""
27 WEBKIT_BUILD_DIR="BuildWK2"
29 SOURCE_DIR=$(shell pwd)
33 # Add here commands to configure the package.
34 mkdir -p $(WEBKIT_BUILD_DIR)
35 cd $(WEBKIT_BUILD_DIR) && cmake $(SOURCE_DIR) -DPORT=Efl -DCMAKE_INSTALL_PREFIX=$(PREFIX) -DCMAKE_INSTALL_COMPONENT=$(PREFIX)/include -DCMAKE_BUILD_TYPE=Release -DEFL_TARGET=$(EFL_TARGET) -DENABLE_WEBKIT=Off -DENABLE_WEBKIT2=On -DENABLE_DEMO=Off -DENABLE_WK2_PROFILING=Off -DENABLE_NETSCAPE_PLUGIN_API=On -DENABLE_SLP_SUPPORT_BLUE_RUNNER=Off -DENABLE_CLIENT_BASED_GEOLOCATION=On $(TIZEN_WEBKIT_EXTRA_OPTIONS)
39 build-stamp: config.status
42 # Add here commands to compile the package.
43 cd $(WEBKIT_BUILD_DIR) && $(MAKE) $(JOBS)
44 #docbook-to-man debian/ncurses.sgml > ncurses.1
46 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
47 cat $$f > $${f%.in}; \
48 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
50 # sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
59 # Add here commands to clean up after the build process.
60 rm -rf $(WEBKIT_BUILD_DIR)
62 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
63 cp -f /usr/share/misc/config.sub config.sub
65 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
66 cp -f /usr/share/misc/config.guess config.guess
69 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
81 # Add here commands to install the package into debian/ncurses.
82 cd $(WEBKIT_BUILD_DIR) && $(MAKE) $(JOBS) $(BUILDDIR) DESTDIR=$(CURDIR)/debian/tmp install
85 # Build architecture-independent files here.
86 binary-indep: build install
87 # We have nothing to do by default.
89 # Build architecture-dependent files here.
90 binary-arch: build install
96 dh_install --sourcedir=debian/tmp
99 dh_strip --dbg-package=libwebkit2-efl-dbg
110 binary: binary-indep binary-arch
111 .PHONY: build clean binary-indep binary-arch binary install