Commit 24deda44 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: helper macro for autoreconf

parent 29999684
...@@ -19,7 +19,7 @@ endif ...@@ -19,7 +19,7 @@ endif
.a52: a52dec .a52: a52dec
ifdef HAVE_WIN64 ifdef HAVE_WIN64
cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS) $(RECONF)
endif endif
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
cd $</liba52 && $(MAKE) install cd $</liba52 && $(MAKE) install
......
...@@ -16,7 +16,7 @@ libass: libass-$(ASS_VERSION).tar.gz .sum-ass ...@@ -16,7 +16,7 @@ libass: libass-$(ASS_VERSION).tar.gz .sum-ass
#TODO .fontconfig #TODO .fontconfig
.ass: libass .freetype2 .ass: libass .freetype2
#cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS) #$(RECONF)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure $(HOSTCONF) --disable-png --disable-enca cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure $(HOSTCONF) --disable-png --disable-enca
cd $< && $(MAKE) install cd $< && $(MAKE) install
touch $@ touch $@
...@@ -22,7 +22,7 @@ endif ...@@ -22,7 +22,7 @@ endif
$(MOVE) $(MOVE)
.faad2: faad2 .faad2: faad2
cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS) $(RECONF)
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CFLAGS="$(NOTHUMB)" cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CFLAGS="$(NOTHUMB)"
cd $< && sed -i.orig "s/shrext_cmds/shrext/g" libtool cd $< && sed -i.orig "s/shrext_cmds/shrext/g" libtool
cd $</libfaad && $(MAKE) install cd $</libfaad && $(MAKE) install
......
...@@ -181,6 +181,7 @@ UNPACK_DIR = $(basename $(basename $(notdir $<))) ...@@ -181,6 +181,7 @@ UNPACK_DIR = $(basename $(basename $(notdir $<)))
APPLY = (cd $(UNPACK_DIR) && patch -p1) < APPLY = (cd $(UNPACK_DIR) && patch -p1) <
MOVE = mv $(UNPACK_DIR) $@ && touch $@ MOVE = mv $(UNPACK_DIR) $@ && touch $@
RECONF = cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS)
CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \ CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \
-DCMAKE_INSTALL_PREFIX=$(PREFIX) -DCMAKE_INSTALL_PREFIX=$(PREFIX)
......
...@@ -27,7 +27,7 @@ else ...@@ -27,7 +27,7 @@ else
PKGS += ogg PKGS += ogg
.ogg: libogg .ogg: libogg
#cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS) #$(RECONF)
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
cd $< && $(MAKE) install cd $< && $(MAKE) install
endif endif
......
...@@ -14,9 +14,7 @@ $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz: ...@@ -14,9 +14,7 @@ $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
libtheora: libtheora-$(THEORA_VERSION).tar.xz .sum-theora libtheora: libtheora-$(THEORA_VERSION).tar.xz .sum-theora
$(UNPACK) $(UNPACK)
$(APPLY) $(SRC)/theora/libtheora-includes.patch $(APPLY) $(SRC)/theora/libtheora-includes.patch
ifdef HAVE_WIN64 echo 'ACLOCAL_AMFLAGS = -I m4' >> $(UNPACK_DIR)/Makefile.am
cd $(UNPACK_DIR) && autoreconf -fi -I m4 $(ACLOCAL_AMFLAGS)
endif
$(MOVE) $(MOVE)
THEORACONF := $(HOSTCONF) \ THEORACONF := $(HOSTCONF) \
...@@ -41,9 +39,8 @@ endif ...@@ -41,9 +39,8 @@ endif
.theora: libtheora .ogg .theora: libtheora .ogg
ifdef HAVE_WIN32 ifdef HAVE_WIN32
cd $<; $(HOSTVARS) ./autogen.sh $(THEORACONF) $(RECONF)
endif endif
test -f $</config.status || \ cd $< && $(HOSTVARGS) ./configure $(THEORACONF)
(cd $< && $(HOSTVARGS) ./configure $(THEORACONF))
cd $< && $(MAKE) install cd $< && $(MAKE) install
touch $@ touch $@
...@@ -18,7 +18,7 @@ libtiger: libtiger-$(TIGER_VERSION).tar.gz .sum-tiger ...@@ -18,7 +18,7 @@ libtiger: libtiger-$(TIGER_VERSION).tar.gz .sum-tiger
$(MOVE) $(MOVE)
.tiger: libtiger .kate .tiger: libtiger .kate
cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS) $(RECONF)
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-doc cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-doc
cd $< && $(MAKE) install cd $< && $(MAKE) install
touch $@ touch $@
...@@ -24,7 +24,7 @@ tremor: tremor-svn.tar.xz .sum-tremor ...@@ -24,7 +24,7 @@ tremor: tremor-svn.tar.xz .sum-tremor
.tremor: tremor .ogg .tremor: tremor .ogg
# Stuff that depends on libogg # Stuff that depends on libogg
cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS) $(RECONF)
cd $< && \ cd $< && \
$(HOSTVARS) CFLAGS="$(CFLAGS) $(NOTHUMB)" ./configure $(HOSTCONF) $(HOSTVARS) CFLAGS="$(CFLAGS) $(NOTHUMB)" ./configure $(HOSTCONF)
cd $< && $(MAKE) install cd $< && $(MAKE) install
......
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