Commit dc2a1ce5 authored by Diego Biurrun's avatar Diego Biurrun

Simplify header installation.

Originally committed as revision 4986 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1d67a1d4
......@@ -149,6 +149,8 @@ ifeq ($(BUILD_STATIC),yes)
endif
install-headers:
install -d "$(incdir)"
install -d "$(libdir)/pkgconfig"
$(MAKE) -C libavutil install-headers
$(MAKE) -C libavcodec install-headers
$(MAKE) -C libavformat install-headers
......
......@@ -525,13 +525,8 @@ ifeq ($(CONFIG_PP),yes)
endif
install-headers:
mkdir -p "$(prefix)/include/ffmpeg"
install -m 644 $(SRC_PATH)/libavcodec/avcodec.h \
"$(prefix)/include/ffmpeg"
install -m 644 $(SRC_PATH)/libavcodec/dsputil.h \
"$(prefix)/include/ffmpeg"
install -d "$(libdir)/pkgconfig"
install -m 644 ../libavcodec.pc "$(libdir)/pkgconfig"
install -m 644 avcodec.h dsputil.h "$(incdir)"
install -m 644 $(SRC_PATH)/libavcodec.pc "$(libdir)/pkgconfig"
ifeq ($(CONFIG_PP),yes)
$(MAKE) -C libpostproc $@
endif
......
......@@ -65,10 +65,8 @@ install-lib-static: $(LIB)
install -m 644 $(LIB) "$(libdir)"
install-headers:
mkdir -p $(prefix)/include/postproc
install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
install -d $(libdir)/pkgconfig
install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
install -m 644 $postprocess.h $(prefix)/include/postproc/postprocess.h
install -m 644 $(SRC_PATH)/libpostproc.pc $(libdir)/pkgconfig
#
......
......@@ -141,13 +141,8 @@ install-lib-static: $(LIB)
install -m 644 $(LIB) "$(libdir)"
install-headers:
mkdir -p "$(prefix)/include/ffmpeg"
install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
$(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
$(SRC_PATH)/libavformat/rtspcodes.h \
"$(prefix)/include/ffmpeg"
install -d "$(libdir)/pkgconfig"
install -m 644 ../libavformat.pc "$(libdir)/pkgconfig"
install -m 644 avformat.h avio.h rtp.h rtsp.h rtspcodes.h "$(prefix)/include/ffmpeg"
install -m 644 $(SRC_PATH)/libavformat.pc "$(libdir)/pkgconfig"
%.o: %.c
$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
......
......@@ -76,16 +76,9 @@ install-lib-static: $(LIB)
install -m 644 $(LIB) "$(libdir)"
install-headers:
mkdir -p "$(prefix)/include/ffmpeg"
install -m 644 $(SRC_PATH)/libavutil/avutil.h \
$(SRC_PATH)/libavutil/common.h \
$(SRC_PATH)/libavutil/mathematics.h \
$(SRC_PATH)/libavutil/integer.h \
$(SRC_PATH)/libavutil/rational.h \
$(SRC_PATH)/libavutil/intfloat_readwrite.h \
"$(prefix)/include/ffmpeg"
install -d "$(libdir)/pkgconfig"
install -m 644 ../libavutil.pc "$(libdir)/pkgconfig"
install -m 644 avutil.h common.h mathematics.h integer.h \
rational.h intfloat_readwrite.h "$(incdir)"
install -m 644 $(SRC_PATH)/libavutil.pc "$(libdir)/pkgconfig"
#
# include dependency files if they exist
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment