#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk prefix=/usr basedir=omniORB-4.1.4 builddir=build package = mingw-w64-omniorb target = x86_64-pc-mingw32 prefix = /usr/$(target) docdir = debian/$(package)/usr/share/doc/$(package) builddir32=build32 package32 = mingw-w32-omniorb target32 = i686-pc-mingw32 prefix32 = /usr/$(target32) docdir32 = debian/$(package32)/usr/share/doc/$(package32) DEB_INSTALL_DOCS_ALL := $(builddir)/README.FIRST.txt $(builddir)/COPYING $(builddir)/ReleaseNotes.txt DEB_SHLIBDEPS_INCLUDE := DEB_DH_ALWAYS_EXCLUDE := .svn # do not strip anything. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. DEB_DH_STRIP_ARGS := -Xlib INSTALL_PROGRAM = install common-build-arch:: common-build-arch-stamp common-build-arch-stamp: rm -rf $(basedir) rm -rf $(builddir) tar xzf $(basedir).tar.gz mv $(basedir) $(builddir) cd $(builddir) && for file in ../patches/omniORB-4.1.3-mingw-w64-*.patch; do patch -p1 < $$file; done cp -p patches/config-native.mk $(builddir)/config rm -rf $(builddir)/bin/x86_win32 mkdir -p $(builddir)/bin/x86_win32 mkdir -p $(builddir)/lib/x86_win32 cd $(builddir)/bin/x86_win32 && ln -s /usr/bin/omniidl omniidl cd $(builddir)/src/tool/omkdepend && make && cp omkdepend ../../../bin/x86_win32 cd $(builddir)/src/lib && make export cd $(builddir)/src/services && make export cd $(builddir)/src/appl && make export rm -rf $(builddir32) tar xzf $(basedir).tar.gz mv $(basedir) $(builddir32) cd $(builddir32) && for file in ../patches/omniORB-4.1.3-mingw-w64-*.patch; do patch -p1 < $$file; done cd $(builddir32) && patch -p1 < ../patches/omniORB-4.1.3-mingw-w32-reconfigure.patch cp -p patches/config-native.mk $(builddir32)/config rm -rf $(builddir32)/bin/x86_win32 mkdir -p $(builddir32)/bin/x86_win32 mkdir -p $(builddir32)/lib/x86_win32 cd $(builddir32)/bin/x86_win32 && ln -s /usr/bin/omniidl omniidl cd $(builddir32)/src/tool/omkdepend && make && cp omkdepend ../../../bin/x86_win32 cd $(builddir32)/src/lib && make export cd $(builddir32)/src/services && make export cd $(builddir32)/src/appl && make export touch common-build-arch-stamp clean:: rm -f common-build-arch-stamp rm -rf $(basedir) rm -rf $(builddir) rm -rf $(builddir32) rm -rf *~ debian/$(package) debian/$(package32) debian/*~ debian/files* debian/substvars debian/compat # # info pages, locale data and static libraries may conflict with # already installed binutils packages. # common-install-arch:: rm -rf debian/$(package) mkdir -p debian/$(package)$(prefix)/bin mkdir -p debian/$(package)$(prefix)/lib mkdir -p debian/$(package)$(prefix)/include cp -pr $(builddir)/include/omniconfig.h $(builddir)/include/omnithread.h $(builddir)/include/COS $(builddir)/include/omniORB4 $(builddir)/include/omnithread debian/$(package)$(prefix)/include cp -pr $(builddir)/bin/x86_win32/* debian/$(package)$(prefix)/bin rm -f debian/$(package)$(prefix)/bin/omniidl debian/$(package)$(prefix)/bin/omkdepend cp -pr $(builddir)/lib/x86_win32/* debian/$(package)$(prefix)/lib cd debian/$(package)$(prefix)/lib && ln -s libCOS414_rt.a libCOS4.dll.a cd debian/$(package)$(prefix)/lib && ln -s libCOS414_rtd.a libCOS4d.dll.a cd debian/$(package)$(prefix)/lib && ln -s libCOSDynamic414_rt.a libCOSDynamic4.dll.a cd debian/$(package)$(prefix)/lib && ln -s libCOSDynamic414_rtd.a libCOSDynamic4d.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniCodeSets414_rt.a libomniCodeSets4.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniCodeSets414_rtd.a libomniCodeSets4d.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniConnectionMgmt414_rt.a libomniConnectionMgmt4.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniConnectionMgmt414_rtd.a libomniConnectionMgmt4d.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniDynamic414_rt.a libomniDynamic4.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniDynamic414_rtd.a libomniDynamic4d.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniORB414_rt.a libomniORB4.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomniORB414_rtd.a libomniORB4d.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomnisslTP414_rt.a libomnisslTP4.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomnisslTP414_rtd.a libomnisslTP4d.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomnithread34_rt.a libomnithread.dll.a cd debian/$(package)$(prefix)/lib && ln -s libomnithread34_rtd.a libomnithreadd.dll.a rm -rf debian/$(package32) mkdir -p debian/$(package32)$(prefix32)/bin mkdir -p debian/$(package32)$(prefix32)/lib mkdir -p debian/$(package32)$(prefix32)/include cp -pr $(builddir32)/include/omniconfig.h $(builddir32)/include/omnithread.h $(builddir32)/include/COS $(builddir32)/include/omniORB4 $(builddir32)/include/omnithread debian/$(package32)$(prefix32)/include cp -pr $(builddir32)/bin/x86_win32/* debian/$(package32)$(prefix32)/bin rm -f debian/$(package32)$(prefix32)/bin/omniidl debian/$(package32)$(prefix32)/bin/omkdepend cp -pr $(builddir32)/lib/x86_win32/* debian/$(package32)$(prefix32)/lib cd debian/$(package32)$(prefix32)/lib && ln -s libCOS414_rt.a libCOS4.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libCOS414_rtd.a libCOS4d.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libCOSDynamic414_rt.a libCOSDynamic4.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libCOSDynamic414_rtd.a libCOSDynamic4d.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniCodeSets414_rt.a libomniCodeSets4.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniCodeSets414_rtd.a libomniCodeSets4d.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniConnectionMgmt414_rt.a libomniConnectionMgmt4.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniConnectionMgmt414_rtd.a libomniConnectionMgmt4d.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniDynamic414_rt.a libomniDynamic4.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniDynamic414_rtd.a libomniDynamic4d.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniORB414_rt.a libomniORB4.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomniORB414_rtd.a libomniORB4d.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomnisslTP414_rt.a libomnisslTP4.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomnisslTP414_rtd.a libomnisslTP4d.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomnithread34_rt.a libomnithread.dll.a cd debian/$(package32)$(prefix32)/lib && ln -s libomnithread34_rtd.a libomnithreadd.dll.a