Revision 497
- Date:
- 2015/06/04 16:45:45
- Files:
-
- /utf8/core/ports/all/Apache-Test
- /utf8/core/ports/all/Apache-Test/GNUmakefile (Diff) (Checkout)
- /utf8/core/ports/all/apache13/GNUmakefile (Diff) (Checkout)
- /utf8/core/ports/all/clogger/GNUmakefile (Diff) (Checkout)
- /utf8/core/ports/all/libapreq/GNUmakefile (Diff) (Checkout)
- /utf8/core/ports/all/libapreq/patch_configs.pl (Diff) (Checkout)
Legend:
- Added
- Removed
- Modified
-
utf8/core/ports/all/Apache-Test/GNUmakefile
1 ############################################################################## 2 # 3 ############################################################################### 4 5 include ../../etc/perl.mk 6 7 PORTVERSION = 1.39 8 PERL_MAKEMAKER = yes 9 MASTER_CPAN_SUBDIR = Apache 10 11 12 include ../../etc/ports.mk -
utf8/core/ports/all/apache13/GNUmakefile
8 8 MASTER_POST_SITES = http://archive.apache.org/dist/httpd 9 9 CONFIGURE_ARGS = --prefix=${PREFIX}/apache \ 10 10 --disable-rule=EXPAT 11 12 OPSYS ?= ${shell uname} 13 ifeq (${OPSYS},Linux) 14 CONFIGURE_COMMAND ?= OPTIM="-fgnu89-inline" bash ./configure 15 else 16 CONFIGURE_COMMAND ?= OPTIM="-fgnu89-inline" ./configure 17 endif 18 19 11 20 ifndef WITHOUT_REWRITE 12 21 CONFIGURE_ARGS += --enable-module=rewrite 13 22 endif -
utf8/core/ports/all/clogger/GNUmakefile
1 1 ############################################################################## 2 # $HeadURL: svn://cvs1.rambler.ru/Contenido/trunk/ports/all/apache13/GNUmakefile $ 3 # $Id: GNUmakefile 511 2006-10-10 14:49:33Z lonerr $ 2 # 4 3 ############################################################################### 5 4 6 5 PORTVERSION = 0.1 6 #CONFIGURE_POSTCMD = ${MAKE_RECURSIVE} post-configure 7 7 8 8 do-configure: 9 9 @sed -i'' -e '/^__FBSDID/d' ${WRKSRC}/clogger.c 10 @echo ${WRKSRC}/Makefile 11 @sed -i'' -e 's/gcc/cc/g' ${WRKSRC}/Makefile 10 12 13 #post-configure: 14 # @echo 'GCC change' 15 11 16 do-install: 12 17 @test -d ${PREFIX}/bin || mkdir -p ${PREFIX}/bin 13 18 @cp -f ${WRKSRC}/clogger ${PREFIX}/bin/clogger -
utf8/core/ports/all/libapreq/GNUmakefile
1 1 ############################################################################## 2 # $HeadURL: http://svn.dev.rambler.ru/Contenido/branches/utf8/ports/all/libapreq/GNUmakefile $ 3 # $Id: GNUmakefile 175 2006-06-16 12:50:03Z lonerr $ 2 # 4 3 ############################################################################### 5 4 6 5 include ../../etc/perl.mk 7 6 8 9 7 ifeq (${shell perl -e 'print 1 if ${PERL_LEVEL}<500600'},1) 10 8 PORTVERSION = 1.2 11 9 else 12 PORTVERSION = 1.33 10 PORTVERSION = 1.34 13 11 endif 14 12 15 13 PERL_MAKEMAKER = yes 16 14 MASTER_CPAN_SUBDIR = Apache 17 PORT_DEPENDS = mod_perl 15 PORT_DEPENDS = mod_perl \ 16 Apache-Test 18 17 18 CONFIGURE_POSTCMD = ${MAKE_RECURSIVE} post-configure 19 19 20 post-configure: 21 ${PERL} ${PORTDIR}/patch_configs.pl ${WRKSRC} 22 20 23 include ../../etc/ports.mk -
utf8/core/ports/all/libapreq/patch_configs.pl
1 #!/usr/bin/perl 2 3 use strict; 4 5 my $start_dir = $ARGV[0] || die "Root dir needed\n"; 6 $start_dir =~ s/\/$//; 7 die "Wrong path\n" unless -e $start_dir; 8 9 print "Start patching Makefiles from [$start_dir]...\n"; 10 11 my @dirs = ( $start_dir ); 12 my @FILES; 13 14 while ( @dirs ) { 15 my $dir = shift @dirs; 16 opendir(DIR, $dir); 17 my @files = grep { /[^\.]+/ && ( -d $dir.'/'.$_ || $_ eq 'Makefile' ) } readdir(DIR); 18 closedir DIR; 19 20 foreach my $file ( @files ) { 21 if ( $file eq 'Makefile' ) { 22 push @FILES, $dir.'/'.$file; 23 } else { 24 push @dirs, $dir.'/'.$file; 25 } 26 } 27 } 28 29 foreach my $file ( @FILES ) { 30 print $file."\n"; 31 my $dir = $file; 32 $dir =~ s/\/\w+$//; 33 open FILE, $file; 34 my $buffer = ''; 35 while ( <FILE> ) { 36 my $str = $_; 37 if ( $str =~ /^OPTIMIZE\s*=\s+(.*?)\n/ ) { 38 $str = "OPTIMIZE = $1 -fgnu89-inline\n"; 39 } 40 $buffer .= $str; 41 } 42 close FILE; 43 my $out = $dir.'/Makefile.patch'; 44 open OUT, "> $out"; 45 print OUT $buffer; 46 close OUT; 47 rename $file, $file.'.orig'; 48 rename $out, $file; 49 } 50 51 print "Files patched\n";