Add logic to switch between two world,

(1) Old with MesaLib <= 7.4.4
  (2) New world with
      MesaLib >= 7.8.2
      Also for gl,glw, dri
This switch is purely for transient period.

Also Remove comments for Debug line.
This commit is contained in:
Makoto Fujiwara 2012-03-26 07:03:31 +00:00 committed by Thomas Klausner
parent 59cb0ea6fc
commit 5678079bbe

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.58 2012/03/05 14:08:16 makoto Exp $
# $NetBSD: Makefile,v 1.59 2012/03/26 07:03:31 makoto Exp $
#
.include "version.mk"
@ -56,19 +56,42 @@ CHECK_WRKREF_SKIP+= bin/emacs-${PKGVERSION_NOREV}
FILESDIR= ${.CURDIR}/../../editors/emacs/files
# Check some related libraries for inclusion.
MESALIB_VERSION!= \
(${PKG_INFO} -e MesaLib || ${ECHO} "0") | \
${SED} -e 's/MesaLib-//'
GL_VERSION!= \
(${PKG_INFO} -e gl || ${ECHO} "0") | \
${SED} -e 's/gl-//'
post-extract:
# set auto-load for send-pr library
cp ${FILESDIR}/site-init.el ${WRKSRC}/lisp
# Comment out for debug.
#.if ${MESALIB_VERSION:R} >= 7.8
# @echo ' ** MesaLib version 7.8.2 or later installed.'
#.endif
pre-configure:
(cd ${WRKSRC}; ./autogen.sh)
.include "../../wip/mk/git-package.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../wip/gl/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.if ${MESALIB_VERSION:R} >= 7.8 || ${GL_VERSION:R} >= 7.8
.include "../../wip/gl/buildlink3.mk"
.include "../../x11/glproto/buildlink3.mk"
.include "../../wip/MesaLib/buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
.include "../../x11/libdrm/buildlink3.mk"
.include "../../x11/dri2proto/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../x11/damageproto/buildlink3.mk"
.include "../../x11/libXdamage/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.endif
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
#PKG_DEBUG_LEVEL?= 1
#_PKG_SILENT= # was @ here