Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new package: mfrontgallery #22871

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions ‎mingw-w64-mfrontgallery/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Maintainer: Rafał Brzegowy <[email protected]>

_realname=mfrontgallery
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.1
pkgrel=1
pkgdesc='The MFrontGallery project, examples (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
depends=("${MINGW_PACKAGE_PREFIX}-tfel"
"${MINGW_PACKAGE_PREFIX}-gnuplot")
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-ninja")
url="https://github.com/thelfer/MFrontGallery"
license=("LGPL-3")
source=("https://github.com/thelfer/MFrontGallery/archive/refs/tags/MFrontGallery-${pkgver}.tar.gz")
sha256sums=('428863a947215b8ad9bc24c2ec1ef14f838658a5c6209c4ffdfbb2f0355d867d')

build() {
[[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}"
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"

export TFELHOME=${MINGW_PREFIX}
export PATH=$TFELHOME/bin:$TFELHOME/lib:$PATH
export LD_LIBRARY_PATH=$TFELHOME/lib:$LD_LIBRARY_PATH
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is needed? there is no LD_LIBRARY_PATH for example


MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
${MINGW_PREFIX}/bin/cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-Denable-c=ON \
-Denable-c++=ON \
-Denable-excel=ON \
-Denable-fortran=ON \
-Denable-python=OFF \
-Denable-java=OFF \
-Denable-octave=OFF \
-Denable-generic-behaviours=OFF \
-Denable-castem=OFF \
-Denable-castem-behaviours=OFF \
-Denable-aster=ON \
-Denable-cyrano=OFF \
-Denable-ansys=ON \
-Denable-europlexus=ON \
-Denable-calculix=ON \
-Denable-abaqus=ON \
-Denable-diana-fea=ON \
-Denable-zmat=OFF \
-Denable-fortran-behaviours-wrappers=ON \
-Denable-mfront-documentation-generation=ON \
-Denable-portable-build=ON \
../${_realname}-${_realname}-${pkgver}

${MINGW_PREFIX}/bin/cmake --build .
}

package() {
cd "${srcdir}/build-${MSYSTEM}"
DESTDIR=${pkgdir} "${MINGW_PREFIX}"/bin/cmake.exe --install .
install -Dm644 ${srcdir}/${_realname}-${_realname}-${pkgver}/LGPL-3.0.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
}
Loading