summaryrefslogtreecommitdiffstats
path: root/make/include/main.defs
diff options
context:
space:
mode:
authorkonablend <[email protected]>2012-09-07 20:10:37 +0000
committerkonablend <[email protected]>2012-09-07 20:10:37 +0000
commit421129c9b2ae62557ef0afdcd82c0da750a1e000 (patch)
tree65d216511b3686c6c4ca268adc2d0b0f946245f2 /make/include/main.defs
parentf5bd3741a9df3d157a223650740bc0510cf1e18a (diff)
Add autotools { autoconf, automake, libtool } as contribs.
Primarily necessary for OSX platform after Xcode 4.2.x, but also useful for any platform which is missing or has obsolete versions. 1. add configure option: --enable-local-autotools 2. --enable-local-autotools is automatically TRUE when any of { autoconf, automake, libtool } are not found in path. 3. --enable-local-autotools causes contribs of { m4, autoconf, automake, lib tool } to be built 4. add m4 to contrib (prerequisite for autoconf) 5. add autoconf to contrib (prerequisite for automaker and many contribs) 6. add automake to contrib (prerequisite for many contribs) 7. add libtool to contrib (prerequisite for many contribs) 8. All contribs (except the autotools themselves) automatically mark autotools as a prerequisite. 9. $(AUTOTOOL_MODULES) is available if other non-contrib modules need to mark as prerequisite. 10. PATH is automatically prefixed with contrib/bin for all modules, all targets. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4933 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'make/include/main.defs')
-rw-r--r--make/include/main.defs12
1 files changed, 11 insertions, 1 deletions
diff --git a/make/include/main.defs b/make/include/main.defs
index df81a0fda..ff6e73f2a 100644
--- a/make/include/main.defs
+++ b/make/include/main.defs
@@ -8,6 +8,17 @@ include $(SRC/)make/include/tool.defs
###############################################################################
+ifeq (1,$(FEATURE.local_autotools))
+ MODULES += contrib/autoconf
+ MODULES += contrib/automake
+ MODULES += contrib/libtool
+ MODULES += contrib/m4
+ AUTOTOOL_MODULES = AUTOCONF AUTOMAKE LIBTOOL M4
+ PATH := $(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)
+else
+ AUTOTOOL_MODULES =
+endif
+
MODULES += contrib/a52dec
ifneq (,$(filter $(BUILD.system),cygwin mingw))
@@ -20,7 +31,6 @@ ifneq (,$(filter $(BUILD.system),darwin cygwin mingw))
MODULES += contrib/fribidi
endif
-
MODULES += contrib/faac
MODULES += contrib/ffmpeg
MODULES += contrib/fontconfig