/[ascend]/trunk/debian/rules
ViewVC logotype

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1820 - (show annotations) (download)
Sat Aug 16 13:58:43 2008 UTC (14 years, 3 months ago) by jpye
File size: 2622 byte(s)
Fixed dtar to support separate debian.tar.gz file.
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 CFLAGS = -Wall -g
5
6 SCONS_OPTIONS = CC="ccache gcc" \
7 CXX="ccache g++" \
8 INSTALL_PREFIX=/usr \
9 WITH_DOC_BUILD=0 \
10 WITH_DOC_INSTALL=1 \
11 F2C_LIB=gfortran \
12 FORTRAN=gfortran \
13 WITH_SOLVERS=CMSLV,CONOPT,DOPRI5,IDA,LRSLV,LSODE,QRSLV
14
15 # F2C_LIBPATH=/usr/lib/gcc/i486-linux-gnu/4.2.1/ \
16
17 SCONS= scons $(SCONS_OPTIONS)
18
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 CFLAGS += -O0
21 else
22 CFLAGS += -O2
23 endif
24
25 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26 INSTALL_PROGRAM += -s
27 endif
28
29 # shared library versions, option 1
30 major=0
31
32 INSTALLROOT=$(CURDIR)/debian/ascend/
33 DATADIR=$(INSTALLROOT)/usr/share
34
35 GTKSOURCEVIEW=gtksourceview-2.0
36 GTKSOURCEVIEWLANGS=$(DATADIR)/$(GTKSOURCEVIEW)/language-specs
37
38 build: build-stamp
39 build-stamp:
40 dh_testdir
41 cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
42 touch build-stamp
43
44 clean:
45 dh_testdir
46 rm -f build-stamp
47 dh_clean
48 $(SCONS) -c
49 rm -rf .scon*
50 rm scons/*.pyc
51
52 install: build
53 dh_testdir
54 # dh_testroot
55 dh_clean -k
56 dh_installdirs
57 mkdir -p $(INSTALLROOT)/usr
58 cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
59 #
60 cd $(CURDIR)/pygtk/gnome && \
61 install -m 644 -D ascend.desktop $(DATADIR)/applications/ascend.desktop && \
62 install -m 644 -D ascend.png $(DATADIR)/icons/ascend-app.png && \
63 install -m 644 -D ascend.png $(DATADIR)/icons/hicolor/64x64/ascend.png && \
64 install -m 644 -D ascend.xml $(DATADIR)/mime/packages/ascend.xml
65 #
66 # file-type icon for ascend models (double click should open in ASCEND)
67 cd $(CURDIR)/pygtk/glade && \
68 install -m 644 -D ascend-doc-48x48.svg $(DATADIR)/icons/text-x-ascend-model.svg
69 #
70 # syntax highlighting for gedit
71 cd $(CURDIR)/tools/$(GTKSOURCEVIEW) && \
72 install -m 644 -D ascend.lang $(GTKSOURCEVIEWLANGS)/ascend.lang
73 #
74 # DESKTOP file for ASCEND Tcl/Tk
75 cd $(CURDIR)/tcltk/gnome && \
76 install -m 644 -D ascend4.desktop $(DATADIR)/applications/ascend4.desktop
77 #
78 dh_install --autodest
79 dh_desktop
80 dh_installman debian/ascend.man
81 dh_installman debian/ascend4.man
82 dh_installman debian/ascend-config.man
83
84 # Build architecture-independent files here.
85 binary-indep:
86 dh_testdir
87 dh_testroot
88 -cd $(CUR_DIR) && $(SCONS) doc
89
90 # Build architecture-dependent files here.
91 binary-arch: build install
92 dh_testdir
93 dh_testroot
94 dh_installchangelogs CHANGELOG.txt
95 dh_installdocs
96 dh_installexamples
97 dh_installman
98 dh_link
99 dh_strip
100 dh_compress
101 dh_fixperms
102 dh_makeshlibs
103 dh_installdeb
104 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
105 dh_gencontrol
106 dh_md5sums
107 dh_builddeb
108
109 binary: binary-indep binary-arch
110 .PHONY: build clean binary-indep binary-arch binary install configure

Properties

Name Value
svn:executable *

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22