diff --git a/graphics/libggi/Makefile b/graphics/libggi/Makefile index 8e2c0e0fd852..ce3bdd4c6615 100644 --- a/graphics/libggi/Makefile +++ b/graphics/libggi/Makefile @@ -102,6 +102,13 @@ MLINKS= ggiDBGetBuffer.3 ggiDBGetNumBuffers.3 \ .include +.if !exists(/usr/include/vgl.h) || ${MACHINE_ARCH} != "i386" +CONFIGURE_ARGS+= --disable-vgl +PLIST_SUB+= WITH_VGL="@comment " +.else +PLIST_SUB+= WITH_VGL="" +.endif + .if defined(WITH_AALIB) || exists(${LOCALBASE}/include/aalib.h) LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib PLIST_SUB+= WITH_AALIB="" diff --git a/graphics/libggi/pkg-plist b/graphics/libggi/pkg-plist index bcc735dfee16..6edb5942e523 100644 --- a/graphics/libggi/pkg-plist +++ b/graphics/libggi/pkg-plist @@ -109,8 +109,8 @@ lib/ggi/display/trueemu.la lib/ggi/display/trueemu.so %%WITH_SVGALIB%%lib/ggi/display/vgagl.la %%WITH_SVGALIB%%lib/ggi/display/vgagl.so -lib/ggi/display/vgl.la -lib/ggi/display/vgl.so +%%WITH_VGL%%lib/ggi/display/vgl.la +%%WITH_VGL%%lib/ggi/display/vgl.so lib/ggi/display/xf86dga.la lib/ggi/display/xf86dga.so lib/ggi/helper/helper_x_dbe.la