Revision 499

Date:
2015/06/08 14:51:57
Author:
ahitrov
Revision Log:
Changes needed for installation under new GCC and Perl 5.16.5 and higher

Files:

Legend:

 
Added
 
Removed
 
Modified
  • koi8/core/config.mk

     
    20 20 CORE_REQUIRED += HTML-Mason
    21 21 CORE_REQUIRED += apache13
    22 22 CORE_REQUIRED += libapreq
    23 CORE_REQUIRED += ImageMagick
    24 23 CORE_REQUIRED += IO-stringy
    25 24 CORE_REQUIRED += DateTime-Format-Pg
    26 25 CORE_REQUIRED += DateTime-Locale-ru_RU_KOI8_R
     
    51 50 DEVELOPMENT ?= NO
    52 51
    53 52 OPTIONS_EXPIRE ?= 600
    53
    54 CONVERT = ${shell export PATH=${LOCAL}/bin:$${PATH}; which convert}
    55 ifeq (${CONVERT},)
    56 CORE_REQUIRED += ImageMagick
    57 endif
  • koi8/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
  • koi8/core/ports/all/apache13/GNUmakefile

     
    1 1 ##############################################################################
    2 # $HeadURL: http://svn.dev.rambler.ru/Contenido/trunk/ports/all/apache13/GNUmakefile $
    3 # $Id: GNUmakefile 1509 2010-01-25 09:03:39Z lonerr $
    2 # $HeadURL: http://svn.dev.rambler.ru/Contenido/branches/utf8/ports/all/apache13/GNUmakefile $
    3 # $Id: GNUmakefile 1526 2010-03-29 11:11:10Z ahitrov $
    4 4 ###############################################################################
    5 5
    6 6 PORTVERSION = 1.3.41
     
    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
  • koi8/core/ports/all/clogger/GNUmakefile

     
    1 1 ##############################################################################
    2 # $HeadURL: http://developers.rambler.ru/svn/contenido/koi8/core/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
  • koi8/core/ports/all/DateTime/GNUmakefile

     
    3 3 # $Id: GNUmakefile 1243 2008-06-17 11:05:36Z abavykin $
    4 4 ###############################################################################
    5 5
    6 PORTVERSION = 0.70
    6 PORTVERSION = 1.03
    7 7 PERL_MODBUILD = yes
    8 8 MASTER_CPAN_SUBDIR = DateTime
    9 9 PORT_DEPENDS = DateTime-TimeZone \
    10 10 DateTime-Locale \
    11 11 Math-Round \
    12 Params-Validate
    12 Params-Validate \
    13 Test-Fatal
    13 14
    14 15 #CONFIGURE_PRECMD = ${MAKE_RECURSIVE} pre-configure
    15 16 #pre-configure:
  • koi8/core/ports/all/DBI/GNUmakefile

     
    10 10 elif (${shell perl -e 'print 1 if ${PERL_LEVEL}<501200'},1)
    11 11 PORTVERSION = 1.52
    12 12 else
    13 PORTVERSION = 1.622
    13 PORTVERSION = 1.633
    14 14 endif
    15 15
    16 16 PERL_MAKEMAKER = yes
  • koi8/core/ports/all/ExtUtils-MakeMaker/GNUmakefile

     
    1 1 ##############################################################################
    2 # $HeadURL: http://svn.dev.rambler.ru/Contenido/branches/utf8/ports/all/DateTime/GNUmakefile $
    3 # $Id: GNUmakefile 1243 2008-06-17 11:05:36Z abavykin $
    2 #
    4 3 ###############################################################################
    5 4
    6 5 PORTVERSION = 6.62
  • koi8/core/ports/all/libapreq/GNUmakefile

     
    1 1 ##############################################################################
    2 # $HeadURL: http://svn.dev.rambler.ru/Contenido/trunk/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
  • koi8/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";
  • koi8/core/ports/all/mod_perl/GNUmakefile

     
    19 19 PREP_HTTPD=1 \
    20 20 EVERYTHING=1
    21 21
    22 CONFIGURE_PRECMD = ${MAKE_RECURSIVE} pre-configure
    22 CONFIGURE_PRECMD = ${MAKE_RECURSIVE} pre-configure
    23 23 pre-configure:
    24 24 ifeq (${shell ${PERL} -e 'print 1 if ${PERL_LEVEL}>=501400'},1)
    25 25 cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch.perl5.14
  • koi8/core/ports/all/Module-Implementation/GNUmakefile

     
    1 ##############################################################################
    2 #
    3 ###############################################################################
    4
    5 PORTVERSION = 0.06
    6 PERL_MAKEMAKER = yes
    7 MASTER_CPAN_SUBDIR = Module
    8 PORT_DEPENDS = Module-Runtime \
    9 Try-Tiny
    10
    11 include ../../etc/ports.mk
  • koi8/core/ports/all/Module-Runtime/GNUmakefile

     
    3 3 # $Id: GNUmakefile 1625 2011-10-26 15:21:17Z ahitrov $
    4 4 ###############################################################################
    5 5
    6 PORTVERSION = 0.011
    6 PORTVERSION = 0.014
    7 7 PERL_MAKEMAKER = yes
    8 8 MASTER_CPAN_SUBDIR = Module
    9 PORT_DEPENDS = parent \
    10 Params-Classify
    9 PORT_DEPENDS = Module-Build
    11 10
    12 11 include ../../etc/ports.mk
  • koi8/core/ports/all/Net-SSLeay/GNUmakefile

     
    2 2 #
    3 3 ###############################################################################
    4 4
    5 PORTVERSION = 1.54
    5 PORTVERSION = 1.68
    6 6 PERL_MAKEMAKER = yes
    7 7 MASTER_CPAN_SUBDIR = Net
    8 8
  • koi8/core/ports/all/Net-Subnet/GNUmakefile

     
    1 ##############################################################################
    2 #
    3 ###############################################################################
    4
    5 PORTVERSION = 1.03
    6 PERL_MAKEMAKER = yes
    7 MASTER_CPAN_SUBDIR = Net
    8 PORT_DEPENDS = Socket6
    9
    10
    11 include ../../etc/ports.mk
  • koi8/core/ports/all/Params-Validate/GNUmakefile

     
    1 1 ##############################################################################
    2 # $Id: GNUmakefile 1243 2008-06-17 11:05:36Z abavykin $
    2 #
    3 3 ###############################################################################
    4 4
    5 PORTVERSION = 1.00
    5 PORTVERSION = 1.10
    6 6 PERL_MODBUILD = yes
    7 7 #PERL_MAKEMAKER = yes
    8 MASTER_CPAN_SUBDIR = ExtUtils
    9 PORT_DEPENDS = ExtUtils-CBuilder \
    10 Module-Build
    8 MASTER_CPAN_SUBDIR = Params
    9 PORT_DEPENDS = Module-Implementation \
    10 Test-Fatal \
    11 Test-Requires
    11 12
    12 13 include ../../etc/perl.mk
    13 14
  • koi8/core/ports/all/Socket6/GNUmakefile

     
    1 ##############################################################################
    2 #
    3 ###############################################################################
    4
    5 PORTVERSION = 0.25
    6 PERL_MAKEMAKER = yes
    7 MASTER_CPAN_SUBDIR = ../../authors/id/U/UM/UMEMOTO
    8 PORT_DEPENDS = ExtUtils-MakeMaker
    9
    10
    11 include ../../etc/ports.mk
  • koi8/core/ports/all/Test-Fatal/GNUmakefile

     
    1 ##############################################################################
    2 #
    3 ###############################################################################
    4
    5 PORTVERSION = 0.012
    6 PERL_MAKEMAKER = yes
    7 MASTER_CPAN_SUBDIR = Test
    8 PORT_DEPENDS = Try-Tiny
    9
    10 include ../../etc/ports.mk
  • koi8/core/ports/all/Test-Requires/GNUmakefile

     
    1 ##############################################################################
    2 #
    3 ###############################################################################
    4
    5 PORTVERSION = 0.08
    6 PERL_MAKEMAKER = yes
    7 MASTER_CPAN_SUBDIR = Test
    8
    9 include ../../etc/ports.mk
  • koi8/core/ports/all/Test-Requires/Test-Harness/GNUmakefile

     
    1 ##############################################################################
    2 # $Id: GNUmakefile 1243 2008-06-17 11:05:36Z abavykin $
    3 ###############################################################################
    4
    5 PORTVERSION = 3.23
    6 PERL_MAKEMAKER = yes
    7 MASTER_CPAN_SUBDIR = Test
    8
    9 include ../../etc/ports.mk
  • koi8/core/ports/etc/perl.mk

     
    5 5 PERL ?= ${shell which perl}
    6 6 PERL_LEVEL ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d%03d%02d", $$1,$$2,$$3;'}
    7 7
    8 PERL_VER = ${shell ${PERL} -e 'my ($$inc) = grep { $$_ =~ /site_perl/ } @INC; $$inc =~ /5\.(\d+)\.(\d)/ ? print "5.$$1.$$2" : $$inc =~ /5\.(\d+)/ ? print "5.$$1" : print '';'}
    8 PERL_VER = ${shell ${PERL} -e 'my ($$inc) = grep { $$_ =~ /site_perl/ } @INC; $$inc =~ /5\.(\d+)\.(\d)/ ? print "5.$$1.$$2" : $$inc =~ /5\.(\d+)/ ? print "5.$$1" : print '';'}
    9 9
    10 10 ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1)
    11 11 PERL_ARCH ?= ${shell ${PERL} -e 'use Config; print $$Config::Config{archname};'}
  • koi8/core/project-default.mk

     
    207 207 fi;}
    208 208
    209 209 COMPOSITE = ${shell export PATH=${LOCAL}/bin:$${PATH}; which composite}
    210 CONVERT = ${shell export PATH=${LOCAL}/bin:$${PATH}; which convert}
    211 ifeq (${CONVERT},)
    212 ${error ERROR: No executable convert found, you need to install ImageMagick first}
    213 endif
    210 #CONVERT = ${shell export PATH=${LOCAL}/bin:$${PATH}; which convert}
    211 #ifeq (${CONVERT},)
    212 #${error ERROR: No executable convert found, you need to install ImageMagick first}
    213 #endif