mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
graphics/ocaml-images: unbreak the build and undeprecate the port
OMake's shell-success-null() function had been removed in version 0.10.5: after using $(NULL_DEVICE), it no longer needed a special name and had replaced shell-success() function.
This commit is contained in:
parent
54b238b132
commit
1ab547de87
@ -12,10 +12,6 @@ MAINTAINER= michael.grunewald@laposte.net
|
||||
COMMENT= Objective Caml image processing library
|
||||
WWW= http://pauillac.inria.fr/camlimages/
|
||||
|
||||
BROKEN= does not build: broken plist
|
||||
DEPRECATED= Fails to package and marked broken over a year ago
|
||||
EXPIRATION_DATE=2023-11-30
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/ocaml.m4:lang/ocaml-autoconf
|
||||
BUILD_DEPENDS+= omake:devel/omake
|
||||
|
||||
@ -74,6 +70,10 @@ USES+= xorg
|
||||
USE_XORG= xpm
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,shell-success-null,shell-success,' \
|
||||
${WRKSRC}/OMyMakeroot
|
||||
|
||||
do-configure:
|
||||
@(cd ${WRKSRC} && ${REINPLACE_CMD} ${OMAKESUBS} OMakefile)
|
||||
(cd ${WRKSRC} && ${OMAKE} ${OMARGS} configure)
|
||||
|
11
graphics/ocaml-images/files/patch-src_bitmap.ml
Normal file
11
graphics/ocaml-images/files/patch-src_bitmap.ml
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/bitmap.ml.orig 2011-06-22 18:04:32 UTC
|
||||
+++ src/bitmap.ml
|
||||
@@ -186,7 +186,7 @@ module Make(B:Bitdepth) = struct
|
||||
|
||||
let swap_out_eldest words =
|
||||
let sorted =
|
||||
- Sort.list (fun b1 b2 -> b1.last_used < b2.last_used) !swappable_blocks in
|
||||
+ List.sort (fun b1 b2 -> compare b1.last_used b2.last_used) !swappable_blocks in
|
||||
let rec swapper sorted i =
|
||||
match sorted with
|
||||
| [] -> ()
|
Loading…
Reference in New Issue
Block a user