1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- fix sed(1) usage

233460
 Jan Beich
PR:		233460
Submitted by:	Jan Beich
Reported by:	Kyle Evans
This commit is contained in:
Dirk Meyer 2018-11-26 09:43:28 +00:00
parent bbfcfcafdf
commit 58514d9eca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=485935

View File

@ -20,3 +20,12 @@
PKGCONFIGDIR = $(INSTALLDIRLIB)/pkgconfig
FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
@@ -229,7 +228,7 @@ distclean: clean
updateversion: miniupnpc.h
cp miniupnpc.h miniupnpc.h.bak
- sed 's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\1$(APIVERSION)/' < miniupnpc.h.bak > miniupnpc.h
+ sed -E 's/(.*MINIUPNPC_API_VERSION[[:space:]]+)[0-9]+/\1$(APIVERSION)/' < miniupnpc.h.bak > miniupnpc.h
install: updateversion $(FILESTOINSTALL)
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC)