diff options
author | dholland <dholland@pkgsrc.org> | 2012-06-02 21:03:03 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2012-06-02 21:03:03 +0000 |
commit | 000312778f214abf965b95fc960a2cb5f7189963 (patch) | |
tree | 4a11d24a92d7c8422bfe65751926e56927c7c209 | |
parent | 6cd8a542f5bc8d4eaf0df62959a4ca79f6635a5c (diff) | |
download | pkgsrc-000312778f214abf965b95fc960a2cb5f7189963.tar.gz |
Work around x11-links lossage with native X on NetBSD 5.
x11-links rejects xf86vidmodeproto because it's too old according
to the pkgsrc X xf86vidmodeproto bl3 file (which is at best dubious
logic) and doesn't link it. Then the .pc file isn't available, so
this package's configure script silently fails running pkg-config
and sets XVIDTUNE_LIBS to empty. The build then fails at link time
because no X libs at all have been requested. Fix it by feeding in
the result of running the same pkg-config invocation outside
pkgsrc. The fact that the native xf86vidmode is "too old" does not
itself break the package.
-rw-r--r-- | x11/xvidtune/hacks.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/xvidtune/hacks.mk b/x11/xvidtune/hacks.mk new file mode 100644 index 00000000000..06c44d8e035 --- /dev/null +++ b/x11/xvidtune/hacks.mk @@ -0,0 +1,20 @@ +# $NetBSD: hacks.mk,v 1.1 2012/06/02 21:03:03 dholland Exp $ + +# +# Work around x11-links lossage with native X on NetBSD 5. +# +# x11-links rejects xf86vidmodeproto because it's too old according +# to the pkgsrc X xf86vidmodeproto bl3 file (which is at best dubious +# logic) and doesn't link it. Then the .pc file isn't available, so +# this package's configure script silently fails running pkg-config +# and sets XVIDTUNE_LIBS to empty. The build then fails at link time +# because no X libs at all have been requested. Fix it by feeding in +# the result of running the same pkg-config invocation outside +# pkgsrc. The fact that the native xf86vidmode is "too old" does not +# itself break the package. +# +.if ${MACHINE_PLATFORM:MNetBSD-5*} && ${X11_TYPE} == "native" +NEEDED_LIBS= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib +NEEDED_LIBS+= -lXxf86vm -lXaw7 -lXmu -lXt -lSM -lICE -lX11 +CONFIGURE_ENV+= XVIDTUNE_LIBS=${NEEDED_LIBS:Q} +.endif |