app-admin/awscli: Bump to 1.37.9
[gentoo/gentoo.git] / media-libs / openh264 / files / openh264-2.3.0-pkgconfig-pathfix.patch
blobb36aad74e7b471865860353a6bfadd6d627f191d
1 diff -Naur a/Makefile b/Makefile
2 --- a/Makefile 2022-06-10 04:51:46.000000000 +0300
3 +++ b/Makefile 2022-08-01 10:28:52.698923925 +0300
4 @@ -27,6 +27,7 @@
5 DESTDIR=
6 LIBDIR_NAME=lib
7 SHAREDLIB_DIR=$(PREFIX)/lib
8 +INCLUDES_DIR=$(PREFIX)/include
9 PROJECT_NAME=openh264
10 MODULE_NAME=gmpopenh264
11 GMP_API_BRANCH=Firefox39
12 @@ -286,14 +287,14 @@
13 endif
15 $(PROJECT_NAME).pc: $(PROJECT_NAME).pc.in
16 - @sed -e 's;@prefix@;$(PREFIX);' -e 's;@libdir@;$(PREFIX)/lib;' -e 's;@VERSION@;$(FULL_VERSION);' -e 's;@LIBS@;;' -e 's;@LIBS_PRIVATE@;$(STATIC_LDFLAGS);' < $< > $@
17 + @sed -e 's;@prefix@;$(PREFIX);' -e 's;@libdir@;$(SHAREDLIB_DIR);' -e 's;@includesdir@;$(INCLUDES_DIR);' -e 's;@VERSION@;$(FULL_VERSION);' -e 's;@LIBS@;;' -e 's;@LIBS_PRIVATE@;$(STATIC_LDFLAGS);' < $< > $@
19 $(PROJECT_NAME)-static.pc: $(PROJECT_NAME).pc.in
20 - @sed -e 's;@prefix@;$(PREFIX);' -e 's;@libdir@;$(PREFIX)/lib;' -e 's;@VERSION@;$(FULL_VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $< > $@
21 + @sed -e 's;@prefix@;$(PREFIX);' -e 's;@libdir@;$(SHAREDLIB_DIR);' -e 's;@includesdir@;$(INCLUDES_DIR);' -e 's;@VERSION@;$(FULL_VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $< > $@
23 install-headers:
24 - mkdir -p $(DESTDIR)$(PREFIX)/include/wels
25 - install -m 644 $(SRC_PATH)/codec/api/wels/codec*.h $(DESTDIR)$(PREFIX)/include/wels
26 + mkdir -p $(DESTDIR)$(INCLUDES_DIR)/wels
27 + install -m 644 $(SRC_PATH)/codec/api/wels/codec*.h $(DESTDIR)$(INCLUDES_DIR)/wels
29 install-static-lib: $(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX) install-headers
30 mkdir -p $(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)
31 diff -Naur a/openh264.pc.in b/openh264.pc.in
32 --- a/openh264.pc.in 2022-06-10 04:51:46.000000000 +0300
33 +++ b/openh264.pc.in 2022-08-01 10:38:28.231850059 +0300
34 @@ -1,6 +1,6 @@
35 prefix=@prefix@
36 libdir=@libdir@
37 -includedir=${prefix}/include
38 +includedir=@includesdir@
40 Name: OpenH264
41 Description: OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC.