1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Simplify header installation.

Originally committed as revision 4986 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2006-02-11 19:30:55 +00:00
parent 1d67a1d46f
commit dc2a1ce5c0
5 changed files with 11 additions and 28 deletions

View File

@ -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

View File

@ -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

View File

@ -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
#

View File

@ -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 $@ $<

View File

@ -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