Handle keypad while WebPage sets the focus automatically
[framework/web/webkit-efl.git] / debian-for-webkit1-efl / rules-EWebLauncher
1 #!/usr/bin/make -f
2 # -*- makefile -*-
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.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12
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)
15
16 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18
19 ifneq (,$(findstring arm, $(SBOX_UNAME_MACHINE)))
20 CFLAGS ?= -Wall -march=armv7-a
21 CXXFLAGS ?= -march=armv7-a
22 else
23 CFLAGS ?= -Wall
24 endif
25 LDFLAGS ?= 
26 PREFIX ?= /usr
27 DATADIR ?= /opt
28
29 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30         CFLAGS += -O0
31 else
32         CFLAGS += -O2
33 endif
34
35 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
36
37 NAME = "webkit-1.1.15.3"
38 SOURCE = "webkit-1.1.15.3.tar.gz"
39 DIRNAME = "webkit"
40
41 BUILDDIR=build-obj
42
43 JOBS=--jobs=8
44
45 config.status: 
46         dh_testdir
47         # Add here commands to configure the package.
48 #       tar -zxvf $(SOURCE)
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
53
54
55 build: build-stamp
56
57 build-stamp:  config.status
58         dh_testdir
59
60         # Add here commands to compile the package.
61         $(MAKE) $(JOBS) -C $(BUILDDIR)
62         #docbook-to-man debian/ncurses.sgml > ncurses.1
63
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}; \
68         done
69
70         touch $@
71
72 clean:
73         dh_testdir
74         dh_testroot
75         rm -f build-stamp 
76
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
81 endif
82 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
83         cp -f /usr/share/misc/config.guess config.guess
84 endif
85
86         for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
87                 rm -f $${f%.in}; \
88         done
89
90         dh_clean 
91
92 install: build
93         dh_testdir
94         dh_testroot
95         dh_clean -k 
96         dh_installdirs
97
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
102
103
104 # Build architecture-independent files here.
105 binary-indep: build install
106 # We have nothing to do by default.
107
108 # Build architecture-dependent files here.
109 binary-arch: build install
110         dh_testdir
111         dh_testroot
112         dh_installchangelogs 
113         dh_installdocs
114         dh_installexamples
115         dh_install --sourcedir=debian/tmp
116 #       dh_installmenu
117 #       dh_installdebconf       
118 #       dh_installlogrotate
119 #       dh_installemacsen
120 #       dh_installpam
121 #       dh_installmime
122 #       dh_python
123 #       dh_installinit
124 #       dh_installcron
125 #       dh_installinfo
126         dh_installman
127         dh_link
128         dh_strip --dbg-package=libwebkit-engine-dbg
129         dh_compress
130         dh_fixperms
131 #       dh_perl
132         dh_makeshlibs
133         dh_installdeb
134         dh_shlibdeps
135         dh_gencontrol
136         dh_md5sums
137         dh_builddeb
138
139 binary: binary-indep binary-arch
140 .PHONY: build clean binary-indep binary-arch binary install