From 62ba11f48005b19c38fbbb2093aa110cb76486aa Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 13 Nov 2013 18:36:26 +0100 Subject: X11-XCB: dynamic linking against libxcb --- .../files/X11-XCB-0.09-dynamic-linking.patch | 70 ++++++++++++++++++++++ .../files/X11-XCB-0.09-fix-xcb-includes.patch | 15 +++++ 2 files changed, 85 insertions(+) create mode 100644 dev-perl/X11-XCB/files/X11-XCB-0.09-dynamic-linking.patch create mode 100644 dev-perl/X11-XCB/files/X11-XCB-0.09-fix-xcb-includes.patch (limited to 'dev-perl/X11-XCB/files') diff --git a/dev-perl/X11-XCB/files/X11-XCB-0.09-dynamic-linking.patch b/dev-perl/X11-XCB/files/X11-XCB-0.09-dynamic-linking.patch new file mode 100644 index 0000000..817d3ee --- /dev/null +++ b/dev-perl/X11-XCB/files/X11-XCB-0.09-dynamic-linking.patch @@ -0,0 +1,70 @@ +diff --git a/Makefile.PL b/Makefile.PL +index 6dff406..67f54c4 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -63,61 +63,11 @@ use_ppport; + cc_warnings if $ENV{X11_XCB_CC_WARNINGS}; + + require ExtUtils::Depends; ++require ExtUtils::PkgConfig; + +-cc_include_paths 'bundled-libs/libxcb-1.8.1/src'; +- +-# We link the bundled xcb libraries statically so we don’t have to install them +-# on the system (that might not be possible due to missing permissions). +-makemaker_args->{MYEXTLIB} = join(' ', qw( +- bundled-libs/libxcb-1.8.1/src/.libs/libxcb.a +- bundled-libs/libxcb-1.8.1/src/.libs/libxcb-xinerama.a +-)); +-makemaker_args->{LDLOADLIBS} = '-lXau -lXdmcp'; +- +-{ +- package MY; +- sub postamble { +- <<'__EOF__'; +-$(MYEXTLIB): +- echo "xcbincludedir=$$(pwd)/bundled-libs/xcb-proto-1.7.1/src" > bundled-libs/xcb-proto.pc +- echo "pythondir=$$(pwd)/bundled-libs/xcb-proto-1.7.1/" >> bundled-libs/xcb-proto.pc +- echo "" >> bundled-libs/xcb-proto.pc +- echo "Name: XCB Proto" >> bundled-libs/xcb-proto.pc +- echo "Description: X protocol descriptions for XCB" >> bundled-libs/xcb-proto.pc +- echo "Version: 1.7.1" >> bundled-libs/xcb-proto.pc +- cd bundled-libs/libxcb-1.8.1/ && PKG_CONFIG_PATH=$$(pwd)/.. ./configure --with-pic --disable-shared \ +- --disable-composite \ +- --disable-damage \ +- --disable-dpms \ +- --disable-dri2 \ +- --disable-glx \ +- --disable-randr \ +- --disable-record \ +- --disable-render \ +- --disable-resource \ +- --disable-screensaver \ +- --disable-shape \ +- --disable-shm \ +- --disable-sync \ +- --disable-xevie \ +- --disable-xfixes \ +- --disable-xfree86-dri \ +- --disable-xinput \ +- --disable-xkb \ +- --disable-xprint \ +- --disable-selinux \ +- --disable-xtest \ +- --disable-xv \ +- --disable-xvmc && $(MAKE) +- +-__EOF__ +- } +-} +- +-if ($Module::Install::AUTHOR or $ENV{X11_XCB_GENERATE}) { +- require _GenerateMyXS; +- _GenerateMyXS::generate(); +-} ++makemaker_args->{INC} = ExtUtils::PkgConfig->cflags_only_I('xcb'); ++makemaker_args->{CFLAGS} = ExtUtils::PkgConfig->cflags_only_other('xcb'); ++makemaker_args->{LIBS} = ExtUtils::PkgConfig->libs('xcb'); + + WriteMakefile( + ExtUtils::Depends diff --git a/dev-perl/X11-XCB/files/X11-XCB-0.09-fix-xcb-includes.patch b/dev-perl/X11-XCB/files/X11-XCB-0.09-fix-xcb-includes.patch new file mode 100644 index 0000000..9cfdd87 --- /dev/null +++ b/dev-perl/X11-XCB/files/X11-XCB-0.09-fix-xcb-includes.patch @@ -0,0 +1,15 @@ +diff --git a/XCB.xs b/XCB.xs +index 152a5aa..d3060df 100644 +--- a/XCB.xs ++++ b/XCB.xs +@@ -1,8 +1,8 @@ + #include "EXTERN.h" + #include "perl.h" + #include "XSUB.h" +-#include +-#include ++#include ++#include + + #include "ppport.h" + -- cgit v1.2.3-54-g00ecf