diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-11-06 01:10:50 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-11-06 01:10:50 +0800 |
commit | 97aafd1defe7c5966e9d034e978872a561e9451c (patch) | |
tree | 3f6824f31f1da5dab2dd0b5c1adda303d6e1a11b | |
parent | cd1f90951d276b549d836ba34cecd21ef1d8d150 (diff) | |
download | freebsd-ports-gnome-97aafd1defe7c5966e9d034e978872a561e9451c.tar.gz freebsd-ports-gnome-97aafd1defe7c5966e9d034e978872a561e9451c.tar.zst freebsd-ports-gnome-97aafd1defe7c5966e9d034e978872a561e9451c.zip |
- Fix building with GCC 4.1 [1].
- Replace INSTALLS_SHLIB with USE_LDCONFIG [2].
PR: ports/104648
Submitted by: Antoine Brodin <antoine.brodin@laposte.net> (maintainer) [1]
Reworked by: alepulver (myself) [2]
-rw-r--r-- | graphics/libggi/Makefile | 2 | ||||
-rw-r--r-- | graphics/libggi/files/patch-display-vgl-visual.c | 24 |
2 files changed, 25 insertions, 1 deletions
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)); |