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

Annotation of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1820 - (hide annotations) (download)
Sat Aug 16 13:58:43 2008 UTC (15 years, 9 months ago) by jpye
File size: 2622 byte(s)
Fixed dtar to support separate debian.tar.gz file.
1 jpye 1396 #!/usr/bin/make -f
2     # -*- makefile -*-
3    
4     CFLAGS = -Wall -g
5 jpye 1523
6 jpye 1815 SCONS_OPTIONS = CC="ccache gcc" \
7     CXX="ccache g++" \
8 jpye 1523 INSTALL_PREFIX=/usr \
9 jpye 1760 WITH_DOC_BUILD=0 \
10     WITH_DOC_INSTALL=1 \
11 jpye 1648 F2C_LIB=gfortran \
12 jpye 1815 FORTRAN=gfortran \
13     WITH_SOLVERS=CMSLV,CONOPT,DOPRI5,IDA,LRSLV,LSODE,QRSLV
14 jpye 1648
15 jpye 1820 # F2C_LIBPATH=/usr/lib/gcc/i486-linux-gnu/4.2.1/ \
16    
17 jpye 1396 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 jpye 1544 INSTALLROOT=$(CURDIR)/debian/ascend/
33 jpye 1421 DATADIR=$(INSTALLROOT)/usr/share
34    
35 jpye 1760 GTKSOURCEVIEW=gtksourceview-2.0
36     GTKSOURCEVIEWLANGS=$(DATADIR)/$(GTKSOURCEVIEW)/language-specs
37    
38 jpye 1396 build: build-stamp
39     build-stamp:
40     dh_testdir
41 jpye 1760 cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
42 jpye 1396 touch build-stamp
43    
44     clean:
45     dh_testdir
46     rm -f build-stamp
47     dh_clean
48 jpye 1544 $(SCONS) -c
49 jpye 1545 rm -rf .scon*
50     rm scons/*.pyc
51 jpye 1396
52     install: build
53     dh_testdir
54 jpye 1413 # dh_testroot
55 jpye 1396 dh_clean -k
56     dh_installdirs
57 jpye 1421 mkdir -p $(INSTALLROOT)/usr
58     cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
59     #
60 jpye 1425 cd $(CURDIR)/pygtk/gnome && \
61 jpye 1545 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 jpye 1609 install -m 644 -D ascend.xml $(DATADIR)/mime/packages/ascend.xml
65 jpye 1421 #
66 jpye 1611 # 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 jpye 1760 cd $(CURDIR)/tools/$(GTKSOURCEVIEW) && \
72     install -m 644 -D ascend.lang $(GTKSOURCEVIEWLANGS)/ascend.lang
73 jpye 1611 #
74 jpye 1762 # DESKTOP file for ASCEND Tcl/Tk
75     cd $(CURDIR)/tcltk/gnome && \
76     install -m 644 -D ascend4.desktop $(DATADIR)/applications/ascend4.desktop
77     #
78 jpye 1413 dh_install --autodest
79 jpye 1421 dh_desktop
80 jpye 1418 dh_installman debian/ascend.man
81     dh_installman debian/ascend4.man
82     dh_installman debian/ascend-config.man
83 jpye 1396
84     # Build architecture-independent files here.
85     binary-indep:
86     dh_testdir
87     dh_testroot
88 jpye 1762 -cd $(CUR_DIR) && $(SCONS) doc
89 jpye 1396
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 jpye 1413 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
105 jpye 1396 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
111    

Properties

Name Value
svn:executable *

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