blob: 5b80e0b81c76dcafe9ab3017c1fff036906f657a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: petRUShka <petrushkin[at]yandex[dot]ru>
pkgname=clcc
_pkgver_major=0
_pkgver_minor=3
_pkgver_patch=0
pkgver=$_pkgver_major.$_pkgver_minor.${_pkgver_patch}
_pkgbuild=25
pkgrel=8
pkgdesc="CLCC is a compiler for OpenCL kernel source files. It's tool for application developers who want to verify their OpenCL code actually gets compiled by the driver before their program tries to compile it on-demand."
url="http://clcc.sourceforge.net/"
arch=('x86_64' 'i686')
license=('Boost Software License 1.0')
depends=('boost' 'boost-libs' 'opencl-icd-loader')
optdepends=()
makedepends=('cmake')
conflicts=()
replaces=()
backup=()
#install='foo.install'
source=("http://downloads.sourceforge.net/project/clcc/v$pkgver/clcc-$pkgver-$_pkgbuild-src.zip")
md5sums=('7ec003cc775d1cd06e789fb054c1d695')
build() {
cd "${srcdir}/"
sed -i 's/__LINUX__/__GNUC__/' src/options.cpp
sed -i 's/set(Boost_USE_STATIC_LIBS ON)/set(Boost_USE_STATIC_LIBS OFF)/' src/CMakeLists.txt
echo 'SET( CMAKE_EXE_LINKER_FLAGS "-lboost_system")' >> src/CMakeLists.txt
mkdir -p build
cd build
cmake ../src -DCMAKE_INSTALL_PREFIX=/usr -DCLCC_VERSION_MAJOR=$_pkgver_major -DCLCC_VERSION_MINOR=$_pkgver_minor -DCLCC_VERSION_PATCH=$_pkgver_patch -DCLCC_VERSION_BUILD=$_pkgbuild
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/license.txt" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et:
|