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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1932 - (show annotations) (download)
Tue Oct 21 02:58:39 2008 UTC (11 years, 8 months ago) by jpye
File size: 4190 byte(s)
Added some more bitmap icons for use on Ubuntu.
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/hicolor/scalable/mimetypes/text-x-ascend-model.svg && \
69 install -m 644 -D ascend-doc-16x16.png $(DATADIR)/icons/hicolor/16x16/mimetypes/text-x-ascend-model.png && \
70 install -m 644 -D ascend-doc-22x22.png $(DATADIR)/icons/hicolor/22x22/mimetypes/text-x-ascend-model.png && \
71 install -m 644 -D ascend-doc-24x24.png $(DATADIR)/icons/hicolor/24x24/mimetypes/text-x-ascend-model.png && \
72 install -m 644 -D ascend-doc-32x32.png $(DATADIR)/icons/hicolor/32x32/mimetypes/text-x-ascend-model.png && \
73 install -m 644 -D ascend-doc-48x48.png $(DATADIR)/icons/hicolor/48x48/mimetypes/text-x-ascend-model.png && \
74 install -m 644 -D ascend-doc-64x64.png $(DATADIR)/icons/hicolor/64x64/mimetypes/text-x-ascend-model.png
75 #
76 # workaround for bug in Ubuntu Hardy -- to prevent generic icons from overriding ASCEND icon.
77 cd $(CURDIR)/pygtk/glade && \
78 install -m 644 -D ascend-doc-48x48.svg $(DATADIR)/icons/Human/scalable/mimetypes/text-x-ascend-model.svg && \
79 install -m 644 -D ascend-doc-16x16.png $(DATADIR)/icons/Human/16x16/mimetypes/text-x-ascend-model.png && \
80 install -m 644 -D ascend-doc-22x22.png $(DATADIR)/icons/Human/22x22/mimetypes/text-x-ascend-model.png && \
81 install -m 644 -D ascend-doc-24x24.png $(DATADIR)/icons/Human/24x24/mimetypes/text-x-ascend-model.png && \
82 install -m 644 -D ascend-doc-32x32.png $(DATADIR)/icons/Human/32x32/mimetypes/text-x-ascend-model.png && \
83 install -m 644 -D ascend-doc-48x48.png $(DATADIR)/icons/Human/48x48/mimetypes/text-x-ascend-model.png && \
84 install -m 644 -D ascend-doc-64x64.png $(DATADIR)/icons/Human/64x64/mimetypes/text-x-ascend-model.png
85 #
86 # syntax highlighting for gedit
87 cd $(CURDIR)/tools/$(GTKSOURCEVIEW) && \
88 install -m 644 -D ascend.lang $(GTKSOURCEVIEWLANGS)/ascend.lang
89 #
90 # DESKTOP file for ASCEND Tcl/Tk
91 cd $(CURDIR)/tcltk/gnome && \
92 install -m 644 -D ascend4.desktop $(DATADIR)/applications/ascend4.desktop
93 #
94 dh_install --autodest
95 dh_desktop
96 dh_installman debian/ascend.man
97 dh_installman debian/ascend4.man
98 dh_installman debian/ascend-config.man
99
100 # Build architecture-independent files here.
101 binary-indep:
102 dh_testdir
103 dh_testroot
104 -cd $(CUR_DIR) && $(SCONS) doc
105
106 # Build architecture-dependent files here.
107 binary-arch: build install
108 dh_testdir
109 dh_testroot
110 dh_installchangelogs CHANGELOG.txt
111 dh_installdocs
112 dh_installexamples
113 dh_installman
114 dh_link
115 dh_strip
116 dh_compress
117 dh_fixperms
118 dh_makeshlibs
119 dh_installdeb
120 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
121 dh_gencontrol
122 dh_md5sums
123 dh_builddeb
124
125 binary: binary-indep binary-arch
126 .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