From 2c2523234fcebde53e55ddbec6dcbf93256e61c2 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Fri, 5 Mar 2004 13:08:09 +0000 Subject: [PATCH] - Fix package for non-i386 --- graphics/libggi/Makefile | 7 +++++++ graphics/libggi/pkg-plist | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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