ports/52808: [PATCH] lang/ocaml: add WITHOUT_X11 knob
Sergei Kolobov
sergei at kolobov.com
Fri May 30 12:10:16 UTC 2003
>Number: 52808
>Category: ports
>Synopsis: [PATCH] lang/ocaml: add WITHOUT_X11 knob
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri May 30 05:10:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Sergei Kolobov
>Release: FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Jan 2 03:13:48 MSK
>Description:
Some ports (e.g. net/unison) that depends on this port could be used
in a server environment without X11 installed. This port currently
unconditionally depends on X11 even though it is not mandatory.
To overcome this, introduce WITHOUT_X11 compile-time knob.
Port maintainer - patrick at watson.org - has been copied.
>How-To-Repeat:
>Fix:
--- ocaml-3.06.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/lang/ocaml/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile 2003/02/21 12:35:05 1.25
+++ Makefile 2003/05/30 11:27:37
@@ -29,7 +29,6 @@
LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83
.endif
-USE_XLIB= yes
HAS_CONFIGURE= yes
ALL_TARGET= world.opt
@@ -67,14 +66,18 @@
camlp4.1 ocpp.1
CONFIGURE_ARGS= -prefix ${PREFIX} \
- -x11include ${X11BASE}/include \
- -x11lib ${X11BASE}/lib \
-with-pthread
.if defined(WITHOUT_TK)
CONFIGURE_ARGS+=-no-tk
.else
CONFIGURE_ARGS+=-tkdefs "-I${PREFIX}/include/tcl8.3 -I${PREFIX}/include/tk8.3"
+.endif
+
+.if !defined(WITHOUT_X11)
+USE_XLIB= yes
+CONFIGURE_ARGS+= -x11include ${X11BASE}/include \
+ -x11lib ${X11BASE}/lib
.endif
.if !defined(NOPORTDOCS)
--- ocaml-3.06.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list