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.
This commit is contained in:
Nick Østergaard
2016-09-04 13:16:57 +02:00
parent c8c922bfbe
commit e7056fd3ec
3 changed files with 25 additions and 0 deletions

View File

@@ -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')

View File

@@ -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
}

View File

@@ -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
}