summaryrefslogtreecommitdiff
path: root/dev-perl/X11-XCB/files/X11-XCB-0.09-dynamic-linking.patch
blob: 817d3ee86f21a0c363f88b66543fa5111edb107d (plain)
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
63
64
65
66
67
68
69
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
-10/+11 2012-09-06Use BINDIR, MANDIR and SYSCONFDIR vars in MakefileChristophe Fergeau1-5/+8 2012-09-06Add dependencies to README.Jason A. Donenfeld1-0/+8 2012-09-06Change debian name.Jason A. Donenfeld5-5/+4 2012-09-06Use more normal sleep variant.1.1.1Jason A. Donenfeld1-1/+1 2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1 2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2 2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2 2012-09-04No echo mode.Jason A. Donenfeld2-16/+42 2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1 2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1 2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14 2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60 2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1 2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1 2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224 2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173 2012-09-03Support pass gitJason A. Donenfeld2-1/+15 2012-08-31Add remove synonyms.Jason A. Donenfeld1-2/+2 2012-08-31Use basename in usage.Jason A. Donenfeld1-2/+1 2012-08-19now using gpg_id as a varMatthew Ramirez1-2/+2 2012-08-07Forty five seconds.Jason A. Donenfeld1-1/+1 2012-08-06Deal with klipper and new lines.Jason A. Donenfeld1-3/+19 2012-08-06Update examples.Jason A. Donenfeld1-7/+7 2012-08-06Update readme.Jason A. Donenfeld1-11/+13 2012-08-06Be slicker and more like git.Jason A. Donenfeld1-114/+173