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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2685 - (show annotations) (download)
Tue Feb 26 02:53:19 2013 UTC (9 years, 5 months ago) by jpye
File size: 3517 byte(s)
Remove reference to 'libfprops', build external relations without library dependencies (for now).
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 DEBUG=1
16
17 # F2C_LIBPATH=/usr/lib/gcc/i486-linux-gnu/4.2.1/ \
18
19 SCONS= scons $(SCONS_OPTIONS)
20
21 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22 CFLAGS += -O0
23 else
24 CFLAGS += -O2
25 endif
26
27 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
28 INSTALL_PROGRAM += -s
29 endif
30
31 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
32 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
33 SCONS_OPTIONS += -j$(NUMJOBS)
34 endif
35
36 # shared library versions, option 1
37 major=0
38
39 INSTALLROOT=$(CURDIR)/debian/tmp
40 DATADIR=$(INSTALLROOT)/usr/share
41
42 GTKSOURCEVIEW=gtksourceview-2.0
43 GTKSOURCEVIEWLANGS=$(DATADIR)/$(GTKSOURCEVIEW)/language-specs
44 GTKSOURCEVIEW3=gtksourceview-3.0
45 GTKSOURCEVIEW3LANGS=$(DATADIR)/$(GTKSOURCEVIEW)/language-specs
46
47 build: build-stamp
48 build-stamp:
49 dh_testdir
50 cd $(CURDIR) && $(SCONS)
51 touch build-stamp
52
53 clean:
54 dh_testdir
55 rm -f build-stamp
56 dh_clean
57 $(SCONS) -c
58 rm -rf .scon*
59 rm scons/*.pyc
60
61 install: build
62 dh_testdir
63 # dh_testroot
64 dh_clean -k
65 dh_installdirs
66 mkdir -p $(INSTALLROOT)/usr
67 cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
68 #
69 cd $(CURDIR)/pygtk/gnome && \
70 install -m 644 -D ascend.desktop $(DATADIR)/applications/ascend.desktop && \
71 install -m 644 -D ascend.png $(DATADIR)/icons/ascend-app.png && \
72 install -m 644 -D ascend.png $(DATADIR)/icons/hicolor/64x64/ascend.png && \
73 install -m 644 -D ascend.xml $(DATADIR)/mime/packages/ascend.xml
74 #
75 # file-type icon for ascend models (double click should open in ASCEND)
76 cd $(CURDIR)/pygtk/glade && \
77 install -m 644 -D ascend-doc-48x48.svg $(DATADIR)/icons/hicolor/scalable/mimetypes/text-x-ascend-model.svg && \
78 install -m 644 -D ascend-doc-16x16.png $(DATADIR)/icons/hicolor/16x16/mimetypes/text-x-ascend-model.png && \
79 install -m 644 -D ascend-doc-22x22.png $(DATADIR)/icons/hicolor/22x22/mimetypes/text-x-ascend-model.png && \
80 install -m 644 -D ascend-doc-24x24.png $(DATADIR)/icons/hicolor/24x24/mimetypes/text-x-ascend-model.png && \
81 install -m 644 -D ascend-doc-32x32.png $(DATADIR)/icons/hicolor/32x32/mimetypes/text-x-ascend-model.png && \
82 install -m 644 -D ascend-doc-48x48.png $(DATADIR)/icons/hicolor/48x48/mimetypes/text-x-ascend-model.png && \
83 install -m 644 -D ascend-doc-64x64.png $(DATADIR)/icons/hicolor/64x64/mimetypes/text-x-ascend-model.png
84 #
85 # syntax highlighting for gedit
86 cd $(CURDIR)/tools/$(GTKSOURCEVIEW3) && \
87 install -m 644 -D ascend.lang $(GTKSOURCEVIEW3LANGS)/ascend.lang
88 #
89 # syntax highlighting for internal use (view model code)
90 cd $(CURDIR)/tools/$(GTKSOURCEVIEW) && \
91 install -m 644 -D ascend.lang $(GTKSOURCEVIEWLANGS)/ascend.lang
92
93 dh_install --fail-missing --sourcedir=$(INSTALLROOT)
94
95 dh_installman
96
97 # Build architecture-independent files here.
98 binary-indep:
99 dh_testdir
100 dh_testroot
101 -cd $(CUR_DIR) && $(SCONS) doc
102
103 # Build architecture-dependent files here.
104 binary-arch: build install
105 dh_testdir
106 dh_testroot
107 dh_installchangelogs CHANGELOG.txt
108 dh_installdocs
109 dh_installexamples
110 dh_installman
111 dh_link
112 dh_strip --dbg-package=ascend-dbg
113 dh_compress
114 dh_fixperms
115 dh_makeshlibs
116 dh_installdeb
117 dh_shlibdeps
118 dh_gencontrol
119 dh_md5sums
120 dh_builddeb
121
122 binary: binary-indep binary-arch
123 .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