commit
0315b0d490
23
libmatchbox-1.9-libpng.patch
Normal file
23
libmatchbox-1.9-libpng.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff -up libmatchbox-1.9/libmb/mbpixbuf.c.jx libmatchbox-1.9/libmb/mbpixbuf.c
|
||||
--- libmatchbox-1.9/libmb/mbpixbuf.c.jx 2006-07-26 15:12:25.000000000 -0400
|
||||
+++ libmatchbox-1.9/libmb/mbpixbuf.c 2011-11-17 18:28:51.981001505 -0500
|
||||
@@ -247,7 +247,7 @@ _load_png_file( const char *file,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- if ( setjmp( png_ptr->jmpbuf ) ) {
|
||||
+ if ( setjmp( png_jmpbuf(png_ptr) ) ) {
|
||||
png_destroy_read_struct( &png_ptr, &info_ptr, NULL);
|
||||
fclose(fd);
|
||||
return NULL;
|
||||
@@ -269,8 +269,8 @@ _load_png_file( const char *file,
|
||||
( color_type == PNG_COLOR_TYPE_GRAY_ALPHA ))
|
||||
png_set_gray_to_rgb(png_ptr);
|
||||
|
||||
- if ( info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA
|
||||
- || info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA
|
||||
+ if ( png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA
|
||||
+ || png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY_ALPHA
|
||||
)
|
||||
*has_alpha = 1;
|
||||
else
|
||||
BIN
libmatchbox-1.9.tar.bz2
Normal file
BIN
libmatchbox-1.9.tar.bz2
Normal file
Binary file not shown.
54
libmatchbox.spec
Normal file
54
libmatchbox.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: libmatchbox
|
||||
Summary: Libraries for the Matchbox Desktop
|
||||
Version: 1.9
|
||||
Release: 24
|
||||
Url: https://www.yoctoproject.org/software-item/matchbox
|
||||
License: LGPLv2+
|
||||
Source: http://downloads.yoctoproject.org/releases/matchbox/libmatchbox/%{version}/%{name}-%{version}.tar.bz2
|
||||
Patch0001: libmatchbox-1.9-libpng.patch
|
||||
BuildRequires: pango-devel libpng-devel libjpeg-devel check-devel autoconf automake libtool
|
||||
Buildroot: %{_tmppath}/libmatchbox-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
Matchbox is a base environment for the X Window System.It consists of a number of interchangeable
|
||||
and optional applications that can be tailored to a specific non desktop platform to enhance usability
|
||||
in a 'constrained' environment.
|
||||
|
||||
%package devel
|
||||
Summary: Static libraries and header files from libmatchbox
|
||||
Provides: matchbox-devel = %{version}-%{release} libmatchbox-devel = %{version}-%{release}
|
||||
Provides: liblibmatchbox-devel = %{version}-%{release} libmb-devel = %{version}-%{release}
|
||||
Requires: libmatchbox = %{version} pkgconfig
|
||||
|
||||
%description devel
|
||||
Static libraries and header files from libmatchbox
|
||||
|
||||
%prep
|
||||
%autosetup -n libmatchbox-%{version} -p1
|
||||
|
||||
%build
|
||||
autoreconf -v --install
|
||||
%configure --enable-png --enable-jpeg --enable-pango
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install DESTDIR=%{buildroot}
|
||||
%delete_la_and_a
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc AUTHORS ChangeLog README COPYING
|
||||
%_libdir/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/{pkgconfig/*.pc,*.so}
|
||||
%dir %{_includedir}/libmb
|
||||
%{_includedir}/libmb/*.h
|
||||
|
||||
%changelog
|
||||
* Tue Apr 21 2020 wangyue<wangyue92@huawei.com> - 1.9-24
|
||||
- Package init
|
||||
4
libmatchbox.yaml
Normal file
4
libmatchbox.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: git
|
||||
src_repo: "http://git.yoctoproject.org/cgit/cgit.cgi/libmatchbox"
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user