3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
13 # These are used for cross-compiling and for saving the configure script
14 # from having to guess our platform (since we know it already)
16 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
19 ifneq (,$(findstring arm, $(SBOX_UNAME_MACHINE)))
20 CFLAGS ?= -Wall -march=armv7-a
21 CXXFLAGS ?= -march=armv7-a
29 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
35 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
37 NAME = "webkit-1.1.15.3"
38 SOURCE = "webkit-1.1.15.3.tar.gz"
47 # Add here commands to configure the package.
49 # mv $(NAME) $(DIRNAME)
50 # patch -p1 -d $(DIRNAME) < ./debian/patches/patches-efl/01_webkit_efl_port.patch
51 # patch -p1 -d $(DIRNAME) < ./debian/patches/patches-efl/02_webkit_slp_lite_browser.patch
52 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./autogen.sh --prefix=$(PREFIX) --with-port=efl --enable-jit=no --enable-workers=yes icu_config=$(PREFIX)/bin/icu-config --enable-video=no --enable-fast-malloc=yes --with-http-backend=soup --enable-geolocation=yes --with-network-backend=Ethernet --enable-log=no --enable-mm-player=no --enable-wml=no --enable-shared-workers=yes --enable-fast-mobile-scrolling=yes --datadir=/opt/data
57 build-stamp: config.status
60 # Add here commands to compile the package.
61 $(MAKE) $(JOBS) -C $(BUILDDIR)
62 #docbook-to-man debian/ncurses.sgml > ncurses.1
64 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
65 cat $$f > $${f%.in}; \
66 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
67 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
77 # Add here commands to clean up after the build process.
78 -$(MAKE) $(JOBS) -C $(BUILDDIR) distclean
79 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
80 cp -f /usr/share/misc/config.sub config.sub
82 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
83 cp -f /usr/share/misc/config.guess config.guess
86 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
98 # Add here commands to install the package into debian/ncurses.
99 $(MAKE) $(JOBS) -C $(BUILDDIR) DESTDIR=$(CURDIR)/debian/tmp install
100 mkdir -p $(CURDIR)/debian/tmp$(PREFIX)/share/edje/
101 install -m 644 $(CURDIR)/WebKit/efl/DefaultTheme/default.edj $(CURDIR)/debian/tmp$(PREFIX)/share/edje/webkit.edj # For apps using webkit; by youmin.ha@samsung.com
104 # Build architecture-independent files here.
105 binary-indep: build install
106 # We have nothing to do by default.
108 # Build architecture-dependent files here.
109 binary-arch: build install
115 dh_install --sourcedir=debian/tmp
118 # dh_installlogrotate
128 dh_strip --dbg-package=libwebkit-engine-dbg
139 binary: binary-indep binary-arch
140 .PHONY: build clean binary-indep binary-arch binary install