Changeset 25 for trunk


Ignore:
Timestamp:
12/06/05 18:11:34 (19 years ago)
Author:
kdeugau
Message:

/trunk

Checkpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r24 r25  
    367367          if (/^\%configure/) {
    368368            $buildscript .= expandmacros($_,'cgbp');
    369           } elsif (/^\%\{(__)?make\}/) {
     369          } elsif (/^\%\{__make\}/) {
    370370            $buildscript .= expandmacros($_,'mgbp');
    371371          } else {
     
    675675  my $section = shift;
    676676
    677   # To allow the FHS-ish %configure, %make, and %makeinstall to work The Right Way.
     677  # To allow the FHS-ish %configure and %makeinstall to work The Right Way.
    678678  # (Without clobbering the global $buildroot.)
    679679  my $prefix = '';
    680680
    681 # %configure, %make, and %makeinstall all share quite a pile - almost.  GRR.
    682 # I call it the FHS block, so it gets pushed forward as %{fhs}.  Note that
    683 # %configure doesn't use this because of the -- bits.
    684681  if ($section =~ /c/) {
    685682    # %configure macro
     
    704701
    705702  if ($section =~ /m/) {
    706     $macrostring =~ s'%make'make %{fhs}';
    707703    $macrostring =~ s'%{__make}'make ';
    708   } # done %make
     704  } # done make
    709705
    710706  if ($section =~ /i/) {
     
    743739    $macrostring =~ s|%{_mandir}|%{_datadir}/man|g;                     #/usr/share/man
    744740    $macrostring =~ s|%{_infodir}|%{_datadir}/info|g;                   #/usr/share/info
    745     $macrostring =~ s|%{_oldincludedir}|$prefix/usr/include|g;          #/usr/include
    746     $macrostring =~ s|%{_includedir}|$prefix%{_prefix\}/include|g;      #/usr/include
    747     $macrostring =~ s|%{_libdir}|$prefix%{_exec_prefix}/%{_lib}|g;      #/usr/lib
     741    $macrostring =~ s|%{_oldincludedir}|/usr/include|g;         #/usr/include
     742    $macrostring =~ s|%{_includedir}|%{_prefix\}/include|g;     #/usr/include
     743    $macrostring =~ s|%{_libdir}|%{_exec_prefix}/%{_lib}|g;     #/usr/lib
    748744    $macrostring =~ s|%{_lib}|lib|g;                                    #?
    749     $macrostring =~ s|%{_localstatedir}|$prefix/var|g;                  #/var
    750     $macrostring =~ s|%{_sharedstatedir}|$prefix%{_prefix}/com|g;       #/usr/com WTF?
    751     $macrostring =~ s|%{_sysconfdir}|$prefix/etc|g;                     #/etc
    752     $macrostring =~ s|%{_datadir}|$prefix%{_prefix}/share|g;            #/usr/share
    753     $macrostring =~ s|%{_libexecdir}|$prefix%{_exec_prefix}/libexec|g;  #/usr/libexec
    754     $macrostring =~ s|%{_sbindir}|$prefix%{_exec_prefix}/sbin|g;        #/usr/sbin
    755     $macrostring =~ s|%{_bindir}|$prefix%{_exec_prefix}/bin|g;          #/usr/bin
    756     $macrostring =~ s|%{_exec_prefix}|$prefix%{_prefix}|g;              #/usr
     745    $macrostring =~ s|%{_localstatedir}|/var|g;                 #/var
     746    $macrostring =~ s|%{_sharedstatedir}|%{_prefix}/com|g;      #/usr/com WTF?
     747    $macrostring =~ s|%{_sysconfdir}|/etc|g;                    #/etc
     748    $macrostring =~ s|%{_datadir}|%{_prefix}/share|g;           #/usr/share
     749    $macrostring =~ s|%{_libexecdir}|%{_exec_prefix}/libexec|g; #/usr/libexec
     750    $macrostring =~ s|%{_sbindir}|%{_exec_prefix}/sbin|g;       #/usr/sbin
     751    $macrostring =~ s|%{_bindir}|%{_exec_prefix}/bin|g;         #/usr/bin
     752    $macrostring =~ s|%{_exec_prefix}|%{_prefix}|g;             #/usr
    757753    $macrostring =~ s|%{_prefix}|/usr|g;                                #/usr
    758754  } # done with config section
Note: See TracChangeset for help on using the changeset viewer.