[Midnightbsd-cvs] mports: mports/x11-toolkits: Add libgdiplus
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Sep 18 15:53:35 EDT 2008
Log Message:
-----------
Add libgdiplus
Modified Files:
--------------
mports/x11-toolkits:
Makefile (r1.47 -> r1.48)
Added Files:
-----------
mports/x11-toolkits/libgdiplus:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/x11-toolkits/libgdiplus/files:
patch-cairo_src_cairo-ft-font.c (r1.1)
-------------- next part --------------
--- /dev/null
+++ x11-toolkits/libgdiplus/pkg-descr
@@ -0,0 +1,3 @@
+libgdiplus is an Open Source implementation of the GDI+ API.
+
+WWW: http://www.mono-project.com
--- /dev/null
+++ x11-toolkits/libgdiplus/pkg-plist
@@ -0,0 +1,5 @@
+lib/libgdiplus.a
+lib/libgdiplus.la
+lib/libgdiplus.so
+lib/libgdiplus.so.0
+libdata/pkgconfig/libgdiplus.pc
--- /dev/null
+++ x11-toolkits/libgdiplus/Makefile
@@ -0,0 +1,39 @@
+# $MidnightBSD: mports/x11-toolkits/libgdiplus/Makefile,v 1.1 2008/09/18 19:53:32 laffer1 Exp $
+
+PORTNAME= libgdiplus
+PORTVERSION= 1.2.5
+CATEGORIES= x11-toolkits
+MASTER_SITES= http://ftp.novell.com/pub/mono/sources/${PORTNAME}/
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= GDI+ API for System.Windows.Forms in Mono
+LICENSE= x11
+
+LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
+ ungif.5:${PORTSDIR}/graphics/libungif \
+ png.5:${PORTSDIR}/graphics/png \
+ fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
+ freetype.9:${PORTSDIR}/print/freetype2
+
+USE_BZIP2= yes
+USE_GNOME= gnomehack gnometarget glib20
+USE_GMAKE= yes
+USE_XORG= x11 xrender
+USE_LDCONFIG= yes
+LIBTOOLFILES= configure cairo/configure
+USE_AUTOTOOLS= libtool:15
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+# Included cairo does not work for us. Enable below when Mono catches
+# up with our port. For now, use included but patch out glitz manually.
+#CONFIGURE_ARGS+= --with-cairo=installed
+
+.include <bsd.port.pre.mk>
+
+# Avoid build error on 64-bit architectures
+.if (${ARCH} == "amd64") || (${ARCH} == "sparc64")
+CFLAGS+= -fPIC
+.endif
+
+.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
+.include <bsd.port.post.mk>
--- /dev/null
+++ x11-toolkits/libgdiplus/distinfo
@@ -0,0 +1,3 @@
+MD5 (libgdiplus-1.2.5.tar.bz2) = 82bbf6ca86b85e5148a15d8d88c6e548
+SHA256 (libgdiplus-1.2.5.tar.bz2) = 28edc21bc49f3791438ea70b5de944c4118a6daa557425f3209102379042e926
+SIZE (libgdiplus-1.2.5.tar.bz2) = 2942165
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/x11-toolkits/Makefile,v
retrieving revision 1.47
retrieving revision 1.48
diff -L x11-toolkits/Makefile -L x11-toolkits/Makefile -u -r1.47 -r1.48
--- x11-toolkits/Makefile
+++ x11-toolkits/Makefile
@@ -23,6 +23,7 @@
SUBDIR += gtoolkit
SUBDIR += libbonoboui
SUBDIR += libgail-gnome
+ SUBDIR += libgdiplus
SUBDIR += libgnomeui
SUBDIR += libgnomeuimm
SUBDIR += libgnomeprintui
--- /dev/null
+++ x11-toolkits/libgdiplus/files/patch-cairo_src_cairo-ft-font.c
@@ -0,0 +1,28 @@
+--- cairo/src/cairo-ft-font.c.orig Mon Aug 29 14:11:27 2005
++++ cairo/src/cairo-ft-font.c Sun Sep 11 00:44:30 2005
+@@ -44,6 +44,11 @@
+ #include <fontconfig/fontconfig.h>
+ #include <fontconfig/fcfreetype.h>
+
++#include <sys/types.h>
++#include <stdlib.h>
++#include <time.h>
++#include <unistd.h>
++
+ #include <ft2build.h>
+ #include FT_FREETYPE_H
+ #include FT_OUTLINE_H
+@@ -278,7 +283,12 @@
+ key->id = id;
+
+ /* 1607 is just an arbitrary prime. */
+- hash = _cairo_hash_string (filename);
++ if (filename != NULL) {
++ hash = _cairo_hash_string (filename);
++ } else {
++ srandom(time(NULL) * getpid());
++ hash = random();
++ }
+ hash += ((unsigned long) id) * 1607;
+
+ key->base.hash_entry.hash = hash;
More information about the Midnightbsd-cvs
mailing list