pkgsrc/mk/plist/shlib-som.awk

21 lines
436 B
Awk
Raw Normal View History

2007-04-22 21:54:44 +02:00
# $NetBSD: shlib-som.awk,v 1.3 2007/04/22 19:54:44 tnn Exp $
#
###
### PLIST shlib filter for Spectrum Object Module format, SOM, on HP-UX.
###
2007-04-22 21:54:44 +02:00
# Libtoolized packages don't need any special attention, but for others we need
# to manually deal with the .sl library suffix.
# Match shared libs
2007-04-21 16:15:59 +02:00
/.*\/lib[^\/]+\.so(\.[0-9]+)*$/ {
sub("\.so\.", ".sl.");
}
2007-04-22 21:54:44 +02:00
# Match dynamically loaded modules
/.*\.so$/ {
sub("\.so$", ".sl");
}
{
print
}