]> git.pld-linux.org Git - packages/elinks.git/commitdiff
- added some bconds (with: x, without: cgi, ipv6, led, 256)
authorAdam Gołębiowski <adamg@pld-linux.org>
Fri, 9 Jan 2004 21:06:27 +0000 (21:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- removed obsolete configure options(--enable-leds, --enable-256-colors)

Changed files:
    elinks.spec -> 1.82

elinks.spec

index 3056aa0f7f95d7ce41e60a89cc22ba55e44bbb40..1e011fbb697a766aae06e228b9767ad4c6c17e65 100644 (file)
@@ -1,3 +1,10 @@
+# Conditional build:
+%bcond_with    x       # Use the X Windows System
+%bcond_without cgi     # Disable Local CGI support
+%bcond_without ipv6    # Disable IPv6 Support
+%bcond_without led     # Disable LEDs
+%bcond_without 256     # Disable 256 colors support
+#
 Summary:       Experimantal Links (text WWW browser)
 Summary(es):   El links es un browser para modo texto, similar a lynx
 Summary(pl):   Eksperymentalny Links (tekstowa przegl±darka WWW)
@@ -69,9 +76,11 @@ cp %{SOURCE3} feature.h
 %configure \
 %{!?debug:     --enable-fastmem} \
 %{?debug:      --enable-debug} \
-       --enable-leds \
-       --enable-256-colors \
-       --without-x
+       %{?without_ipv6:--disable-ipv6} \
+       --with%{?without_x:out}-x
+%{?with_led:echo    '#define CONFIG_LEDS' >> feature.h}
+%{?with_256:echo    '#define CONFIG_256_COLORS' >> feature.h}
+%{?with_cgi:echo -e "#ifdef HAVE_SETENV\n\t#define CONFIG_CGI\n#endif" >> feature.h}
 %{__make}
 
 cd doc
This page took 0.103405 seconds and 4 git commands to generate.