Create fake libtool archives to fix build problems on XFree86 4.x system

when programs are supposed to be linked with the included Mesa libraries.
These changes by Johnny C. Lam fix PR pkg/20649 by myself.
This commit is contained in:
tron 2003-03-13 07:01:01 +00:00
parent bb3981365b
commit 8ba42278c5
2 changed files with 30 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink2.mk,v 1.8 2003/03/09 19:04:53 jschauma Exp $
# $NetBSD: buildlink2.mk,v 1.9 2003/03/13 07:01:01 tron Exp $
.if !defined(MESALIB_BUILDLINK2_MK)
MESALIB_BUILDLINK2_MK= # defined
@ -63,6 +63,13 @@ BUILDLINK_PREFIX.MesaLib_DEFAULT= ${LOCALBASE}
BUILDLINK_PREFIX.MesaLib= ${X11BASE}
.endif
.if ${_NEED_MESALIB} == "NO"
_BLNK_MESALIB_LDFLAGS= -L${BUILDLINK_PREFIX.MesaLib}/lib -lGL
LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \
-e "s|${BUILDLINK_PREFIX.MesaLib}/lib/libGL.la|${_BLNK_MESALIB_LDFLAGS}|g" \
-e "s|${LOCALBASE}/lib/libGL.la|${_BLNK_MESALIB_LDFLAGS}|g"
.endif
BUILDLINK_FILES.MesaLib+= include/GL/GL*.h
BUILDLINK_FILES.MesaLib+= include/GL/gl.h
BUILDLINK_FILES.MesaLib+= include/GL/glext.h
@ -77,7 +84,14 @@ BUILDLINK_FILES.MesaLib+= lib/libGL.*
USE_X11= # defined
BUILDLINK_TARGETS+= MesaLib-buildlink
BUILDLINK_TARGETS+= MesaLib-libGL-la
MesaLib-buildlink: _BUILDLINK_USE
MesaLib-libGL-la:
${_PKG_SILENT}${_PKG_DEBUG} \
lafile="${BUILDLINK_DIR}/lib/libGL.la"; \
libpattern="${BUILDLINK_PREFIX.MesaLib}/lib/libGL.*"; \
${BUILDLINK_FAKE_LA}
.endif # MESALIB_BUILDLINK2_MK

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink2.mk,v 1.8 2003/03/09 19:04:54 jschauma Exp $
# $NetBSD: buildlink2.mk,v 1.9 2003/03/13 07:01:03 tron Exp $
.if !defined(GLU_BUILDLINK2_MK)
GLU_BUILDLINK2_MK= # defined
@ -61,6 +61,13 @@ BUILDLINK_PREFIX.glu_DEFAULT= ${LOCALBASE}
BUILDLINK_PREFIX.glu= ${X11BASE}
.endif
.if ${_NEED_GLU} == "NO"
_BLNK_GLU_LDFLAGS= -L${BUILDLINK_PREFIX.glu}/lib -lGLU
LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \
-e "s|${BUILDLINK_PREFIX.glu}/lib/libGLU.la|${_BLNK_GLU_LDFLAGS}|g" \
-e "s|${LOCALBASE}/lib/libGLU.la|${_BLNK_GLU_LDFLAGS}|g"
.endif
BUILDLINK_FILES.glu= include/GL/glu.h
BUILDLINK_FILES.glu+= include/GL/glu_mangle.h
BUILDLINK_FILES.glu+= lib/libGLU.*
@ -70,7 +77,14 @@ USE_X11= # defined
.include "../../graphics/MesaLib/buildlink2.mk"
BUILDLINK_TARGETS+= glu-buildlink
BUILDLINK_TARGETS+= glu-libGLU-la
glu-buildlink: _BUILDLINK_USE
glu-libGLU-la:
${_PKG_SILENT}${_PKG_DEBUG} \
lafile="${BUILDLINK_DIR}/lib/libGLU.la"; \
libpattern="${BUILDLINK_PREFIX.glu}/lib/libGLU.*"; \
${BUILDLINK_FAKE_LA}
.endif # GLU_BUILDLINK2_MK