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)
15 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18 CFLAGS ?= -Wall -g -fvisibility=hidden -fPIC
19 CXXFLAGS ?= -Wall -g -fPIC
20 PREFIX ?= /usr/lib/wrt-plugins
21 CONFIG_DTD ?= /usr/etc/tizen-apis
24 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
32 ifeq (,$(findstring no,$(DPL_LOG)))
33 DPL_LOGS_STATUS = "ON"
35 DPL_LOGS_STATUS = "OFF"
38 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed -Wl,--hash-style=both# -Wl,--version-script=$(CURDIR)/wrt-plugins.map
41 CMAKEFLAGS += -DDEVPKG="$(DEVPKG)"
44 configure: configure-stamp
47 # Add here commands to configure the package.
48 CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) $(CMAKEFLAGS) -DDPL_LOG=$(DPL_LOGS_STATUS) -DCMAKE_BUILD_TYPE="$(BUILD_TYPE)"
53 build-stamp: configure-stamp
56 # Add here commands to compile the package.
58 #docbook-to-man debian/ncurses.sgml > ncurses.1
60 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
61 cat $$f > $${f%.in}; \
62 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
63 sed -i -e "s#@CONFIG_DTD@#$(CONFIG_DTD)#g" $${f%.in}; \
64 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
72 rm -f build-stamp configure-stamp
76 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
77 cp -f /usr/share/misc/config.sub config.sub
79 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
80 cp -f /usr/share/misc/config.guess config.guess
83 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
95 # Add here commands to install the package into debian/ncurses.
96 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
99 # Build architecture-independent files here.
100 binary-indep: build install
101 # We have nothing to do by default.
103 # Build architecture-dependent files here.
104 binary-arch: build install
110 dh_install --sourcedir=debian/tmp
113 # dh_installlogrotate
123 dh_strip --dbg-package=wrt-plugins-tizen-dbg
134 binary: binary-indep binary-arch
135 .PHONY: build clean binary-indep binary-arch binary install