]> git.pld-linux.org Git - packages/allegro5.git/commitdiff
- added without svgalib bcond
authortrojan <trojan@pld-linux.org>
Thu, 8 May 2003 12:26:03 +0000 (12:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    allegro.spec -> 1.32

allegro.spec

index edf7344f39ed608d534d9b3176d16d0f6243bbe4..d3f9489380375d55c8e8afd15f463f4f67074bde 100644 (file)
@@ -4,6 +4,7 @@
 # _without_arts                - without arts module
 # _without_dbglib      - don't build debug versions of library
 # _without_proflib     - don't debug profiling versions of library
+# _without_svgalib      - without svgalib module
 # _with_alsa9  - use alsa 0.9 not 0.5
 #
 %ifarch sparc sparc64
@@ -34,7 +35,7 @@ BuildRequires:        autoconf
 BuildRequires: automake
 BuildRequires: esound-devel
 %ifarch %{ix86} alpha
-BuildRequires: svgalib-devel
+%{!?_without_svgalib:BuildRequires:    svgalib-devel}
 %endif
 BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -409,6 +410,7 @@ TARGET_ARCH="%{rpmcflags}"; export TARGET_ARCH
 # dbglib & proflib are compiled besides normlib, so it's ok to have them here
 %configure \
        --enable-static \
+       %{?_without_svgalib:--disable-svgalib} \
        %{!?_without_dbglib:--enable-dbglib} \
 %ifnarch %{ix86} alpha
        --disable-vga \
@@ -483,11 +485,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/liballp.a
 %endif
 
+%if %{!?_without_svgalib:1}0
 %ifarch %{ix86} alpha
 %files svgalib
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-svgalib.so
 %endif
+%endif
 
 %files dga2
 %defattr(644,root,root,755)
This page took 0.105601 seconds and 4 git commands to generate.