perl: dependencies, grooming
parent
5567bb01a4
commit
f6b97dce1d
|
@ -2,18 +2,56 @@ name: perl
|
||||||
version: 5.30.0
|
version: 5.30.0
|
||||||
release: 1
|
release: 1
|
||||||
sources: https://www.cpan.org/src/5.0/perl-%{version}.tar.gz
|
sources: https://www.cpan.org/src/5.0/perl-%{version}.tar.gz
|
||||||
|
build-dependencies:
|
||||||
|
- zlib-dev
|
||||||
|
- bzip2-dev
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- zlib
|
- zlib
|
||||||
- bzip2
|
- bzip2
|
||||||
|
|
||||||
|
@configure
|
||||||
|
set -e -x
|
||||||
|
cd perl-%{version}
|
||||||
|
BUILD_ZLIB=0
|
||||||
|
BUILD_BZIP2=0
|
||||||
|
BZIP2_LIB=/usr/lib
|
||||||
|
BZIP2_INCLUDE=/usr/include
|
||||||
|
export BUILD_ZLIB BUILD_BZIP2 BZIP2_LIB BZIP2_INCLUDE
|
||||||
|
./Configure -des -Dcccdlflags='-fPIC' \
|
||||||
|
-Dcccdlflags='-fPIC' \
|
||||||
|
-Dccdlflags='-rdynamic' \
|
||||||
|
-Dprefix=/usr \
|
||||||
|
-Uprivlib=$_privlib \
|
||||||
|
-Darchlib=$_archlib \
|
||||||
|
-Dvendorprefix=/usr \
|
||||||
|
-Dvendorlib=/usr/share/perl5/vendor_perl \
|
||||||
|
-Dvendorarch=/usr/lib/perl5/vendor_perl \
|
||||||
|
-Dsiteprefix=/usr/local \
|
||||||
|
-Dsitelib=/usr/local/share/perl5/site_perl \
|
||||||
|
-Dsitearch=/usr/local/lib/perl5/site_perl \
|
||||||
|
-Dlocincpth=' ' \
|
||||||
|
-Dcc=gcc \
|
||||||
|
-Uoptimize="$CFLAGS" \
|
||||||
|
-Duselargefiles -Dusethreads \
|
||||||
|
-Duseshrplib \
|
||||||
|
-Dd_semctl_semun \
|
||||||
|
-Dman1dir=/usr/share/man/man1 \
|
||||||
|
-Dman3dir=/usr/share/man/man3 \
|
||||||
|
-Dinstallman1dir=/usr/share/man/man1 \
|
||||||
|
-Dinstallman3dir=/usr/share/man/man3 \
|
||||||
|
-Dman1ext='1' \
|
||||||
|
-Dman3ext='3pm' \
|
||||||
|
-Dcf_by='Alpine' \
|
||||||
|
-Ud_csh -Dusenm || return 1
|
||||||
|
|
||||||
@build
|
@build
|
||||||
set -e -x;
|
set -e -x
|
||||||
cd perl-%{version};
|
cd perl-%{version}
|
||||||
BUILD_ZLIB=0;
|
BUILD_ZLIB=0
|
||||||
BUILD_BZIP2=0;
|
BUILD_BZIP2=0
|
||||||
BZIP2_LIB=/usr/lib;
|
BZIP2_LIB=/usr/lib
|
||||||
BZIP2_INCLUDE=/usr/inculde;
|
BZIP2_INCLUDE=/usr/include
|
||||||
export BUILD_ZLIB BUILD_BZIP2 BZIP2_LIB BZIP2_INCLUDE;
|
export BUILD_ZLIB BUILD_BZIP2 BZIP2_LIB BZIP2_INCLUDE
|
||||||
./Configure -des -Dcccdlflags='-fPIC' -Dcccdlflags='-fPIC' -Dccdlflags='-rdynamic' -Dprefix=/usr -Uprivlib=$_privlib -Darchlib=$_archlib -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/vendor_perl -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5/site_perl -Dsitearch=/usr/local/lib/perl5/site_perl -Dlocincpth=' ' -Dcc=gcc -Uoptimize="$CFLAGS" -Duselargefiles -Dusethreads -Duseshrplib -Dd_semctl_semun -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/usr/share/man/man3 -Dman1ext='1' -Dman3ext='3pm' -Dcf_by='Alpine' -Ud_csh -Dusenm || return 1
|
|
||||||
make libperl.so && make || return 1
|
make libperl.so && make || return 1
|
||||||
|
|
||||||
|
|
Reference in New Issue