mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
add nxlib bset
This commit is contained in:
parent
a7d2db0241
commit
68e81c7b27
20
rtems/config/4.11/graphics/nxlib.bset
Normal file
20
rtems/config/4.11/graphics/nxlib.bset
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# Build set for nxlib
|
||||
#
|
||||
|
||||
%define release 1
|
||||
|
||||
#
|
||||
# RTEMS Version
|
||||
#
|
||||
%define rtems_version 4.11
|
||||
|
||||
#
|
||||
# The RTEMS URL paths.
|
||||
#
|
||||
%include rtems-urls.bset
|
||||
|
||||
#
|
||||
# Build nxlib.
|
||||
#
|
||||
graphics/nxlib-0.47-dev-1.cfg
|
19
rtems/config/graphics/nxlib-0.47-dev-1.cfg
Normal file
19
rtems/config/graphics/nxlib-0.47-dev-1.cfg
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# nxlib 0.47
|
||||
#
|
||||
|
||||
%if %{release} == %{nil}
|
||||
%define release 1
|
||||
%endif
|
||||
|
||||
%include %{_configdir}/rtems-bsp.cfg
|
||||
|
||||
#
|
||||
# nxlib Version
|
||||
#
|
||||
%define nxlib_version 0.47-dev
|
||||
|
||||
#
|
||||
# nxlib Build configuration
|
||||
#
|
||||
%include %{_configdir}/nxlib-1.cfg
|
62
source-builder/config/nxlib-1.cfg
Normal file
62
source-builder/config/nxlib-1.cfg
Normal file
@ -0,0 +1,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/
|
||||
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
|
||||
#
|
||||
# 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}/* .
|
||||
|
||||
export RTEMS_MAKEFILE_PATH=%{_exec_prefix}
|
||||
|
||||
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}
|
Loading…
x
Reference in New Issue
Block a user