From dd77951314ebf6d95bae53d289a0316b20759515 Mon Sep 17 00:00:00 2001 From: Paul Sladen Date: Wed, 29 Jul 2009 18:45:48 +0100 Subject: [PATCH] Build native 'openbve-atspluginproxy' package + debian/control: add openbve-atspluginproxy and Depends + debian/openbve-atspluginproxy.* + debian/rules: combine common dh_* methods to binary + install OpenBve.exe.config Dll import mapping --- debian/OpenBve.exe.config | 3 +++ debian/changelog | 5 +++++ debian/control | 16 +++++++++++++++- debian/openbve-atspluginproxy.dirs | 2 ++ debian/openbve-atspluginproxy.docs | 1 + debian/openbve-atspluginproxy.install | 1 + debian/openbve.install | 1 + debian/rules | 32 +++++++++++++++++++++++--------- 8 files changed, 51 insertions(+), 10 deletions(-) create mode 100644 debian/OpenBve.exe.config create mode 100644 debian/openbve-atspluginproxy.dirs create mode 100644 debian/openbve-atspluginproxy.docs create mode 100644 debian/openbve-atspluginproxy.install diff --git a/debian/OpenBve.exe.config b/debian/OpenBve.exe.config new file mode 100644 index 0000000..0437e1c --- /dev/null +++ b/debian/OpenBve.exe.config @@ -0,0 +1,3 @@ + + + diff --git a/debian/changelog b/debian/changelog index d910e9c..627ac2f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,11 @@ openbve (1.2.0.0-0ubuntu1) unreleased; urgency=low * changelog.html: update (1.2.0.0) * releasenotes.html: update (1.2.0.0) * debian/rules: DEBUG_CONFIGURATION=Release to switch codepaths used + * Build native 'openbve-atspluginproxy' package + + debian/control: add openbve-atspluginproxy and Depends + + debian/openbve-atspluginproxy.* + + debian/rules: combine common dh_* methods to binary + + install OpenBve.exe.config Dll import mapping -- Paul Sladen Sun, 26 Jul 2009 11:07:00 +0000 diff --git a/debian/control b/debian/control index 177e341..c8ca1eb 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,7 @@ Homepage: http://openbve.trainsimcentral.co.uk/ Package: openbve Architecture: all Depends: ${cli:Depends}, libmono-i18n2.0-cil, openbve-data (>= 1.1.1.0+dfsg) -Recommends: bve-route, bve-train +Recommends: bve-route, bve-train, openbve-atspluginproxy Provides: bve-engine Description: realistic 3D train/railway simulator (game engine) OpenBVE is a railway/train simulator designed to be backwards @@ -23,3 +23,17 @@ Description: realistic 3D train/railway simulator (game engine) . http://openbve.trainsimcentral.co.uk/ +Package: openbve-atspluginproxy +Architecture: any +Depends: openbve, ${shlibs:Depends} +Enhances: openbve +Suggests: bve-plugin +Provides: bve-nativepluginloader +Description: Native (.so) loader for recompiled BVE Traimsim plugins + OpenBVE is a railway/train simulator designed to be backwards + compatible with existing 'BVE Trainsim' routes and cab interiors. + Compiled plugins are used to customise the behaviour of the trains + and their signalling systems. + . + Note that most BVE train plugins are distributed as binary DLLs for + MS Windows and thus cannot be loaded using this proxy. diff --git a/debian/openbve-atspluginproxy.dirs b/debian/openbve-atspluginproxy.dirs new file mode 100644 index 0000000..ca5c1bb --- /dev/null +++ b/debian/openbve-atspluginproxy.dirs @@ -0,0 +1,2 @@ +usr/share/doc/openbve-atspluginproxy +usr/lib/openbve/ diff --git a/debian/openbve-atspluginproxy.docs b/debian/openbve-atspluginproxy.docs new file mode 100644 index 0000000..eee8ad1 --- /dev/null +++ b/debian/openbve-atspluginproxy.docs @@ -0,0 +1 @@ +AtsPluginProxy/Readme.txt diff --git a/debian/openbve-atspluginproxy.install b/debian/openbve-atspluginproxy.install new file mode 100644 index 0000000..379a02b --- /dev/null +++ b/debian/openbve-atspluginproxy.install @@ -0,0 +1 @@ +AtsPluginProxy/AtsPluginProxy.so usr/lib/openbve diff --git a/debian/openbve.install b/debian/openbve.install index 1bc782e..c3598e4 100644 --- a/debian/openbve.install +++ b/debian/openbve.install @@ -1,2 +1,3 @@ debian/openbve.desktop usr/share/applications +debian/OpenBve.exe.config usr/lib/openbve diff --git a/debian/rules b/debian/rules index 6c75cc1..ad6df1c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,7 @@ #!/usr/bin/make -f export DH_VERBOSE=15 BUILDDIRS = openBVE/OpenBve +MBUILDDIRS = AtsPluginProxy TARGET = $(CURDIR)/debian/openbve #DEBUG_CONFIGURATION=Debug DEBUG_CONFIGURATION=Release @@ -16,6 +17,9 @@ build-stamp: configure-stamp for builddir in $(BUILDDIRS); do \ (cd $$builddir && xbuild /p:Configuration=$(DEBUG_CONFIGURATION) ) || exit 1; \ done + for builddir in $(MBUILDDIRS); do \ + (cd $$builddir && make) || exit 1; \ + done touch build-stamp clean: @@ -28,6 +32,9 @@ clean: (cd $$builddir && echo "**NOT doing" xbuild /t:Clean); \ done rm -rf openBVE/OpenBve/bin/ + for builddir in $(MBUILDDIRS); do \ + (cd $$builddir && make clean) || exit 1; \ + done dh_clean install: build @@ -35,32 +42,40 @@ install: build dh_testroot dh_clean -k dh_installdirs + dh_install install -m 755 $(CURDIR)/openBVE/OpenBve/bin/$(DEBUG_CONFIGURATION)/OpenBve.exe $(TARGET)/usr/lib/openbve/ install -m 644 $(CURDIR)/openBVE/OpenBve/bin/$(DEBUG_CONFIGURATION)/OpenBve.exe.mdb $(TARGET)/usr/lib/openbve/ install -m 755 -T $(CURDIR)/debian/openbve.wrapper $(TARGET)/usr/games/openbve lynx -dump -nolist $(CURDIR)/debian/changelog.html > $(TARGET)/usr/share/doc/openbve/changelog -binary-arch: - # Do nothing +binary-arch: build install + dh_testdir + dh_testroot + dh_shlibdeps + dh_makeshlibs + dh_strip binary-indep: build install dh_testdir dh_testroot dh_desktop dh_installmenu - dh_install dh_installcligac - dh_installchangelogs - dh_installdocs dh_clifixperms dh_installman - dh_fixperms - dh_installdeb #dh_makeclilibs -i -V #dh_installcligac -i dh_clistrip dh_clideps -i dh_clideps -d + +binary: binary-indep binary-arch + dh_testdir + dh_testroot + dh_fixperms + dh_installchangelogs + dh_installdocs + dh_installdeb dh_compress dh_gencontrol dh_md5sums @@ -71,5 +86,4 @@ fetch-html: wget http://openbve.trainsimcentral.co.uk/changelog.html && mv changelog.html.1 changelog.html wget http://openbve.trainsimcentral.co.uk/releasenotes.html && mv releasenotes.html.1 releasenotes.html -binary: binary-indep -.PHONY: build clean binary-indep binary install configure +.PHONY: build clean binary-indep binary-arch binary install configure -- 1.6.0.4