mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-27 13:22:15 +08:00
55 lines
1.8 KiB
Bash
55 lines
1.8 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
# Contributors from AUR:
|
|
# Giuseppe Borzi <gborzi@ieee.org>
|
|
# Brice M<E9>alier <mealier_brice@yahoo.fr>
|
|
# Michele Mocciola <mickele>
|
|
|
|
pkgname=opencascade
|
|
pkgver=6.5.2
|
|
pkgrel=1
|
|
pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.opencascade.org"
|
|
license=('custom')
|
|
depends=('tk' 'mesa' 'java-runtime' 'libxmu')
|
|
makedepends=('java-environment' 'ftgl')
|
|
options=(!libtool)
|
|
source=("http://files.opencascade.com/OCCT/OCC_${pkgver}_release/OpenCASCADE652.tar.gz" "env.sh" "opencascade.sh" "opencascade.conf")
|
|
md5sums=('bfc4c8974e1ae56230b0cc81ec836898'
|
|
'acf8ad1e470cd7d1c2033954c1b0f03a'
|
|
'd9368b8d348ced3ec4462012977552d2'
|
|
'2924ecf57c95d25888f51071fdc72ad0')
|
|
|
|
build() {
|
|
cd "$srcdir/ros"
|
|
|
|
export CPLUS_INCLUDE_PATH=/usr/include/FTGL:/usr/include/freetype2
|
|
export CASROOT="$srcdir/ros"
|
|
export CFLAGS="$CFLAGS -fpermissive"
|
|
export CXXFLAGS="$CXXFLAGS -fpermissive"
|
|
if [ ! -d $JAVA_HOME/include ]; then
|
|
[ -e /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
|
|
[ -e /etc/profile.d/jdk.sh ] && source /etc/profile.d/jdk.sh
|
|
fi
|
|
|
|
./build_configure
|
|
./configure --disable-debug --enable-production \
|
|
--with-java-include=${JAVA_HOME}/include --prefix="$pkgdir/opt/$pkgname"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/ros"
|
|
|
|
make install
|
|
install -D -m644 "${srcdir}/opencascade.conf" "${pkgdir}/etc/ld.so.conf.d/opencascade.conf"
|
|
install -D -m 755 "${srcdir}/opencascade.sh" "${pkgdir}/etc/profile.d/opencascade.sh"
|
|
install -m 755 "${srcdir}/env.sh" "${pkgdir}/opt/$pkgname"
|
|
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/License.txt"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|