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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


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