summaryrefslogtreecommitdiff
path: root/mk/plist/shlib-pe.awk
blob: 0f6f152b0a53c7c304db80dbc81af276ad02d863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: shlib-pe.awk,v 1.1 2013/02/10 12:03:00 obache Exp $
#
### 
### PLIST shlib filter for Portable Executable format, PE on Cygwin.
###

# Libtoolized packages don't need any special attention, but for others we need
# to manually deal with the .dll library suffix.

# Match shared libs
/.*\/lib[^\/]+\.so(\.[0-9]+)*$/ {
	sub("\.so\.", ".dll.");
}
# Match dynamically loaded modules
/.*\.so$/ {
	sub("\.so$", ".dll");
}
{
	print
}