net-libs/usockets: rename pkgconfig file

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
Aisha Tammy
2021-05-09 07:58:16 -04:00
parent 4088755117
commit 835fcaa403
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
diff --git a/Makefile b/Makefile
index 9b54cac..c31e575 100644
index 9b54cac..a610bcc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,60 +1,59 @@
@@ -86,7 +86,7 @@ index 9b54cac..c31e575 100644
+ $(AR) rvs libusockets.a *.o
+ $(CC) -shared -o $(LIBTARGET) *.o -Wl,-soname,$(LIBTARGET) `$(PKG_CONFIG) --libs $(REQUIRES)` $(LDFLAGS)
+ sed -e "s:@PREFIX@:$(prefix):" -e "s:@REQUIRES@:$(REQUIRES):" \
+ -e "s:@LIB@:$(LIB):" -e "s:@VERSION@:$(VERSION):" libusockets.pc.in > libusockets.pc
+ -e "s:@LIB@:$(LIB):" -e "s:@VERSION@:$(VERSION):" usockets.pc.in > usockets.pc
+
+install:
+ install -d "$(DESTDIR)$(libdir)/pkgconfig" "$(DESTDIR)$(includedir)"
@@ -94,7 +94,7 @@ index 9b54cac..c31e575 100644
+ install -m 755 $(LIBTARGET) "$(DESTDIR)$(libdir)"
+ ln -sf $(LIBTARGET) "$(DESTDIR)$(libdir)/libusockets.so"
+ install -m 755 libusockets.a "$(DESTDIR)$(libdir)/"
+ install -m 644 libusockets.pc "$(DESTDIR)$(libdir)/pkgconfig/"
+ install -m 644 usockets.pc "$(DESTDIR)$(libdir)/pkgconfig/"
clean:
rm -f *.o
@@ -104,11 +104,11 @@ index 9b54cac..c31e575 100644
+ rm -f libusockets.pc
+
+.PHONY: default install clean
diff --git a/libusockets.pc.in b/libusockets.pc.in
diff --git a/usockets.pc.in b/usockets.pc.in
new file mode 100644
index 0000000..b818020
--- /dev/null
+++ b/libusockets.pc.in
+++ b/usockets.pc.in
@@ -0,0 +1,12 @@
+prefix=@PREFIX@
+libdir=${prefix}/@LIB@