3 # Uncomment this to turn on verbose mode.
6 # These are used for cross-compiling and for saving the configure script
7 # from having to guess our platform (since we know it already)
8 DEB_HOST_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_HOST_GNU_TYPE
)
9 DEB_BUILD_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_BUILD_GNU_TYPE
)
10 ifneq ($(DEB_HOST_GNU_TYPE
),$(DEB_BUILD_GNU_TYPE
))
11 CROSS
= --build
$(DEB_BUILD_GNU_TYPE
) --host
$(DEB_HOST_GNU_TYPE
)
13 CROSS
= --build
$(DEB_BUILD_GNU_TYPE
)
16 CFLAGS
+= -Wall
-pipe
-DDEBIAN
`pkg-config nss nspr --cflags`
17 CXXFLAGS
+= -DDEBIAN
`pkg-config nss nspr --cflags`
18 LDFLAGS
= -Wl
,-z
,defs
-Wl
,--as-needed
-Wl
,--no-undefined
`pkg-config nss nspr --libs`
20 CONFIGURE_OPTIONS
= ac_add_options
$(CROSS
)
22 ifneq (,$(findstring noopt
,$(DEB_BUILD_OPTIONS
)))
23 CONFIGURE_OPTIONS
+= --disable-optimize
25 CONFIGURE_OPTIONS
+= --enable-optimize
=\"-O2
-fno-strict-aliasing
-g
\"
28 ifneq (,$(findstring debug
,$(DEB_BUILD_OPTIONS
)))
29 CONFIGURE_OPTIONS
+= --enable-debug
31 CONFIGURE_OPTIONS
+= --disable-debug
37 [ ! -d debian
/patches
] ||
$(MAKE
) -f
/usr
/share
/quilt
/quilt.make patch
39 cp debian
/mozconfig.debian mozilla
/.mozconfig
40 echo
$(CONFIGURE_OPTIONS
) >> mozilla
/.mozconfig
42 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
43 cp
-f
/usr
/share
/misc
/config.sub mozilla
/build
/autoconf
/config.sub
45 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
46 cp
-f
/usr
/share
/misc
/config.guess mozilla
/build
/autoconf
/config.guess
55 LDFLAGS
="$(LDFLAGS)" \
57 CXXFLAGS
="$(CXXFLAGS)"\
58 $(MAKE
) -f client.mk build_all
64 rm -f build-stamp config-stamp
65 rm -f mozilla
/config.status
66 rm -f mozilla
/config.log
67 rm -f mozilla
/nsprpub
/config.status
68 rm -f mozilla
/nsprpub
/config.log
69 rm -f mozilla
/.mozconfig
70 rm -f mozilla
/build
/autoconf
/config.guess
71 rm -f mozilla
/build
/autoconf
/config.sub
73 rm -f
`find . -name "*.pyc"`
74 [ ! -d debian
/patches
] ||
$(MAKE
) -f
/usr
/share
/quilt
/quilt.make unpatch
83 cd obj-celtx
/xpfe
/components
&& $(MAKE
)
84 cd obj-celtx
&& $(MAKE
) install DESTDIR
="$(CURDIR)"/debian
/tmp
85 # Remove all empty directories.
86 perl
-MFile
::Find
-e
"finddepth(sub{rmdir},'$(CURDIR)/debian/tmp')"
88 mkdir
-p debian
/tmp
/usr
/share
/pixmaps
/
89 #cp mozilla/celtx/app/default.xpm debian/tmp/usr/share/pixmaps/celtx.xpm
90 cp debian
/celtx.xpm debian
/tmp
/usr
/share
/pixmaps
/celtx.xpm
91 cp mozilla
/celtx
/app
/mozicon128.png debian
/tmp
/usr
/share
/pixmaps
/celtx.png
92 cp mozilla
/celtx
/app
/document.png debian
/tmp
/usr
/share
/pixmaps
/celtx-doc.png
94 chmod
-x
`find debian -name "*.idl"`
95 chmod
-x
`find debian -name "*.celtx"`
96 chmod
-x
`find debian -name "*.xpm"`
97 chmod
-x
`find debian -name "*.png"`
98 chmod
-x
`find debian -name "*.rdf"`
99 chmod
-x
`find debian -name "*.js"`
100 chmod
-x
`find debian -name "*.sqlite"`
101 chmod
-x
`find debian -name "removed-files"`
103 # Build architecture-independent files here.
104 binary-indep
: install
107 dh_installchangelogs
-i
116 [ ! -e
/usr
/bin
/dh_buildinfo
] || dh_buildinfo
-i
123 # Build architecture-dependent files here.
127 dh_installchangelogs
-a
129 dh_installexamples
-a
137 dh_strip
-a
--dbg-package
=celtx-dbg
142 [ ! -e
/usr
/bin
/dh_buildinfo
] || dh_buildinfo
-a
150 rm -f celtx-2-7-src.
tar.bz2
151 wget http
://download.celtx.com
/source
/celtx-2-7-src.
tar.bz2
153 tar xvfj celtx-2-7-src.
tar.bz2
154 rm celtx-2-7-src.
tar.bz2
155 cd celtx-2-7-src
&& sh ..
/debian
/remove-nonfree.sh
156 tar cvfz ..
/celtx_2.7
+dfsg1.orig.
tar.gz celtx-2-7-src
159 binary
: binary-indep binary-arch
160 .PHONY
: config build
clean binary-indep binary-arch binary
install get-orig-source