[BACK]Return to hacks.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / xvidtune

File: [cvs.NetBSD.org] / pkgsrc / x11 / xvidtune / Attic / hacks.mk (download)

Revision 1.2, Sun Jun 3 18:06:11 2012 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2
Branch point for: pkgsrc-2012Q1
Changes since 1.1: +2 -1 lines

This should also have bsd.prefs.mk before checking MACHINE_PLATFORM.

# $NetBSD: hacks.mk,v 1.2 2012/06/03 18:06:11 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.
#
.include "../../mk/bsd.prefs.mk"
.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