Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
733e0bbc
Commit
733e0bbc
authored
Nov 05, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: Use hint_distro when setting contrib.
This will not override a previous hint_distro.
parent
3044b1c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
extras/contrib/bootstrap
extras/contrib/bootstrap
+21
-13
No files found.
extras/contrib/bootstrap
View file @
733e0bbc
...
@@ -59,6 +59,13 @@ info()
...
@@ -59,6 +59,13 @@ info()
}
}
DISTRO
=
DISTRO
=
hint_distro
()
{
# Give a hint about the auto detected distro
if
test
-z
"
${
DISTRO
}
"
;
then
DISTRO
=
"
$1
"
;
fi
}
BUILDDIR
=
.
BUILDDIR
=
.
while
getopts
"ht:d:b:i:"
OPTION
while
getopts
"ht:d:b:i:"
OPTION
...
@@ -190,6 +197,7 @@ case $TARGET in
...
@@ -190,6 +197,7 @@ case $TARGET in
;;
;;
esac
esac
# Figure out the correct distro to use
case
$TARGET
in
case
$TARGET
in
ppc-darwin|
*
-apple-darwin8
)
ppc-darwin|
*
-apple-darwin8
)
error
"Your version of Mac OS X is too old!"
error
"Your version of Mac OS X is too old!"
...
@@ -197,7 +205,7 @@ case $TARGET in
...
@@ -197,7 +205,7 @@ case $TARGET in
exit
1
exit
1
;;
;;
powerpc-apple-darwin9
)
powerpc-apple-darwin9
)
DISTRO
=
darwin
hint_distro
darwin
HAVE_DARWIN_32
=
1
HAVE_DARWIN_32
=
1
CFLAGS_TUNING
=
" -arch ppc -mtune=G4"
CFLAGS_TUNING
=
" -arch ppc -mtune=G4"
...
@@ -207,7 +215,7 @@ case $TARGET in
...
@@ -207,7 +215,7 @@ case $TARGET in
LD
=
"ld -arch ppc -syslibroot
\$
{MACOSX_SDK} -mmacosx-version-min=
\$
{SDK_TARGET}"
LD
=
"ld -arch ppc -syslibroot
\$
{MACOSX_SDK} -mmacosx-version-min=
\$
{SDK_TARGET}"
;;
;;
i686-apple-darwin
*
)
i686-apple-darwin
*
)
DISTRO
=
darwin
hint_distro
darwin
HAVE_DARWIN_32
=
1
HAVE_DARWIN_32
=
1
CFLAGS_TUNING
=
" -march=prescott -mtune=generic -arch i386 -m32"
CFLAGS_TUNING
=
" -march=prescott -mtune=generic -arch i386 -m32"
...
@@ -219,7 +227,7 @@ case $TARGET in
...
@@ -219,7 +227,7 @@ case $TARGET in
fi
fi
;;
;;
x86_64-apple-darwin
*
)
x86_64-apple-darwin
*
)
DISTRO
=
darwin64
hint_distro
darwin64
HAVE_DARWIN_64
=
1
HAVE_DARWIN_64
=
1
CFLAGS_TUNING
=
" -march=core2 -mtune=core2 -m64 -arch x86_64"
CFLAGS_TUNING
=
" -march=core2 -mtune=core2 -m64 -arch x86_64"
...
@@ -240,18 +248,18 @@ case $TARGET in
...
@@ -240,18 +248,18 @@ case $TARGET in
*
mingw32ce
)
*
mingw32ce
)
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
EXTRA_CPPFLAGS
=
" -D_WIN32_WCE=0x0500"
EXTRA_CPPFLAGS
=
" -D_WIN32_WCE=0x0500"
DISTRO
=
wince
hint_distro
wince
;;
;;
*
64-
*
mingw
*
)
*
64-
*
mingw
*
)
add_makefile_cfg
"HAVE_WIN32 = 1"
add_makefile_cfg
"HAVE_WIN32 = 1"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
EXTRA_CFLAGS
=
"-O3"
EXTRA_CFLAGS
=
"-O3"
DISTRO
=
win64
hint_distro
win64
;;
;;
*
mingw32
*
)
*
mingw32
*
)
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
EXTRA_CFLAGS
=
" -O3 -march=i686 -mtune=generic"
EXTRA_CFLAGS
=
" -O3 -march=i686 -mtune=generic"
DISTRO
=
win32
hint_distro
win32
;;
;;
i686-pc-cygwin
)
i686-pc-cygwin
)
add_makefile_cfg
"HAVE_CYGWIN = 1"
add_makefile_cfg
"HAVE_CYGWIN = 1"
...
@@ -262,12 +270,12 @@ case $TARGET in
...
@@ -262,12 +270,12 @@ case $TARGET in
EXTRA_CPPFLAGS
=
" -mno-cygwin -isystem /usr/include/mingw"
EXTRA_CPPFLAGS
=
" -mno-cygwin -isystem /usr/include/mingw"
EXTRA_LDFLAGS
=
" -mno-cygwin"
EXTRA_LDFLAGS
=
" -mno-cygwin"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
DISTRO
=
win32
hint_distro
win32
;;
;;
arm-wince-pe
)
arm-wince-pe
)
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
EXTRA_CPPFLAGS
=
" -D_WIN32_WCE"
EXTRA_CPPFLAGS
=
" -D_WIN32_WCE"
DISTRO
=
wince
hint_distro
wince
;;
;;
armeb-linux-uclibc
)
armeb-linux-uclibc
)
add_makefile_cfg
"HAVE_UCLIBC = 1"
add_makefile_cfg
"HAVE_UCLIBC = 1"
...
@@ -276,7 +284,7 @@ case $TARGET in
...
@@ -276,7 +284,7 @@ case $TARGET in
;;
;;
arm-none-linux-gnueabi
)
arm-none-linux-gnueabi
)
if
test
-f
/etc/maemo_version
;
then
if
test
-f
/etc/maemo_version
;
then
DISTRO
=
maemo
hint_distro
maemo
EXTRA_CFLAGS
=
" -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a"
EXTRA_CFLAGS
=
" -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-mfpu=neon -mfloat-abi=softfp"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-mfpu=neon -mfloat-abi=softfp"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-O3 -fno-tree-vectorize"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-O3 -fno-tree-vectorize"
...
@@ -309,17 +317,17 @@ if test -z "${DISTRO}" -a "$TARGET" = "$BUILD"; then
...
@@ -309,17 +317,17 @@ if test -z "${DISTRO}" -a "$TARGET" = "$BUILD"; then
fi
fi
# Try to match distribution
# Try to match distribution
if
test
-f
/etc/fedora-release
;
then
if
test
-f
/etc/fedora-release
;
then
DISTRO
=
fedora
hint_distro
fedora
elif
test
-f
/etc/maemo_version
;
then
elif
test
-f
/etc/maemo_version
;
then
DISTRO
=
maemo
hint_distro
maemo
elif
test
-f
/etc/debian_version
;
then
elif
test
-f
/etc/debian_version
;
then
# NOTE: check for Debian *after* its derivatives
# NOTE: check for Debian *after* its derivatives
DISTRO
=
debian
hint_distro
debian
fi
fi
fi
fi
# Default Unix-like systems
# Default Unix-like systems
test
-z
"
${
DISTRO
}
"
&&
DISTRO
=
unix
hint_distro
unix
cat
src/Distributions/
"
${
DISTRO
}
"
.mak
>>
"
${
distro_mak
}
"
cat
src/Distributions/
"
${
DISTRO
}
"
.mak
>>
"
${
distro_mak
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment