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

Contents of /wnpp/vmd/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3203 - (hide annotations) (download)
Thu Dec 15 22:13:39 2011 UTC (17 months, 1 week ago) by mbanck
File size: 2170 byte(s)
Applied patch by Steffen Moeller with minor editorial changes
1 mbanck 2933 #!/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 mbanck 2937 ifeq (i686,$(shell uname -m))
21     PLATFORM=""
22     else
23 mbanck 2933 PLATFORM=" --help unknown_machine"
24     endif
25 mbanck 2937 endif
26 mbanck 2933
27     %:
28     dh $@
29    
30     export VMDINSTALLBINDIR=/usr/bin
31     export VMDINSTALLLIBRARYDIR=/usr/lib/vmd
32 mbanck 3203 export TCL_INCLUDE_DIR=/usr/include/tcl8.5
33 mbanck 2933 DESTDIR=$(CURDIR)/debian/vmd/
34    
35 mbanck 2943 override_dh_auto_clean:
36     $(MAKE) -C src veryclean
37     rm -rf $(KERNEL)$(PLATFORM)
38     dh_auto_clean
39    
40 mbanck 3203 override_dh_auto_configure: src/Makefile
41     src/Makefile: configure
42 mbanck 2933 #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)
43 mbanck 3203 ln -s plugins plugins_source
44 mbanck 2933 echo "Compiling plugins first"
45     cd plugins_source && ./build.csh
46     -cd plugins_source && PLUGINDIR=`pwd`/../plugins make distrib
47     echo "Now configuring core VMD"
48     VMDINSTALLBINDIR=$(DESTDIR)$(VMDINSTALLBINDIR) \
49     VMDINSTALLLIBRARYDIR=$(DESTDIR)$(VMDINSTALLLIBRARYDIR) \
50 mbanck 2938 TCL_INCLUDE_DIR=/usr/include/tcl8.5 \
51 mbanck 3203 #./configure $(KERNEL)$(PLATFORM) NOSTATICPLUGINS GCC TCL TK FLTK MESA
52     ./configure $(KERNEL)$(PLATFORM) NOSTATICPLUGINS GCC TCL TK FLTK
53 mbanck 2933
54     override_dh_auto_build:
55     $(MAKE) -C src
56     ln -f ./$(KERNEL)$(PLATFORM)/vmd_$(KERNEL)$(PLATFORM) bin/vmd
57    
58     override_dh_auto_install:
59 mbanck 3203 $(MAKE) DESTDIR=$(CURDIR)/debian/vmd/ -C src install
60     #cd debian/vmd && sed -i "s%`pwd`%%" usr/bin/vmd
61     #cd debian/vmd && sed -i "s%/bin/csh%/bin/tcsh%" usr/bin/vmd
62     #p=debian/vmd/usr/lib/vmd/plugins && [ -n "$(PLATFORM)" ] && mkdir -p "$p" && cd "$p" && ln -s LINUX LINUX$(PLATFORM)
63    
64     override_dh_strip:
65     dh_strip --dbg-package=vmd-dbg
66    
67     .PHONY: configure

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5