From e7056fd3ecfc6c406731fa25cbf2aed3d8958620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20=C3=98stergaard?= Date: Sun, 4 Sep 2016 13:16:57 +0200 Subject: [PATCH] Add install script to fix some paths The mingw cmake does not understand msys paths, so post instll we change the paths to windows paths. --- mingw-w64-oce/PKGBUILD | 1 + mingw-w64-oce/oce-i686.install | 12 ++++++++++++ mingw-w64-oce/oce-x86_64.install | 12 ++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 mingw-w64-oce/oce-i686.install create mode 100644 mingw-w64-oce/oce-x86_64.install diff --git a/mingw-w64-oce/PKGBUILD b/mingw-w64-oce/PKGBUILD index 4fd797da03..86c40b975e 100644 --- a/mingw-w64-oce/PKGBUILD +++ b/mingw-w64-oce/PKGBUILD @@ -14,6 +14,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-freetype") #depends=('intel-tbb' 'gl2ps' 'freeimage' 'tk') source=(https://github.com/tpaviot/${_realname}/archive/OCE-${pkgver}.tar.gz) # 99_oce.sh 99_oce.conf) +install=oce-${CARCH}.install md5sums=('bf2226be4cd192606af677cf178088e5') #'606e400a97d9947459e4de2eca65f04c' #'167a9f5c94a16d7855c3ac99e34a4506') diff --git a/mingw-w64-oce/oce-i686.install b/mingw-w64-oce/oce-i686.install new file mode 100644 index 0000000000..3b7b79bdd0 --- /dev/null +++ b/mingw-w64-oce/oce-i686.install @@ -0,0 +1,12 @@ +post_install() { + _mingw=mingw32 + cd ${_mingw} + local _prefix=$(pwd -W) + cd - + sed -e "s|/${_mingw}|${_prefix}|g" -i ${_mingw}/lib/oce/OCE-libraries.cmake + sed -e "s|/${_mingw}|${_prefix}|g" -i ${_mingw}/lib/oce/OCEConfig.cmake +} + +post_upgrade() { + post_install +} diff --git a/mingw-w64-oce/oce-x86_64.install b/mingw-w64-oce/oce-x86_64.install new file mode 100644 index 0000000000..6f73224b3b --- /dev/null +++ b/mingw-w64-oce/oce-x86_64.install @@ -0,0 +1,12 @@ +post_install() { + _mingw=mingw64 + cd ${_mingw} + local _prefix=$(pwd -W) + cd - + sed -e "s|/${_mingw}|${_prefix}|g" -i ${_mingw}/lib/oce/OCE-libraries.cmake + sed -e "s|/${_mingw}|${_prefix}|g" -i ${_mingw}/lib/oce/OCEConfig.cmake +} + +post_upgrade() { + post_install +}