aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/Makefile1
-rw-r--r--mail/gmime2-sharp/Makefile39
-rw-r--r--mail/gmime2-sharp/pkg-descr3
-rw-r--r--mail/gmime2-sharp/pkg-plist10
-rw-r--r--mail/gmime2/Makefile11
-rw-r--r--mail/gmime2/files/patch-mono_Makefile.in18
6 files changed, 77 insertions, 5 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 471e6db73050..2dacfdf97ac3 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -120,6 +120,7 @@
SUBDIR += gmail-notify
SUBDIR += gmime
SUBDIR += gmime2
+ SUBDIR += gmime2-sharp
SUBDIR += gnarwl
SUBDIR += gnubiff
SUBDIR += gnumail
diff --git a/mail/gmime2-sharp/Makefile b/mail/gmime2-sharp/Makefile
new file mode 100644
index 000000000000..aa09a73756cd
--- /dev/null
+++ b/mail/gmime2-sharp/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: gmime2-sharp
+# Date Created: 20050513
+# Whom: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
+#
+# $FreeBSD$
+# $Id: Makefile,v 1.9 2005/09/25 00:56:46 tmclau02 Exp $
+#
+
+PORTREVISION= 0
+CATEGORIES= mail
+PKGNAMESUFFIX= -sharp
+
+MAINTAINER= bsd-sharp-list@forge.novell.com
+COMMENT= Mono bindings for gmime
+
+LIB_DEPENDS= gmime-2.0.3:${PORTSDIR}/mail/gmime2
+BUILD_DEPENDS= gapi2-parser:${PORTSDIR}/x11-toolkits/gtk-sharp20
+RUN_DEPENDS= gapi2-parser:${PORTSDIR}/x11-toolkits/gtk-sharp20
+
+MASTERDIR= ${.CURDIR}/../gmime2
+BUILD_WRKSRC= ${WRKSRC}/mono
+INSTALL_WRKSRC= ${BUILD_WRKSRC}
+DESCR= ${.CURDIR}/pkg-descr
+PLIST= ${.CURDIR}/pkg-plist
+
+USE_GNOME= gnomehack gnometarget glib20
+USE_REINPLACE= yes
+CONFIGURE_ARGS= --enable-mono=yes
+
+# Else we conflict with mail/gmime2
+NOPORTDOCS= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|.@GMIME_VERSION@||g' \
+ ${WRKSRC}/mono/gmime-sharp.dll.config.in
+ @${REINPLACE_CMD} -e 's|libglib-2.0.so.0|libglib-2.0.so|g' \
+ ${WRKSRC}/mono/ObjectStream.cs ${WRKSRC}/mono/Object.custom
+
+.include "${MASTERDIR}/Makefile"
diff --git a/mail/gmime2-sharp/pkg-descr b/mail/gmime2-sharp/pkg-descr
new file mode 100644
index 000000000000..a2b58ba7ef0f
--- /dev/null
+++ b/mail/gmime2-sharp/pkg-descr
@@ -0,0 +1,3 @@
+C# assemblies for gmime
+
+WWW: http://spruce.sourceforge.net/gmime/
diff --git a/mail/gmime2-sharp/pkg-plist b/mail/gmime2-sharp/pkg-plist
new file mode 100644
index 000000000000..9e528480a64d
--- /dev/null
+++ b/mail/gmime2-sharp/pkg-plist
@@ -0,0 +1,10 @@
+lib/mono/gac/gmime-sharp/2.0.0.0__677013d4cb5910f0/gmime-sharp.dll
+lib/mono/gac/gmime-sharp/2.0.0.0__677013d4cb5910f0/gmime-sharp.dll.config
+lib/mono/gmime-sharp/gmime-sharp.dll
+lib/mono/gmime-sharp/gmime-sharp.dll.config
+lib/mono/gmime-sharp/gmime-sharp.dll.mdb
+libdata/pkgconfig/gmime-sharp.pc
+share/gapi-2.0/gmime-api.xml
+@dirrm lib/mono/gmime-sharp
+@dirrm lib/mono/gac/gmime-sharp/2.0.0.0__677013d4cb5910f0
+@dirrm lib/mono/gac/gmime-sharp
diff --git a/mail/gmime2/Makefile b/mail/gmime2/Makefile
index 216b9ca34093..a689f48103d9 100644
--- a/mail/gmime2/Makefile
+++ b/mail/gmime2/Makefile
@@ -7,11 +7,11 @@
PORTNAME= gmime
PORTVERSION= 2.1.16
-CATEGORIES= mail
+CATEGORIES?= mail
MASTER_SITES= http://spruce.sourceforge.net/gmime/sources/v2.1/
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Library (written in C) for parsing and creating messages using MIME
+MAINTAINER?= ports@FreeBSD.org
+COMMENT?= Library (written in C) for parsing and creating messages using MIME
CONFLICTS= gmime-1.0.*
@@ -19,8 +19,9 @@ USE_ICONV= yes
USE_GMAKE= yes
USE_GNOME= gnomehack gnometarget glib20
USE_LIBTOOL_VER=15
-CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE} \
- --with-html-dir=${PREFIX}/share/doc
+CONFIGURE_ARGS?= --with-libiconv=${LOCALBASE} \
+ --with-html-dir=${PREFIX}/share/doc \
+ --enable-mono=no
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/mail/gmime2/files/patch-mono_Makefile.in b/mail/gmime2/files/patch-mono_Makefile.in
new file mode 100644
index 000000000000..67b3dbf59af4
--- /dev/null
+++ b/mail/gmime2/files/patch-mono_Makefile.in
@@ -0,0 +1,18 @@
+--- mono/Makefile.in.orig Sun Sep 11 23:59:29 2005
++++ mono/Makefile.in Mon Sep 12 00:06:09 2005
+@@ -466,11 +466,11 @@
+ install-data-local:
+ @if test -n '$(TARGET)'; then \
+ if test -n '$(DESTDIR)'; then \
+- echo "$(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /root $(DESTDIR)$(prefix)/lib"; \
+- $(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /root $(DESTDIR)$(prefix)/lib || exit 1; \
++ echo "$(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(DESTDIR)$(libdir) /root $(DESTDIR)$(libdir)"; \
++ $(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(DESTDIR)$(libdir) /root $(DESTDIR)$(libdir) || exit 1; \
+ else \
+- echo "$(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(prefix)/lib"; \
+- $(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(prefix)/lib || exit 1; \
++ echo "$(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(DESTDIR)$(libdir) /root $(DESTDIR)$(libdir)"; \
++ $(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(DESTDIR)$(libdir) /root $(DESTDIR)$(libdir) || exit 1; \
+ fi; \
+ fi
+