- Timestamp:
- 12/06/05 18:11:34 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r24 r25 367 367 if (/^\%configure/) { 368 368 $buildscript .= expandmacros($_,'cgbp'); 369 } elsif (/^\%\{ (__)?make\}/) {369 } elsif (/^\%\{__make\}/) { 370 370 $buildscript .= expandmacros($_,'mgbp'); 371 371 } else { … … 675 675 my $section = shift; 676 676 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. 678 678 # (Without clobbering the global $buildroot.) 679 679 my $prefix = ''; 680 680 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 that683 # %configure doesn't use this because of the -- bits.684 681 if ($section =~ /c/) { 685 682 # %configure macro … … 704 701 705 702 if ($section =~ /m/) { 706 $macrostring =~ s'%make'make %{fhs}';707 703 $macrostring =~ s'%{__make}'make '; 708 } # done %make704 } # done make 709 705 710 706 if ($section =~ /i/) { … … 743 739 $macrostring =~ s|%{_mandir}|%{_datadir}/man|g; #/usr/share/man 744 740 $macrostring =~ s|%{_infodir}|%{_datadir}/info|g; #/usr/share/info 745 $macrostring =~ s|%{_oldincludedir}| $prefix/usr/include|g; #/usr/include746 $macrostring =~ s|%{_includedir}| $prefix%{_prefix\}/include|g; #/usr/include747 $macrostring =~ s|%{_libdir}| $prefix%{_exec_prefix}/%{_lib}|g; #/usr/lib741 $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 748 744 $macrostring =~ s|%{_lib}|lib|g; #? 749 $macrostring =~ s|%{_localstatedir}| $prefix/var|g; #/var750 $macrostring =~ s|%{_sharedstatedir}| $prefix%{_prefix}/com|g; #/usr/com WTF?751 $macrostring =~ s|%{_sysconfdir}| $prefix/etc|g; #/etc752 $macrostring =~ s|%{_datadir}| $prefix%{_prefix}/share|g; #/usr/share753 $macrostring =~ s|%{_libexecdir}| $prefix%{_exec_prefix}/libexec|g; #/usr/libexec754 $macrostring =~ s|%{_sbindir}| $prefix%{_exec_prefix}/sbin|g; #/usr/sbin755 $macrostring =~ s|%{_bindir}| $prefix%{_exec_prefix}/bin|g; #/usr/bin756 $macrostring =~ s|%{_exec_prefix}| $prefix%{_prefix}|g; #/usr745 $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 757 753 $macrostring =~ s|%{_prefix}|/usr|g; #/usr 758 754 } # done with config section
Note:
See TracChangeset
for help on using the changeset viewer.