Commit 8a36e6bc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: enable contrib from (VLC) builddir subdirectory

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.
parent 03bbc76f
...@@ -38,7 +38,7 @@ PKGS_DISABLE= ...@@ -38,7 +38,7 @@ PKGS_DISABLE=
BUILD_ENCODERS="1" BUILD_ENCODERS="1"
BUILD_DISCS="1" BUILD_DISCS="1"
if test ! -f "../src/main.mak" if test ! -f "../../contrib/src/main.mak"
then then
echo "$0 must be run from a subdirectory" echo "$0 must be run from a subdirectory"
exit 1 exit 1
...@@ -170,7 +170,7 @@ esac ...@@ -170,7 +170,7 @@ esac
# Results output # Results output
# #
test -e Makefile && unlink Makefile test -e Makefile && unlink Makefile
ln -sf ../src/main.mak Makefile ln -sf ../../contrib/src/main.mak Makefile
cat << EOF cat << EOF
Bootstrap completed. Bootstrap completed.
......
...@@ -5,9 +5,15 @@ ...@@ -5,9 +5,15 @@
all: install all: install
PKGS_ALL := $(patsubst ../src/%/rules.mak,%,$(wildcard ../src/*/rules.mak)) # bootstrap configuration
SRC := ../src include config.mak
TARBALLS := ../tarballs
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) DATE := $(shell date +%Y%m%d)
VPATH := $(TARBALLS) VPATH := $(TARBALLS)
...@@ -17,13 +23,10 @@ SF := http://heanet.dl.sourceforge.net/sourceforge ...@@ -17,13 +23,10 @@ SF := http://heanet.dl.sourceforge.net/sourceforge
VIDEOLAN := http://downloads.videolan.org/pub/videolan VIDEOLAN := http://downloads.videolan.org/pub/videolan
CONTRIB_VIDEOLAN := $(VIDEOLAN)/testing/contrib CONTRIB_VIDEOLAN := $(VIDEOLAN)/testing/contrib
# bootstrap configuration
include config.mak
# #
# Machine-dependent variables # Machine-dependent variables
# #
PREFIX ?= ../hosts/$(HOST) PREFIX ?= $(TOPDST)/$(HOST)
PREFIX := $(abspath $(PREFIX)) PREFIX := $(abspath $(PREFIX))
ifneq ($(HOST),$(BUILD)) ifneq ($(HOST),$(BUILD))
HAVE_CROSS_COMPILE = 1 HAVE_CROSS_COMPILE = 1
...@@ -188,7 +191,7 @@ CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \ ...@@ -188,7 +191,7 @@ CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \
# Per-package build rules # Per-package build rules
# #
PKGS_FOUND := PKGS_FOUND :=
include ../src/*/rules.mak include $(SRC)/*/rules.mak
# #
# Targets # Targets
......
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