blob: d177aa47c4c21360d009b138118bdcb6c206f2d4 (
plain) (
blame)
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
|
#
# nxlib
#
# This configuration file configure's, make's and install's nxlib.
#
%if %{release} == %{nil}
%define release 1
%endif
Name: nxlib-v%{nxlib_version}-%{_host}-%{release}
Summary: nxlib is a wrapper library that provides closer compatibility to the Xlib API for Nano-X
Version: %{nxlib_version}
Release: %{release}
URL: http://www.microwindows.org/
#
# nxlib Source
#
%source set nxlib git://github.com/alex-sever-h/nxlib.git
#
# Prepare the source code.
#
%prep
build_top=$(pwd)
source_dir_nxlib="nxlib"
%source setup nxlib -q -n nxlib
cd ${build_top}
#
# Build the source code.
# The configure should be run in the source dir
#
%build
build_top=$(pwd)
%{build_directory}
mkdir -p ${build_dir}
cd ${build_dir}
cp -r ${build_top}/${source_dir_nxlib}/* .
%{host_build_flags}
%{rtems_makefile_inc}
make -f Makefile.rtems
cd ${build_top}
%install
build_top=$(pwd)
%{__rmdir} $SB_BUILD_ROOT
cd ${build_dir}
mkdir -p $SB_BUILD_ROOT/%{_includedir}/X11
mkdir -p $SB_BUILD_ROOT/%{_libdir}
cp -r X11/*.h $SB_BUILD_ROOT/%{_includedir}/X11
cp libX11.a $SB_BUILD_ROOT/%{_libdir}
|