File: rules

package info (click to toggle)
mozzemberek 0.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 168 kB
  • ctags: 111
  • sloc: cpp: 686; makefile: 111
file content (33 lines) | stat: -rwxr-xr-x 1,547 bytes parent folder | download
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
#!/usr/bin/make -f

MOZ_XPI_EMID := mozzemberek@mozilla.org.tr
DIST := $(shell lsb_release -is)
MOZ_EXTENSION_PKG := mozzemberek
MOZ_XPI_MOZILLA_DIRS := xulrunner-addons
SUPPORTED_APPS=$(shell xpath -q -e '//em:targetApplication/Description/em:id/text()' src/install.rdf.in)

ifneq "$(DIST)" "Ubuntu"
MOZ_XPI_MOZILLA_DIRS += iceweasel
endif

DEB_SHLIBDEPS_INCLUDE := $(shell pkg-config --variable=sdkdir libxul)/sdk/lib

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk

binary-post-install/$(MOZ_EXTENSION_PKG)::
	install -m 755 -d debian/$(cdbs_curpkg)/usr/lib/$(MOZ_EXTENSION_PKG)/components
	install -m 755 -d debian/$(cdbs_curpkg)/usr/share/$(MOZ_EXTENSION_PKG)/chrome
	install -m 755 -d debian/$(cdbs_curpkg)/usr/share/$(MOZ_EXTENSION_PKG)/defaults/preferences
	install -m 644 src/platform/*/components/*.so \
		debian/$(cdbs_curpkg)/usr/lib/$(MOZ_EXTENSION_PKG)/components
	install -m 644 src/install.rdf debian/$(cdbs_curpkg)/usr/share/$(MOZ_EXTENSION_PKG)
	install -m 644 src/chrome.manifest debian/$(cdbs_curpkg)/usr/share/$(MOZ_EXTENSION_PKG)
	install -m 644 src/chrome/*.jar debian/$(cdbs_curpkg)/usr/share/$(MOZ_EXTENSION_PKG)/chrome
	install -m 644 src/defaults/preferences/prefs.js debian/$(cdbs_curpkg)/usr/share/$(MOZ_EXTENSION_PKG)/defaults/preferences
	dh_link /usr/lib/$(cdbs_curpkg)/components /usr/share/$(cdbs_curpkg)/components
	
	for dir in $(SUPPORTED_APPS); do \
	dh_link -p$(cdbs_curpkg) /usr/share/$(cdbs_curpkg) \
		/usr/share/mozilla/extensions/$$dir/$(MOZ_XPI_EMID); \
	done