From 97aafd1defe7c5966e9d034e978872a561e9451c Mon Sep 17 00:00:00 2001 From: alepulver Date: Sun, 5 Nov 2006 17:10:50 +0000 Subject: - Fix building with GCC 4.1 [1]. - Replace INSTALLS_SHLIB with USE_LDCONFIG [2]. PR: ports/104648 Submitted by: Antoine Brodin (maintainer) [1] Reworked by: alepulver (myself) [2] --- graphics/libggi/Makefile | 2 +- graphics/libggi/files/patch-display-vgl-visual.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 graphics/libggi/files/patch-display-vgl-visual.c diff --git a/graphics/libggi/Makefile b/graphics/libggi/Makefile index 3ad55e4660da..523cc9ddc44b 100644 --- a/graphics/libggi/Makefile +++ b/graphics/libggi/Makefile @@ -20,7 +20,7 @@ COMMENT= A flexible drawing library LIB_DEPENDS= gii.1:${PORTSDIR}/devel/libgii USE_BZIP2= yes -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes GNU_CONFIGURE= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} diff --git a/graphics/libggi/files/patch-display-vgl-visual.c b/graphics/libggi/files/patch-display-vgl-visual.c new file mode 100644 index 000000000000..5acfe0365576 --- /dev/null +++ b/graphics/libggi/files/patch-display-vgl-visual.c @@ -0,0 +1,24 @@ +--- display/vgl/visual.c 2005/07/30 11:38:52 1.9 ++++ display/vgl/visual.c 2006/10/04 17:42:04 1.9.2.1 +@@ -1,4 +1,4 @@ +-/* $Id: visual.c,v 1.9 2005/07/30 11:38:52 cegger Exp $ ++/* $Id: visual.c,v 1.9.2.1 2006/10/04 17:42:04 cegger Exp $ + ****************************************************************************** + + FreeBSD vgl(3) target: initialization +@@ -210,13 +210,12 @@ + error = GGI_ENOMEM; + goto error; + } +- VGL_PRIV(vis) = malloc(sizeof(struct vgl_priv)); +- if (VGL_PRIV(vis) == NULL) { ++ LIBGGI_PRIVATE(vis) = priv = malloc(sizeof(struct vgl_priv)); ++ if (priv == NULL) { + do_cleanup(vis); + error = GGI_ENOMEM; + goto error; + } +- priv = VGL_PRIV(vis); + memset(priv, 0, sizeof(*priv)); + + memset(priv->vgl_palred, 0, sizeof(priv->vgl_palred)); -- cgit >refslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines