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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2151 - (show annotations) (download)
Wed Feb 24 06:17:12 2010 UTC (10 years, 8 months ago) by jpye
File size: 4102 byte(s)
Add 'specific_volume_rate'.
Remove 'dh_desktop' from debian/rules.
Add note about windows prerequisites.
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 CFLAGS = -Wall -g
5
6 SCONS_OPTIONS = CC="ccache gcc" \
7 CXX="ccache g++" \
8 ABSOLUTE_PATHS=1 \
9 INSTALL_PREFIX=/usr \
10 WITH_DOC_BUILD=0 \
11 WITH_DOC_INSTALL=1 \
12 F2C_LIB=gfortran \
13 FORTRAN=gfortran \
14 WITH_SOLVERS=CMSLV,CONOPT,DOPRI5,IDA,LRSLV,LSODE,QRSLV,IPOPT
15
16 # F2C_LIBPATH=/usr/lib/gcc/i486-linux-gnu/4.2.1/ \
17
18 SCONS= scons $(SCONS_OPTIONS)
19
20 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21 CFLAGS += -O0
22 else
23 CFLAGS += -O2
24 endif
25
26 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
27 INSTALL_PROGRAM += -s
28 endif
29
30 # shared library versions, option 1
31 major=0
32
33 INSTALLROOT=$(CURDIR)/debian/tmp
34 DATADIR=$(INSTALLROOT)/usr/share
35
36 GTKSOURCEVIEW=gtksourceview-2.0
37 GTKSOURCEVIEWLANGS=$(DATADIR)/$(GTKSOURCEVIEW)/language-specs
38
39 build: build-stamp
40 build-stamp:
41 dh_testdir
42 cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
43 touch build-stamp
44
45 clean:
46 dh_testdir
47 rm -f build-stamp
48 dh_clean
49 $(SCONS) -c
50 rm -rf .scon*
51 rm scons/*.pyc
52
53 install: build
54 dh_testdir
55 # dh_testroot
56 dh_clean -k
57 dh_installdirs
58 mkdir -p $(INSTALLROOT)/usr
59 cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
60 #
61 cd $(CURDIR)/pygtk/gnome && \
62 install -m 644 -D ascend.desktop $(DATADIR)/applications/ascend.desktop && \
63 install -m 644 -D ascend.png $(DATADIR)/icons/ascend-app.png && \
64 install -m 644 -D ascend.png $(DATADIR)/icons/hicolor/64x64/ascend.png && \
65 install -m 644 -D ascend.xml $(DATADIR)/mime/packages/ascend.xml
66 #
67 # file-type icon for ascend models (double click should open in ASCEND)
68 cd $(CURDIR)/pygtk/glade && \
69 install -m 644 -D ascend-doc-48x48.svg $(DATADIR)/icons/hicolor/scalable/mimetypes/text-x-ascend-model.svg && \
70 install -m 644 -D ascend-doc-16x16.png $(DATADIR)/icons/hicolor/16x16/mimetypes/text-x-ascend-model.png && \
71 install -m 644 -D ascend-doc-22x22.png $(DATADIR)/icons/hicolor/22x22/mimetypes/text-x-ascend-model.png && \
72 install -m 644 -D ascend-doc-24x24.png $(DATADIR)/icons/hicolor/24x24/mimetypes/text-x-ascend-model.png && \
73 install -m 644 -D ascend-doc-32x32.png $(DATADIR)/icons/hicolor/32x32/mimetypes/text-x-ascend-model.png && \
74 install -m 644 -D ascend-doc-48x48.png $(DATADIR)/icons/hicolor/48x48/mimetypes/text-x-ascend-model.png && \
75 install -m 644 -D ascend-doc-64x64.png $(DATADIR)/icons/hicolor/64x64/mimetypes/text-x-ascend-model.png
76 #
77 # workaround for bug in Ubuntu Hardy -- to prevent generic icons from overriding ASCEND icon.
78 cd $(CURDIR)/pygtk/glade && \
79 install -m 644 -D ascend-doc-48x48.svg $(DATADIR)/icons/Human/scalable/mimetypes/text-x-ascend-model.svg && \
80 install -m 644 -D ascend-doc-16x16.png $(DATADIR)/icons/Human/16x16/mimetypes/text-x-ascend-model.png && \
81 install -m 644 -D ascend-doc-22x22.png $(DATADIR)/icons/Human/22x22/mimetypes/text-x-ascend-model.png && \
82 install -m 644 -D ascend-doc-24x24.png $(DATADIR)/icons/Human/24x24/mimetypes/text-x-ascend-model.png && \
83 install -m 644 -D ascend-doc-32x32.png $(DATADIR)/icons/Human/32x32/mimetypes/text-x-ascend-model.png && \
84 install -m 644 -D ascend-doc-48x48.png $(DATADIR)/icons/Human/48x48/mimetypes/text-x-ascend-model.png && \
85 install -m 644 -D ascend-doc-64x64.png $(DATADIR)/icons/Human/64x64/mimetypes/text-x-ascend-model.png
86 #
87 # syntax highlighting for gedit
88 cd $(CURDIR)/tools/$(GTKSOURCEVIEW) && \
89 install -m 644 -D ascend.lang $(GTKSOURCEVIEWLANGS)/ascend.lang
90 #
91 # DESKTOP file for ASCEND Tcl/Tk
92 cd $(CURDIR)/tcltk/gnome && \
93 install -m 644 -D ascend4.desktop $(DATADIR)/applications/ascend4.desktop
94 #
95 dh_install --fail-missing --sourcedir=$(INSTALLROOT)
96
97 dh_installman
98
99 # Build architecture-independent files here.
100 binary-indep:
101 dh_testdir
102 dh_testroot
103 -cd $(CUR_DIR) && $(SCONS) doc
104
105 # Build architecture-dependent files here.
106 binary-arch: build install
107 dh_testdir
108 dh_testroot
109 dh_installchangelogs CHANGELOG.txt
110 dh_installdocs
111 dh_installexamples
112 dh_installman
113 dh_link
114 dh_strip
115 dh_compress
116 dh_fixperms
117 dh_makeshlibs
118 dh_installdeb
119 dh_shlibdeps
120 dh_gencontrol
121 dh_md5sums
122 dh_builddeb
123
124 binary: binary-indep binary-arch
125 .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