More changes to {pre,post}_<stage> stuff.
Rather than using a file for stuff like this, change them to be
functions in templates. Now if any template want to use them, it
can specify for example a {pre,post}_<stage>() shell function.
Also remove some NetBSD specific stuff that is not useful anymore.
--HG--
extra : convert_revision : b7157c61c92c05904e0e4d971268e5f018db46bc
This commit is contained in:
@@ -21,3 +21,20 @@ long_desc="
|
||||
collections of third-party modules."
|
||||
|
||||
run_depends="glibc-2.8"
|
||||
|
||||
pre_build()
|
||||
{
|
||||
# This fixes the definitions that the perl binary uses to look at
|
||||
# prefix and not XBPS_DESTDIR/MASTERDIR.
|
||||
|
||||
if [ "$XBPS_DESTDIR" != "/xbps" ]; then
|
||||
sed -i -e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" \
|
||||
$wrksrc/config.h
|
||||
fi
|
||||
|
||||
sed -i -e "s|/usr/usr|/usr|g" $wrksrc/config.h
|
||||
|
||||
if [ "$XBPS_MASTERDIR" != "/" ]; then
|
||||
sed -i -e "s|$XBPS_MASTERDIR||g" $wrksrc/config.h
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user