a507a5fcd7
* rename to ocaml-camlimages from camlimages for consistency * new MASTER_SITES and DISTFILES naming scheme * switch to omake * remove gettext dependency * remove lablgtk dependency - only needed for examples * remove ghostscript runtime dependency - only needed for postscript. From: Christopher Zimmermann <madroach@gmerlin.de>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
$OpenBSD: patch-OMakefile,v 1.1 2012/08/18 23:35:30 avsm Exp $
|
|
--- OMakefile.orig Wed Jun 22 20:04:32 2011
|
|
+++ OMakefile Thu Aug 9 19:49:09 2012
|
|
@@ -34,9 +34,10 @@ LDFLAGS[]+=
|
|
PATH_RGB_TXT[]=
|
|
/etc/X11
|
|
/usr/share/X11
|
|
+ /usr/X11R6/share/X11
|
|
|
|
BYTE_ENABLED=1
|
|
-NATIVE_ENABLED=1
|
|
+NATIVE_ENABLED=$(OCAML_NATIVE)
|
|
|
|
########################################################################
|
|
|
|
@@ -122,11 +123,11 @@ print_configured() =
|
|
export
|
|
|
|
HAVE_Z = $(Check_header_library z, zlib.h, zlibVersion)
|
|
- HAVE_PNG = $(Check_header_library png, png.h, png_create_read_struct)
|
|
+ HAVE_PNG = $(Check_header_library m z png, png.h, png_create_read_struct)
|
|
SUPPORT_PNG = $(and $(HAVE_Z) $(HAVE_PNG))
|
|
LDFLAGS_png=
|
|
if $(SUPPORT_PNG)
|
|
- LDFLAGS_png=-lpng -lz
|
|
+ LDFLAGS_png=-lpng -lz -lm
|
|
SUPPORTED_FORMATS+=png
|
|
export
|
|
|
|
@@ -162,7 +163,7 @@ print_configured() =
|
|
SUPPORTED_FORMATS+=ps
|
|
export
|
|
|
|
- SUPPORT_LABLGTK2 = $(Check_ocamlfind_package lablgtk2)
|
|
+ SUPPORT_LABLGTK2 = false
|
|
if $(SUPPORT_LABLGTK2)
|
|
SUPPORTED_NON_FORMATS+=lablgtk2
|
|
OCAMLPACKS+=lablgtk2
|