aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-cairo
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2007-01-05 15:54:00 +0800
committermezz <mezz@FreeBSD.org>2007-01-05 15:54:00 +0800
commit36bb04143217a3eec9c62db8151a2b5cbac28499 (patch)
treed1192a740209676873520fdccd0a8b834ab4b055 /graphics/py-cairo
parent2a3349a32d72e86295ab7399f9d45bfdeaab7033 (diff)
downloadfreebsd-ports-gnome-36bb04143217a3eec9c62db8151a2b5cbac28499.tar.gz
freebsd-ports-gnome-36bb04143217a3eec9c62db8151a2b5cbac28499.tar.zst
freebsd-ports-gnome-36bb04143217a3eec9c62db8151a2b5cbac28499.zip
Doesn't build on FreeBSD 4.x, so mark it as IGNORE and remove all of patches
that are for FreeBSD 4.x. Reported by: miwi
Diffstat (limited to 'graphics/py-cairo')
-rw-r--r--graphics/py-cairo/Makefile8
-rw-r--r--graphics/py-cairo/files/patch-freebsd497
2 files changed, 4 insertions, 101 deletions
diff --git a/graphics/py-cairo/Makefile b/graphics/py-cairo/Makefile
index 368a19d37703..3e006778676c 100644
--- a/graphics/py-cairo/Makefile
+++ b/graphics/py-cairo/Makefile
@@ -31,13 +31,13 @@ CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500000
+IGNORE= does not build on FreeBSD 4.x
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|; \
s|SUBDIRS = cairo examples test|SUBDIRS = cairo examples|' \
${WRKSRC}/Makefile.in
-.if ${OSVERSION} < 500000
- @${REINPLACE_CMD} -e 's|-std=c99||' \
- ${WRKSRC}/configure
-.endif
.include <bsd.port.post.mk>
diff --git a/graphics/py-cairo/files/patch-freebsd4 b/graphics/py-cairo/files/patch-freebsd4
deleted file mode 100644
index 7d40694bd42a..000000000000
--- a/graphics/py-cairo/files/patch-freebsd4
+++ /dev/null
@@ -1,97 +0,0 @@
---- cairo/pycairo-font.c.orig Sat Apr 29 05:04:31 2006
-+++ cairo/pycairo-font.c Thu Dec 21 16:09:09 2006
-@@ -197,6 +197,7 @@
- PycairoFontFace *ff;
- PycairoFontOptions *fo;
- PycairoMatrix *mx1, *mx2;
-+ PyObject *o;
-
- if (!PyArg_ParseTuple(args, "O!O!O!O!:ScaledFont.__new__",
- &PycairoFontFace_Type, &ff,
-@@ -205,7 +206,7 @@
- &PycairoFontOptions_Type, &fo))
- return NULL;
-
-- PyObject *o = type->tp_alloc(type, 0);
-+ o = type->tp_alloc(type, 0);
- if (o != NULL) {
- cairo_scaled_font_t *scaled_font = cairo_scaled_font_create
- (ff->font_face, &mx1->matrix, &mx2->matrix, fo->font_options);
---- cairo/pycairo-surface.c.orig Sun Jul 2 21:58:14 2006
-+++ cairo/pycairo-surface.c Thu Dec 21 16:09:34 2006
-@@ -34,7 +34,6 @@
- # include <config.h>
- #endif
-
--#include <stdint.h>
- #include "pycairo-private.h"
-
-
-@@ -519,6 +518,7 @@
- static PyObject *
- image_surface_create_from_png (PyTypeObject *type, PyObject *file)
- {
-+ PyObject* reader;
- if (PyObject_TypeCheck (file, &PyBaseString_Type)) {
- return PycairoSurface_FromSurface (
- cairo_image_surface_create_from_png (PyString_AsString(file)),
-@@ -526,7 +526,7 @@
- }
-
- /* file or file-like object argument */
-- PyObject* reader = PyObject_GetAttrString (file, "read");
-+ reader = PyObject_GetAttrString (file, "read");
- if (reader == NULL || !PyCallable_Check (reader)) {
- Py_XDECREF(reader);
- PyErr_SetString(PyExc_TypeError,
-@@ -700,6 +700,7 @@
- {
- double width_in_points, height_in_points;
- PyObject *file;
-+ PyObject* writer;
-
- if (!PyArg_ParseTuple(args, "Odd:PDFSurface.__new__",
- &file, &width_in_points, &height_in_points))
-@@ -713,7 +714,7 @@
- NULL);
- }
- /* file or file-like object argument */
-- PyObject* writer = PyObject_GetAttrString (file, "write");
-+ writer = PyObject_GetAttrString (file, "write");
- if (writer == NULL || !PyCallable_Check (writer)) {
- Py_XDECREF(writer);
- PyErr_SetString(PyExc_TypeError,
-@@ -803,6 +804,7 @@
- {
- double width_in_points, height_in_points;
- PyObject *file;
-+ PyObject* writer;
-
- if (!PyArg_ParseTuple(args, "Odd:PSSurface.__new__",
- &file, &width_in_points, &height_in_points))
-@@ -817,7 +819,7 @@
-
- }
- /* else: file or file-like object argument */
-- PyObject* writer = PyObject_GetAttrString (file, "write");
-+ writer = PyObject_GetAttrString (file, "write");
- if (writer == NULL || !PyCallable_Check (writer)) {
- Py_XDECREF(writer);
- PyErr_SetString(PyExc_TypeError,
-@@ -942,6 +944,7 @@
- {
- double width_in_points, height_in_points;
- PyObject *file;
-+ PyObject* writer;
-
- if (!PyArg_ParseTuple(args, "Odd:SVGSurface.__new__",
- &file, &width_in_points, &height_in_points))
-@@ -955,7 +958,7 @@
- NULL);
- }
- /* else: file or file-like object argument */
-- PyObject* writer = PyObject_GetAttrString (file, "write");
-+ writer = PyObject_GetAttrString (file, "write");
- if (writer == NULL || !PyCallable_Check (writer)) {
- Py_XDECREF(writer);
- PyErr_SetString(PyExc_TypeError,