Explorar o código

use consistent the with_x11 name

Ralf S. Engelschall %!s(int64=24) %!d(string=hai) anos
pai
achega
6a8ee83d7c
Modificáronse 1 ficheiros con 6 adicións e 4 borrados
  1. 6 4
      emacs/emacs.spec

+ 6 - 4
emacs/emacs.spec

@@ -24,10 +24,12 @@
 ##
 
 #   the additionally used features
-%define       with_x                no
+%ifndef       with_x11
+%define       with_x11              no
+%endif
 
 #   more optional settings
-#   (requires with_x set to "yes" above)
+#   (requires with_x11 set to "yes" above)
 %define       with_jpeg             no
 %define       with_png              no
 
@@ -51,7 +53,7 @@ Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20020206, make, texinfo
 PreReq:       OpenPKG, openpkg >= 20020206
-%if "%{with_x}" == "yes"
+%if "%{with_x11}" == "yes"
 BuildPreReq:  X11
 PreReq:       X11
 %if "%{with_jpeg}" == "yes"
@@ -82,7 +84,7 @@ AutoReqProv:  no
     LDFLAGS="-L%{l_prefix}/lib" \
     ./configure \
         --prefix=%{l_prefix} \
-%if "%{with_x}" == "yes"
+%if "%{with_x11}" == "yes"
         --with-x \
         --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
         --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \