0fdfc94802
now work on pkgfs. While doing this work I added some new variables that can be used in templates: run_stuff_before="<stage>" run_stuff_after="<stage>" run_stuff_before_<stage>_file run_stuff_after_<stage>_file These can be used in a template when you need to do some stuff before or after the stage specified, and the file will be read and the commands on it executed. Now that finally perl modules work, add the following templates: intltool-0.40.4 and perl-XML-Parser-2.36. Also mktmpl.sh has been updated to understand build_style=perl_module. ENJOY! --HG-- extra : convert_revision : 53c5148f1ba703e2b5af6e43f71668aac54a37d2
12 lines
442 B
Bash
Executable file
12 lines
442 B
Bash
Executable file
# Fixup Config.pm to look at PKGFS_MASTERDIR, this helps modules
|
|
# to use correct dirs while building/installing them.
|
|
|
|
perl_version=5.10.0
|
|
perl_arch=$(uname -m)
|
|
perl_libdir=$PKGFS_DESTDIR/$pkgname/lib/perl5
|
|
config_pm=$perl_libdir/$perl_version/$perl_arch-netbsd-thread-multi/Config.pm
|
|
|
|
$sed_cmd -e "s|$PKGFS_DESTDIR\/$pkgname|$PKGFS_MASTERDIR|g" \
|
|
$config_pm > $config_pm.in
|
|
$chmod_cmd 444 $config_pm.in
|
|
$mv_cmd -f $config_pm.in $config_pm
|