mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Don't depend on X11 when WITHOUT_X11 was defined, even if X11 exists on
target machine. PR: ports/102261 Submitted by: Stanislav Sedov (maintainer) Requested by: John E Hein <jhein@timing.com>
This commit is contained in:
parent
bc7a1fddcc
commit
6309d0dc06
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170977
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ocaml
|
||||
PORTVERSION= 3.09.2
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://caml.inria.fr/distrib/${DISTNAME:R}/ \
|
||||
ftp://ftp.inria.fr/INRIA/caml-light/${DISTNAME:R}/ \
|
||||
@ -59,7 +59,7 @@ THR_LD= #empty
|
||||
CONFIGURE_ARGS+=-no-pthread
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_X11) || exists(${X11BASE}/lib/libX11.a)
|
||||
.if !defined(WITHOUT_X11)
|
||||
PLIST_SUB+= X11=""
|
||||
USE_XLIB= yes
|
||||
CONFIGURE_ARGS+=-x11include ${X11BASE}/include -x11lib ${X11BASE}/lib
|
||||
@ -68,6 +68,7 @@ PLIST_SUB+= X11="@comment "
|
||||
WITHOUT_TK= yes
|
||||
SFX= -nox11
|
||||
CONFLICTS+= ocaml-[0-9]* ocaml-notk-[0-9]*
|
||||
CONFIGURE_ARGS+=-no-x11
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_TK)
|
||||
|
@ -1,6 +1,15 @@
|
||||
--- ./configure.orig Thu Mar 30 14:00:19 2006
|
||||
+++ ./configure Sun May 21 14:02:41 2006
|
||||
@@ -667,6 +667,7 @@
|
||||
--- configure.orig Thu Mar 30 16:00:19 2006
|
||||
+++ configure Sat Aug 19 10:34:48 2006
|
||||
@@ -78,6 +78,8 @@
|
||||
withcurses=no;;
|
||||
-no-shared-libs)
|
||||
withsharedlibs=no;;
|
||||
+ -no-x11|--no-x11)
|
||||
+ x11_wanted=no;;
|
||||
-x11include*|--x11include*)
|
||||
x11_include_dir=$2; shift;;
|
||||
-x11lib*|--x11lib*)
|
||||
@@ -667,6 +669,7 @@
|
||||
i386,*,linux_elf) profiling='prof';;
|
||||
i386,*,gnu) profiling='prof';;
|
||||
i386,*,bsd_elf) profiling='prof';;
|
||||
@ -8,7 +17,7 @@
|
||||
sparc,*,solaris)
|
||||
profiling='prof'
|
||||
case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;
|
||||
@@ -1107,117 +1108,14 @@
|
||||
@@ -1107,122 +1110,24 @@
|
||||
x11_include="not found"
|
||||
x11_link="not found"
|
||||
|
||||
@ -132,3 +141,13 @@
|
||||
|
||||
if test "$x11_include" = "not found" || test "$x11_link" = "not found"
|
||||
then
|
||||
echo "X11 not found, the \"graph\" library will not be supported."
|
||||
x11_include=""
|
||||
+elif test "$x11_wanted" = "no"
|
||||
+then
|
||||
+ echo "X11 support was disabled, the \"graph\" library will not be supported."
|
||||
+ x11_include=""
|
||||
+ x11_link=""
|
||||
else
|
||||
echo "Location of X11 include files: $x11_include/X11"
|
||||
echo "Options for linking with X11: $x11_link"
|
||||
|
Loading…
Reference in New Issue
Block a user