X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fthirdparty%2FMakefile;h=9a1ceee5c385ac375c4fb9af5ac8d6ca47aafe27;hb=439d655274ef8385d20db9b75bbff63b4300ec7b;hp=492063eff0a880c793faef3fe1f73b01a8643682;hpb=7a70932d3e04454177c456d0b42ee2f5318d6ad1;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile index 492063ef..9a1ceee5 100644 --- a/cinelerra-5.1/thirdparty/Makefile +++ b/cinelerra-5.1/thirdparty/Makefile @@ -2,20 +2,20 @@ # make rules # # command uses: -# ./configure # make -clean # make # make rules -# make list # make val- # # to add a new library: -# vi configure -# add inc_ -# add add_library name -# add probe call if the library may be already in system -# fix forced_libs list: for lib in $forced_libs; do -# add dependencies (order matters): for dep in ; do +# vi ../configure.ac +# add PKG_3RD(pkg,, , , ) +# add CHECK_LIB(pkg, , , [opt libs]) if may be in system +# add CHECK_HEADERS(pkg, , <entry_pt>) to check for devel headers +# add CHECK_WANT(<want>, <title>, [ checks ]) around tests if conditional +# see openexr check for example if c++ lib +# add PKG_PROVIDE(pkg,<cond>) to instance pkg if probe succeeds +# add to exec > global_config if additional environment needed # vi Makefile # add pkg.<data> (pkg.x = .flags, .vars, .params) # add $(call rules,$(call std-build,<name>,<dep>...)) @@ -25,8 +25,18 @@ TOPDIR ?= $(CURDIR)/.. include $(TOPDIR)/global_config +-include $(TOPDIR)/cin_config BLD := $(THIRDPARTY)/build +# package build flags, if needed +# need frame pointer for debugs and helps with profiling +# NOTE: the trailing blank is MANDITORY or the builds fail +# due to bugs in the build scripts from auto* +CFLAGS_ ?= -g -O2 -fno-omit-frame-pointer +CFLAGS ?= $(CFLAGS_) +LDFLAGS += $(LDFLAGS_) +CXXFLAGS += $(CXXFLAGS_) + pkg-source=$(BLD)/$(1).source pkg-config=$(BLD)/$(1).configure pkg-built=$(BLD)/$(1).built @@ -93,7 +103,7 @@ esound.cfg_vars+= AUDIOFILE_LIBS="$(call ld_path,audiofile,libaudiofile/.libs)" esound.cfg_params= --enable-shared=no --with-pic esound.mak_vars+= CFLAGS="" esound.ldflags=" -lm -lstdc++" -faac.cfg_params= --enable-shared=no +faac.cfg_params= --enable-shared=no --without-mp4v2 faad2.cfg_params= --enable-shared=no fdk.cfg_vars= ./autogen.sh ; fdk.cfg_params= --enable-shared=no @@ -147,7 +157,10 @@ ffmpeg.cfg_params= \ cmake_config=echo "exec cmake \$$$$@ $(1)" > ./configure; chmod +x ./configure; a52dec.mak_params?= ; cd $(call bld_path,a52dec,include); ln -sf . a52dec -a52dec.cfg_vars?= CFLAGS+=" -U__FreeBSD__" +a52dec.cfg_vars?= CFLAGS+=" -U__FreeBSD__ $(call inc_path,djbfft)" LIBS+=" $(call ld_path,djbfft)" +a52dec.cfg_params?=--enable-djbfft +djbfft.cfg_vars?=echo "$(call bld_path,djbfft)" > conf-home; echo "$(CC) $(CFLAGS)" > conf-cc; echo > ./configure; chmod +x ./configure; +djbfft.mak_params?=; cd $(call bld_path,djbfft); ln -sf djbfft.a libdjbfft.a audiofile.cfg_params?=--enable-shared=no audiofile.mak_params?=LIBS="-lm -lstdc++" flac.cfg_params?= --enable-shared=no @@ -172,6 +185,7 @@ libiec61883.cfg_vars?=PKG_CONFIG_PATH=$(call bld_path,libraw1394) libiec61883.cflags?="$(call inc_path,libraw1394)" libiec61883.ldflags?="$(call ld_path,libraw1394,src/.libs)" libiec61883.cfg_params?= --enable-shared=no +libiec61883.mak_params?=; cd $(call bld_path,libiec61883,src); ln -sf . libiec61883 libjpeg.cfg_params?= --enable-shared=no libogg.cfg_params?= --enable-shared=no libraw1394.cfg_params?= --enable-shared=no; ln -sf src libraw1394 @@ -215,7 +229,8 @@ else rules=$(eval $(1)) endif -$(call rules,$(call std-build,a52dec)) +$(call rules,$(call std-build,a52dec,djbfft)) +$(call rules,$(call std-build,djbfft)) $(call rules,$(call std-build,audiofile)) $(call rules,$(call std-build,encore)) $(call rules,$(call std-build,esound,audiofile)) @@ -229,9 +244,9 @@ $(call rules,$(call std-build,giflib)) $(call rules,$(call std-build,ilmbase)) $(call rules,$(call std-build,ladspa)) $(call rules,$(call std-build,lame)) -$(call rules,$(call std-build,libavc1394)) +$(call rules,$(call std-build,libavc1394,libraw1394)) $(call rules,$(call std-build,libdv)) -$(call rules,$(call std-build,libiec61883)) +$(call rules,$(call std-build,libiec61883,libraw1394)) $(call rules,$(call std-build,libjpeg)) $(call rules,$(call std-build,libogg)) $(call rules,$(call std-build,libraw1394))