aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/mingw32-libyaml/Makefile27
-rw-r--r--devel/mingw32-libyaml/distinfo2
-rw-r--r--devel/mingw32-libyaml/files/patch-include+yaml.h11
-rw-r--r--devel/mingw32-libyaml/pkg-descr3
-rw-r--r--devel/mingw32-libyaml/pkg-plist5
6 files changed, 49 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index c7ad70627303..253b123f3b80 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1036,6 +1036,7 @@
SUBDIR += mingw32-binutils
SUBDIR += mingw32-directx
SUBDIR += mingw32-gcc
+ SUBDIR += mingw32-libyaml
SUBDIR += mingw32-pdcurses
SUBDIR += mingw32-pthreads
SUBDIR += mingw32-zlib
diff --git a/devel/mingw32-libyaml/Makefile b/devel/mingw32-libyaml/Makefile
new file mode 100644
index 000000000000..6202c5c0cc17
--- /dev/null
+++ b/devel/mingw32-libyaml/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: mingw32-libyaml
+# Date created: 5 December 2011
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libyaml
+PORTVERSION= 0.1.4
+CATEGORIES= devel textproc
+MASTER_SITES= http://pyyaml.org/download/libyaml/
+PKGNAMEPREFIX= mingw32-
+DISTNAME= yaml-${PORTVERSION}
+DIST_SUBDIR= repacked
+
+MAINTAINER= knu@FreeBSD.org
+COMMENT= The libyaml library cross-compiled for MinGW32
+
+BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc
+
+GNU_CONFIGURE= yes
+GNU_CONFIGURE_PREFIX= ${PREFIX}/mingw32
+CONFIGURE_ARGS= --host="mingw32"
+CC= ${PKGNAMEPREFIX}gcc
+CFLAGS= -O3 -DYAML_DECLARE_STATIC
+
+.include <bsd.port.mk>
diff --git a/devel/mingw32-libyaml/distinfo b/devel/mingw32-libyaml/distinfo
new file mode 100644
index 000000000000..83165caa3441
--- /dev/null
+++ b/devel/mingw32-libyaml/distinfo
@@ -0,0 +1,2 @@
+SHA256 (repacked/yaml-0.1.4.tar.gz) = 7bf81554ae5ab2d9b6977da398ea789722e0db75b86bffdaeb4e66d961de6a37
+SIZE (repacked/yaml-0.1.4.tar.gz) = 471759
diff --git a/devel/mingw32-libyaml/files/patch-include+yaml.h b/devel/mingw32-libyaml/files/patch-include+yaml.h
new file mode 100644
index 000000000000..343a955d283a
--- /dev/null
+++ b/devel/mingw32-libyaml/files/patch-include+yaml.h
@@ -0,0 +1,11 @@
+--- include/yaml.h.orig 2011-05-31 10:58:42.000000000 +0900
++++ include/yaml.h 2011-12-05 02:54:28.221135420 +0900
+@@ -26,6 +26,8 @@
+
+ /** The public API declaration. */
+
++#define YAML_DECLARE_STATIC
++
+ #ifdef _WIN32
+ # if defined(YAML_DECLARE_STATIC)
+ # define YAML_DECLARE(type) type
diff --git a/devel/mingw32-libyaml/pkg-descr b/devel/mingw32-libyaml/pkg-descr
new file mode 100644
index 000000000000..3aa5a70435be
--- /dev/null
+++ b/devel/mingw32-libyaml/pkg-descr
@@ -0,0 +1,3 @@
+This is the libyaml library cross-compiled for MinGW32.
+
+WWW: http://pyyaml.org/wiki/LibYAML
diff --git a/devel/mingw32-libyaml/pkg-plist b/devel/mingw32-libyaml/pkg-plist
new file mode 100644
index 000000000000..711deb0acd28
--- /dev/null
+++ b/devel/mingw32-libyaml/pkg-plist
@@ -0,0 +1,5 @@
+mingw32/include/yaml.h
+mingw32/lib/libyaml.a
+mingw32/lib/libyaml.la
+mingw32/lib/pkgconfig/yaml-0.1.pc
+@dirrmtry mingw32/lib/pkgconfig