/[debichem]/wnpp/vmd/debian/rules
ViewVC logotype

Contents of /wnpp/vmd/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2937 - (show annotations) (download)
Thu Sep 15 14:50:21 2011 UTC (21 months ago) by mbanck
File size: 1839 byte(s)
* debian/rules: Add support for i386 architecture.
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 export DH_VERBOSE=1
11
12 ifeq (Linux,$(shell uname -s))
13 KERNEL=LINUX
14 else
15 KERNEL="--help unknown_kernel "
16 endif
17 ifeq (x86_64,$(shell uname -m))
18 PLATFORM=AMD64
19 else
20 ifeq (i686,$(shell uname -m))
21 PLATFORM=""
22 else
23 PLATFORM=" --help unknown_machine"
24 endif
25 endif
26
27 %:
28 dh $@
29
30 export VMDINSTALLBINDIR=/usr/bin
31 export VMDINSTALLLIBRARYDIR=/usr/lib/vmd
32 export TCL_INCLUDE_DIR=/usr/include/tcl
33 DESTDIR=$(CURDIR)/debian/vmd/
34
35 override_dh_auto_configure:
36 #FREEBSD FREEBSDAMD64 HPUX11 AIX4 AIX5 AIX5_64 AIX6_64 BLUEWATERS LINUX LINUXALPHA LINUXAMD64 LINUXIA64 LINUXPPC LINUXPPC64 MACOSX MACOSXX86 MACOSXX86_64 TRU64 SOLARIS2 SOLARIS2_64 SOLARISX86 SOLARISX86_64 WIN32 WIN64)
37 echo "Compiling plugins first"
38 cd plugins_source && ./build.csh
39 -cd plugins_source && PLUGINDIR=`pwd`/../plugins make distrib
40 echo "Setting link from ../plugins to plugins to help compilation"
41 #ln -s $(CURDIR)/plugins_source ../plugins
42 echo "Now configuring core VMD"
43 VMDINSTALLBINDIR=$(DESTDIR)$(VMDINSTALLBINDIR) \
44 VMDINSTALLLIBRARYDIR=$(DESTDIR)$(VMDINSTALLLIBRARYDIR) \
45 TCL_INCLUDE_DIR=/usr/include/tcl \
46 ./configure $(KERNEL)$(PLATFORM) NOSTATICPLUGINS GCC TCL
47
48 override_dh_auto_build:
49 $(MAKE) -C src veryclean
50 $(MAKE) -C src
51 ln -f ./$(KERNEL)$(PLATFORM)/vmd_$(KERNEL)$(PLATFORM) bin/vmd
52
53 override_dh_auto_install:
54 $(MAKE) -C src install
55 cd debian/vmd && sed -i "s%`pwd`%%" usr/bin/vmd
56 cd debian/vmd && sed -i "s%/bin/csh%/bin/tcsh%" usr/bin/vmd
57

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5