Annotation of OpenXM/misc/packages/Linux/Debian/debian/rules, Revision 1.8
1.1 takayama 1: #!/usr/bin/make -f
2: # Sample debian/rules that uses debhelper.
3: # GNU copyright 1997 by Joey Hess.
4: #
5: # This version is for a hypothetical package that builds an
6: # architecture-dependant package, as well as an architecture-independent
7: # package.
8:
9: # Uncomment this to turn on verbose mode.
10: #export DH_VERBOSE=1
11:
12: # This is the debhelper compatability version to use.
13: export DH_COMPAT=1
14:
15: # This has to be exported to make some magic below work.
16: export DH_OPTIONS
17:
18: # Variables from top level Makefile (for FreeBSD) of OpenXM. Slightly modified.
19:
20: SHARED_FILES = OpenXM/Copyright OpenXM/doc OpenXM/include OpenXM/man \
21: OpenXM/lib/asir-contrib OpenXM/lib/java-support \
22: OpenXM/lib/k097 OpenXM/lib/math OpenXM/lib/pari \
23: OpenXM/lib/sm1 OpenXM/lib/asir
24: BINARY_FILES = OpenXM/bin OpenXM/lib/*.a OpenXM/lib/*.so* OpenXM/lib/*.a.* \
25: OpenXM/rc
26: MAN_PAGES = openxm.1 sm1.1
27: EXECUTABLES = gnuplot4ox gnuplot_x11 k0 ox ox_sm1 oxlog oxweave sm1 tigers
28:
1.7 takayama 29: SHELL_SCRIPTS=asir sm1 oxmath oxMathematica ox openxm
1.1 takayama 30:
31: INST_PREFIX = `pwd`/debian/tmp/usr/local
32:
33:
34: build: build-stamp
35: build-stamp:
36: dh_testdir
37: (export PATH=${PATH}:/usr/lib/jdk1.1/bin ; cd OpenXM/src ;\
38: make configure ;\
39: make ;\
1.6 takayama 40: make install ; make install-document ; cd asir-port ; make install ; make clean-for-knoppix)
1.1 takayama 41: touch build-stamp
42:
43: clean:
44: dh_testdir
45: dh_testroot
46: rm -f build-stamp
47: make -C OpenXM/src distclean
48: dh_clean
49:
50: install: DH_OPTIONS=
51: install: build
52: dh_testdir
53: dh_testroot
54: dh_clean -k
55: dh_installdirs
56: mkdir -p ${INST_PREFIX}
57: tar cf - ${BINARY_FILES} ${SHARED_FILES}| (cd ${INST_PREFIX} ; tar xf -)
1.2 takayama 58: # (cd ${INST_PREFIX}/OpenXM/bin ; make clean-for-install)
1.1 takayama 59: -for i in $(EXECUTABLES); do strip ${INST_PREFIX}/OpenXM/bin/$$i ; done
60: make -C ${INST_PREFIX}/OpenXM/rc repl
61: sed 's/setenv OpenXM_HOME $$HOME/setenv OpenXM_HOME \/usr\/local/' <${INST_PREFIX}/OpenXM/rc/cshrc >${INST_PREFIX}/OpenXM/rc/dot.cshrc
1.3 takayama 62: sed 's/^OpenXM_HOME=$$HOME/OpenXM_HOME=\/usr\/local/' <${INST_PREFIX}/OpenXM/rc/bashrc >${INST_PREFIX}/OpenXM/rc/dot.bashrc
1.1 takayama 63: mkdir ${INST_PREFIX}/bin
64: (cd ${INST_PREFIX}/OpenXM/rc ; make openxm ; ./gen-shell-scripts ; cp ${SHELL_SCRIPTS} ../../bin )
1.8 ! takayama 65: mkdir -p ${INST_PREFIX}/../../usr/lib/menu
! 66: cp ${INST_PREFIX}/OpenXM/rc/kde/asir-knoppix ${INST_PREFIX}/OpenXM/rc/kde/asir-openxm-knoppix ${INST_PREFIX}/OpenXM/rc/kde/sm1 ${INST_PREFIX}/../../usr/lib/menu
1.1 takayama 67: #dh_movefiles
68:
69: # Build architecture-independent files here.
70: # Pass -i to all debhelper commands in this target to reduce clutter.
71: binary-indep: DH_OPTIONS=-i
72: binary-indep: build install
73: # Need this version of debhelper for DH_OPTIONS to work.
74: dh_testversion 1.1.17
75: dh_testdir
76: dh_testroot
77: # dh_installdebconf
78: dh_installdocs
79: dh_installexamples
80: dh_installmenu
81: # dh_installemacsen
82: # dh_installpam
83: # dh_installinit
84: dh_installcron
85: # dh_installmanpages
86: dh_installinfo
87: # dh_undocumented
88: dh_installchangelogs
89: dh_link
90: dh_compress
91: dh_fixperms
92: # You may want to make some executables suid here.
93: dh_suidregister
94: dh_installdeb
95: # dh_perl
96: dh_gencontrol
97: dh_md5sums
98: dh_builddeb
99:
100: # Build architecture-dependent files here.
101: # Pass -a to all debhelper commands in this target to reduce clutter.
102: binary-arch: DH_OPTIONS=-a
103: binary-arch: build install
104: # Need this version of debhelper for DH_OPTIONS to work.
105: dh_testversion 1.1.17
106: dh_testdir
107: dh_testroot
108: # dh_installdebconf
109: dh_installdocs
110: dh_installexamples
111: dh_installmenu
112: # dh_installemacsen
113: # dh_installpam
114: # dh_installinit
115: dh_installcron
116: # dh_installmanpages
117: dh_installinfo
118: # dh_undocumented
119: dh_installchangelogs
120: dh_strip
121: dh_link
122: dh_compress
123: dh_fixperms
124: # You may want to make some executables suid here.
125: dh_suidregister
126: dh_installdeb
127: # dh_makeshlibs
128: # dh_perl
129: dh_shlibdeps
130: dh_gencontrol
131: dh_md5sums
132: dh_builddeb
133:
134: binary: binary-indep binary-arch
135: .PHONY: build clean binary-indep binary-arch binary install
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>