Skip to content

Commit

Permalink
Revert "Makefile, pkg-config: Add INCLUDE_PREFIX variable, use includ…
Browse files Browse the repository at this point in the history
…e/openh264 as default, include correct default for pkg-config (#3415)" (#3488)

This reverts commit ccf65bc.

This change broke the existing official way of including the headers.
  • Loading branch information
mstorsjo authored Mar 21, 2022
1 parent 5e02a73 commit b3ed70d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ CFLAGS_DEBUG=-g
BUILDTYPE=Release
V=Yes
PREFIX=/usr/local
INCLUDE_PREFIX=$(PREFIX)/include/openh264
SHARED=-shared
OBJ=o
DESTDIR=
Expand Down Expand Up @@ -293,8 +292,8 @@ $(PROJECT_NAME)-static.pc: $(PROJECT_NAME).pc.in
@sed -e 's;@prefix@;$(PREFIX);' -e 's;@libdir@;$(PREFIX)/lib;' -e 's;@VERSION@;$(FULL_VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $< > $@

install-headers:
mkdir -p $(DESTDIR)$(INCLUDE_PREFIX)
install -m 644 $(SRC_PATH)/codec/api/svc/codec*.h $(DESTDIR)$(INCLUDE_PREFIX)
mkdir -p $(DESTDIR)$(PREFIX)/include/wels
install -m 644 $(SRC_PATH)/codec/api/svc/codec*.h $(DESTDIR)$(PREFIX)/include/wels

install-static-lib: $(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX) install-headers
mkdir -p $(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)
Expand Down
2 changes: 1 addition & 1 deletion openh264.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix=@prefix@
libdir=@libdir@
includedir=${prefix}/include/openh264
includedir=${prefix}/include

Name: OpenH264
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.
Expand Down

0 comments on commit b3ed70d

Please sign in to comment.