mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 01:38:07 -04:00
graphics/cairo
This commit is contained in:
parent
7ba6d8e92b
commit
d57b16d6f0
@ -18,5 +18,9 @@ BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.1.9
|
||||
#.include "../../print/libspectre/buildlink3.mk"
|
||||
BUILDLINK_API_DEPENDS.pixman+= pixman>=0.30.0
|
||||
.include "../../x11/pixman/buildlink3.mk"
|
||||
.if (${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix")
|
||||
CPPFLAGS+= -DCAIRO_NO_MUTEX=1
|
||||
.else
|
||||
.include "../../mk/pthread.buildlink3.mk"
|
||||
.endif # !(${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix")
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
@ -1,5 +1,5 @@
|
||||
@comment $NetBSD: PLIST,v 1.38 2015/03/15 21:05:37 wiz Exp $
|
||||
bin/cairo-trace
|
||||
@comment MINIX: bin/cairo-trace
|
||||
include/cairo/cairo-deprecated.h
|
||||
include/cairo/cairo-features.h
|
||||
include/cairo/cairo-ft.h
|
||||
@ -16,8 +16,8 @@ ${PLIST.xcb}include/cairo/cairo-xcb.h
|
||||
${PLIST.x11}include/cairo/cairo-xlib-xrender.h
|
||||
${PLIST.x11}include/cairo/cairo-xlib.h
|
||||
include/cairo/cairo.h
|
||||
lib/cairo/cairo-fdr.la
|
||||
lib/cairo/libcairo-trace.la
|
||||
@comment MINIX: lib/cairo/cairo-fdr.la
|
||||
@comment MINIX: Requires pthreads: lib/cairo/libcairo-trace.la
|
||||
lib/libcairo-script-interpreter.la
|
||||
lib/libcairo.la
|
||||
lib/pkgconfig/cairo-fc.pc
|
||||
|
@ -7,3 +7,6 @@ SHA1 (patch-aa) = b01bc60f77a7122b0c0d0d9b25ad512bac7c190c
|
||||
SHA1 (patch-ab) = 11f7e0e59bd5c51a8fdacb48dcf2f2fefdf3b768
|
||||
SHA1 (patch-ac) = 1785bbef6bcab4781bf89e1b986a7eb96e5f2b64
|
||||
SHA1 (patch-ad) = a1068a37113b162ccfe14d7f1bd0baa9df7e5530
|
||||
SHA1 (patch-zz-minix-a) = 00cca3cea1b87d50e8107dde6903cd689cdfefb3
|
||||
SHA1 (patch-zz-minix-b) = 575867453a2ceb81ae0ed30e16181305d3d9e0b7
|
||||
SHA1 (patch-zz-minix-c) = 05546ac5b75f90d14d65b5a010117b6415179dfe
|
||||
|
11
graphics/cairo/patches/patch-zz-minix-a
Normal file
11
graphics/cairo/patches/patch-zz-minix-a
Normal file
@ -0,0 +1,11 @@
|
||||
--- perf/cairo-perf.c.orig Wed Dec 3 11:26:55 2014
|
||||
+++ perf/cairo-perf.c Wed Dec 3 11:27:19 2014
|
||||
@@ -90,7 +90,7 @@
|
||||
DosSleep (0);
|
||||
#elif defined(_WIN32)
|
||||
SleepEx(0, TRUE);
|
||||
-#elif defined(_POSIX_PRIORITY_SCHEDULING)
|
||||
+#elif defined(_POSIX_PRIORITY_SCHEDULING) && !defined(__minix)
|
||||
sched_yield ();
|
||||
#else
|
||||
sleep (0);
|
94
graphics/cairo/patches/patch-zz-minix-b
Normal file
94
graphics/cairo/patches/patch-zz-minix-b
Normal file
@ -0,0 +1,94 @@
|
||||
--- configure.orig Mon Oct 26 13:04:35 2015
|
||||
+++ configure Mon Oct 26 13:06:31 2015
|
||||
@@ -6153,7 +6153,7 @@
|
||||
lt_cv_sys_max_cmd_len=8192;
|
||||
;;
|
||||
|
||||
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
||||
+ minix* | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
||||
# This has been around since 386BSD, at least. Likely further.
|
||||
if test -x /sbin/sysctl; then
|
||||
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
||||
@@ -6644,7 +6644,7 @@
|
||||
lt_cv_deplibs_check_method=pass_all
|
||||
;;
|
||||
|
||||
-netbsd* | netbsdelf*-gnu)
|
||||
+minix* | netbsd* | netbsdelf*-gnu)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
||||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
||||
else
|
||||
@@ -10309,7 +10309,7 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
- netbsd* | netbsdelf*-gnu)
|
||||
+ minix* | netbsd* | netbsdelf*-gnu)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
||||
wlarc=
|
||||
@@ -10940,7 +10940,7 @@
|
||||
link_all_deplibs=yes
|
||||
;;
|
||||
|
||||
- netbsd* | netbsdelf*-gnu)
|
||||
+ minix* | netbsd* | netbsdelf*-gnu)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
||||
else
|
||||
@@ -11969,6 +11969,18 @@
|
||||
dynamic_linker='NetBSD ld.elf_so'
|
||||
;;
|
||||
|
||||
+minix*)
|
||||
+ version_type=sunos
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
||||
+ soname_spec='${libname}${release}${shared_ext}$major'
|
||||
+ dynamic_linker='Minix ld.elf_so'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=yes
|
||||
+ hardcode_into_libs=yes
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
need_lib_prefix=no
|
||||
@@ -15986,7 +15998,7 @@
|
||||
esac
|
||||
;;
|
||||
|
||||
- netbsd*)
|
||||
+ minix* | netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
||||
wlarc=
|
||||
@@ -16745,7 +16757,7 @@
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
- netbsd* | netbsdelf*-gnu)
|
||||
+ minix* | netbsd* | netbsdelf*-gnu)
|
||||
;;
|
||||
*qnx* | *nto*)
|
||||
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
||||
@@ -17743,6 +17755,18 @@
|
||||
shlibpath_overrides_runpath=no
|
||||
hardcode_into_libs=yes
|
||||
dynamic_linker='NetBSD ld.elf_so'
|
||||
+ ;;
|
||||
+
|
||||
+minix*)
|
||||
+ version_type=sunos
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
||||
+ soname_spec='${libname}${release}${shared_ext}$major'
|
||||
+ dynamic_linker='Minix ld.elf_so'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=yes
|
||||
+ hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
netbsd*)
|
11
graphics/cairo/patches/patch-zz-minix-c
Normal file
11
graphics/cairo/patches/patch-zz-minix-c
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./build/ltmain.sh.orig Mon Oct 26 13:08:01 2015
|
||||
+++ ./build/ltmain.sh Mon Oct 26 13:08:24 2015
|
||||
@@ -7633,7 +7633,7 @@
|
||||
# Rhapsody C library is in the System framework
|
||||
func_append deplibs " System.ltframework"
|
||||
;;
|
||||
- *-*-netbsd*)
|
||||
+ *-*-minix* | *-*-netbsd*)
|
||||
# Don't link with libc until the a.out ld.so is fixed.
|
||||
;;
|
||||
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
|
Loading…
x
Reference in New Issue
Block a user