]> git.sesse.net Git - vlc/commitdiff
contrib: enable contrib from (VLC) builddir subdirectory
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 6 Jul 2011 09:33:31 +0000 (12:33 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 6 Jul 2011 15:54:15 +0000 (18:54 +0300)
As we need to build contrib before running configure, this remains a
little bit awkward:
 # cd builddir
 # mkdir contrib
 # cd contrib
 # ../../contrib/bootstrap
 # make

Also get rid of "hosts/" in the install prefix. Because I can.

contrib/bootstrap
contrib/hosts/.gitignore [deleted file]
contrib/src/main.mak

index d2796668112b2b2dcc89ccc55575525267c4e4b1..78b6f49d229439f2d8c1e420e3c73f45a22de6aa 100755 (executable)
@@ -38,7 +38,7 @@ PKGS_DISABLE=
 BUILD_ENCODERS="1"
 BUILD_DISCS="1"
 
-if test ! -f "../src/main.mak"
+if test ! -f "../../contrib/src/main.mak"
 then
        echo "$0 must be run from a subdirectory"
        exit 1
@@ -170,7 +170,7 @@ esac
 # Results output
 #
 test -e Makefile && unlink Makefile
-ln -sf ../src/main.mak Makefile
+ln -sf ../../contrib/src/main.mak Makefile
 cat << EOF
 Bootstrap completed.
 
diff --git a/contrib/hosts/.gitignore b/contrib/hosts/.gitignore
deleted file mode 100644 (file)
index e05e3c1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-*-*
index 66ba274afb92233237472905d6f2703d61ac90d3..f868f454529fab6d2b649f220bfe2612f8fd3562 100644 (file)
@@ -5,9 +5,15 @@
 
 all: install
 
-PKGS_ALL := $(patsubst ../src/%/rules.mak,%,$(wildcard ../src/*/rules.mak))
-SRC := ../src
-TARBALLS := ../tarballs
+# bootstrap configuration
+include config.mak
+
+TOPSRC ?= ../../contrib
+TOPDST ?= ..
+SRC := $(TOPSRC)/src
+TARBALLS := $(TOPSRC)/tarballs
+
+PKGS_ALL := $(patsubst $(SRC)/%/rules.mak,%,$(wildcard $(SRC)/*/rules.mak))
 DATE := $(shell date +%Y%m%d)
 VPATH := $(TARBALLS)
 
@@ -17,13 +23,10 @@ SF := http://heanet.dl.sourceforge.net/sourceforge
 VIDEOLAN := http://downloads.videolan.org/pub/videolan
 CONTRIB_VIDEOLAN := $(VIDEOLAN)/testing/contrib
 
-# bootstrap configuration
-include config.mak
-
 #
 # Machine-dependent variables
 #
-PREFIX ?= ../hosts/$(HOST)
+PREFIX ?= $(TOPDST)/$(HOST)
 PREFIX := $(abspath $(PREFIX))
 ifneq ($(HOST),$(BUILD))
 HAVE_CROSS_COMPILE = 1
@@ -188,7 +191,7 @@ CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \
 # Per-package build rules
 #
 PKGS_FOUND :=
-include ../src/*/rules.mak
+include $(SRC)/*/rules.mak
 
 #
 # Targets