--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=graphviz
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=2.38.0
+pkgrel=1
+arch=('any')
+pkgdesc="Rich set of graph drawing tools (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-cairo"
+ "${MINGW_PACKAGE_PREFIX}-expat"
+ "${MINGW_PACKAGE_PREFIX}-freetype"
+ "${MINGW_PACKAGE_PREFIX}-gd"
+ "${MINGW_PACKAGE_PREFIX}-fontconfig"
+ "${MINGW_PACKAGE_PREFIX}-pango"
+ "${MINGW_PACKAGE_PREFIX}-libpng"
+ "${MINGW_PACKAGE_PREFIX}-zlib"
+ "${MINGW_PACKAGE_PREFIX}-gtk3"
+ "${MINGW_PACKAGE_PREFIX}-gtkglext"
+ "${MINGW_PACKAGE_PREFIX}-freeglut"
+ "${MINGW_PACKAGE_PREFIX}-glade")
+options=('strip' 'staticlibs')
+license=("GPL 2")
+url="http://www.gnome.org"
+source=(http://graphviz.org/pub/${_realname}/stable/SOURCES/${_realname}-$pkgver.tar.gz
+ 001-win.patch)
+sha256sums=('81aa238d9d4a010afa73a9d2a704fc3221c731e1e06577c2ab3496bdef67859e'
+ 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
+
+prepare() {
+ cd "${srcdir}"/${_realname}-${pkgver}
+
+ #patch -p1 -i ${srcdir}/001-win.patch
+
+ #autoreconf -fi
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ ../${_realname}-${pkgver}/configure \
+ --prefix=${MINGW_PREFIX} \
+ --libexecdir=${MINGW_PREFIX}/lib \
+ --host=${MINGW_CHOST} \
+ --target=${MINGW_CHOST} \
+ --build=${MINGW_CHOST} \
+ --enable-shared \
+ --disable-static
+
+ make
+}
+
+package() {
+ cd "$srcdir/build-${MINGW_CHOST}"
+ make DESTDIR=$pkgdir install
+}