mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Adding graphviz-2.24 to the port tree.
Build scripts could use some love by someone with more autotools knowledge.
This commit is contained in:
25
media-gfx/graphviz/graphviz-2.24.bep
Normal file
25
media-gfx/graphviz/graphviz-2.24.bep
Normal file
@@ -0,0 +1,25 @@
|
||||
DESCRIPTION="graphviz - Open Source Graph Visualization Software."
|
||||
HOMEPAGE="http://www.graphviz.org/"
|
||||
SRC_URI="http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.24.0.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd graphviz-2.24.0
|
||||
cp /boot/common/share/libtool/config/config.guess config
|
||||
cp /boot/common/share/libtool/config/config.guess lib/gd/config
|
||||
cp /boot/common/share/libtool/config/config.guess libltdl
|
||||
cp /boot/common/share/libtool/config/config.sub config
|
||||
cp /boot/common/share/libtool/config/config.sub lib/gd/config
|
||||
cp /boot/common/share/libtool/config/config.sub libltdl
|
||||
autoconf
|
||||
./configure --prefix=/boot/common --disable-shared --enable-static CFLAGS="-O0" LDFLAGS="-L/boot/common/lib -liconv"
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd graphviz-2.24.0
|
||||
make install
|
||||
cd /boot/common/bin
|
||||
ln -s dot_static dot
|
||||
}
|
||||
5
media-gfx/graphviz/graphviz.OptionalPackageDescription
Normal file
5
media-gfx/graphviz/graphviz.OptionalPackageDescription
Normal file
@@ -0,0 +1,5 @@
|
||||
Package: graphviz
|
||||
Version: 2.24
|
||||
Copyright: 1994-2008 AT&T Corp.
|
||||
License: CPL v1.0
|
||||
URL: http://www.graphviz.org/
|
||||
56
media-gfx/graphviz/patches/graphviz-2.24.patch
Normal file
56
media-gfx/graphviz/patches/graphviz-2.24.patch
Normal file
@@ -0,0 +1,56 @@
|
||||
diff -ur graphviz-2.24.0/config.h.in graphviz-2.24.0-haiku/config.h.in
|
||||
--- graphviz-2.24.0/config.h.in 2009-06-16 17:24:58.000000000 -0600
|
||||
+++ graphviz-2.24.0-haiku/config.h.in 2009-10-29 22:47:38.000000000 -0600
|
||||
@@ -54,6 +54,9 @@
|
||||
/* Define to 1 if you have the <crt_externs.h> header file. */
|
||||
#undef HAVE_CRT_EXTERNS_H
|
||||
|
||||
+/* Define to 1 if you have the <sysexits.h> header file. */
|
||||
+#undef HAVE_SYSEXITS_H
|
||||
+
|
||||
/* Define to 1 if you have the `deflateBound' function. */
|
||||
#undef HAVE_DEFLATEBOUND
|
||||
|
||||
diff -ur graphviz-2.24.0/configure.ac graphviz-2.24.0-haiku/configure.ac
|
||||
--- graphviz-2.24.0/configure.ac 2009-06-16 17:24:18.000000000 -0600
|
||||
+++ graphviz-2.24.0-haiku/configure.ac 2009-10-29 22:40:30.000000000 -0600
|
||||
@@ -160,6 +160,12 @@
|
||||
BROWSER="open"
|
||||
AC_DEFINE_UNQUOTED(DARWIN_DYLIB,"$DARWIN_DYLIB",[Define for Darwin-style shared library names.])
|
||||
;;
|
||||
+ *haiku* )
|
||||
+ DEFAULT_FONTPATH="/boot/system/fonts:/boot/system/fonts/ttfonts:/boot/system/fonts/psfonts:/boot/common/fonts:/boot/common/fonts/ttfonts:/boot/common/fonts/psfonts:/boot/home/config/fonts:/boot/home/config/fonts/ttfonts:/boot/home/config/fonts/psfonts";
|
||||
+ PATHSEPARATOR=":"
|
||||
+ NO_POSTSCRIPT_ALIAS=0
|
||||
+ BROWSER="open"
|
||||
+ ;;
|
||||
* ) # This sucks! Whatever happened to standards for file system layout?
|
||||
DEFAULT_FONTPATH="/usr/share/fonts/default/Type1:/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/common/share/fonts/ttf";
|
||||
PATHSEPARATOR=":"
|
||||
@@ -364,7 +370,7 @@
|
||||
errno.h time.h unistd.h fenv.h string.h strings.h inttypes.h setjmp.h \
|
||||
sys/time.h sys/times.h sys/types.h sys/select.h fpu_control.h \
|
||||
sys/fpu.h sys/socket.h sys/stat.h sys/mman.h \
|
||||
- sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h)
|
||||
+ sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h sysexits.h)
|
||||
AC_HEADER_TIME
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDBOOL
|
||||
diff -ur graphviz-2.24.0/contrib/diffimg/diffimg.c graphviz-2.24.0-haiku/contrib/diffimg/diffimg.c
|
||||
--- graphviz-2.24.0/contrib/diffimg/diffimg.c 2009-06-02 19:10:49.000000000 -0600
|
||||
+++ graphviz-2.24.0-haiku/contrib/diffimg/diffimg.c 2009-10-29 22:51:29.000000000 -0600
|
||||
@@ -47,7 +47,14 @@
|
||||
#define bool int
|
||||
#define false 0
|
||||
#else
|
||||
+#if defined HAVE_SYSEXITS_H
|
||||
#include <sysexits.h>
|
||||
+#else
|
||||
+#define EX_USAGE 64
|
||||
+#define EX_DATAERR 65
|
||||
+#define EX_NOINPUT 66
|
||||
+#define EX_UNAVAILABLE 69
|
||||
+#endif
|
||||
#endif
|
||||
#include <gd.h>
|
||||
#if defined HAVE_STDBOOL_H && ! defined __cplusplus
|
||||
Reference in New Issue
Block a user