Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ARToolKitPlus/artoolkitplus.spec
blob: 4789bc806c84a29f17e2fc7bb0d64a4a3c84d00d (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Summary:	Augmented Reality Tracking Library
Name:		artoolkitplus
Version:	2.1.0
Release:	1
License:	GPL
Group:		Development/Libraries
Source:		%{name}-%{version}.tar.bz2
Vendor:		Institute for Computer Graphics and Vision, Graz University of Technology, Austria
URL:		http://studierstube.icg.tu-graz.ac.at/handheld_ar/artoolkitplus.php
Packager:	Institute for Computer Graphics and Vision, Graz University of Technology, Austria
Prefix:		/usr
BuildRoot: 	%{_tmppath}/buildroot-%{name}-%{version}
#Requires:	
BuildRequires:	qt3-devel

%define _prefix %{prefix}

%description
ARToolKit is a software library that can be used to calculate camera position and orientation relative to physical markers in real time. This enables the easy development of a wide range of Augmented Reality applications. ARToolKitPlus is an extended version of ARToolKit's vision code that adds features, but breaks compatibility due to a new class-based API.

#'

%prep
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%setup
export ARTKP=$(pwd)
export PATH=$PATH:$QTDIR/bin
qmake %{name}.pro PREFIX=%{_prefix} LIBDIR=%{_libdir} ARCH=%{_arch}
# QMAKE_CXX="ccache g++"

%build
export ARTKP=$(pwd)
export PATH=$PATH:$QTDIR/bin
make sub-src 
make

%install
INSTALL_ROOT=$RPM_BUILD_ROOT make install

%clean
make clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_libdir}/*
%{_bindir}/*
%{_prefix}/share/ARToolKitPlus
%doc %{_prefix}/share/doc/packages/ARToolKitPlus


%package devel
Summary:	Augmented Reality Tracking Library headers
Group:		Development/Libraries
Requires:	%{name} = %{version}

%description devel
This package contains header files and include files that are needed for development using ARToolKitPlus.

%files devel
%defattr(-,root,root)
%{_prefix}/include/*