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:
@@ -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')
|
||||
|
||||
12
mingw-w64-oce/oce-i686.install
Normal file
12
mingw-w64-oce/oce-i686.install
Normal 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
|
||||
}
|
||||
12
mingw-w64-oce/oce-x86_64.install
Normal file
12
mingw-w64-oce/oce-x86_64.install
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user