Commit 6f924598 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Added the contrib system to MAKE_DIST

* cleaned up some alignment in configure --help
parent db7ad6de
......@@ -247,6 +247,7 @@ EXTRA_DIST += \
dist-hook:
cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
distdir=$(distdir) srcdir=$(srcdir) $(srcdir)/toolbox --dist-contrib
###############################################################################
# Building libvlc
......
......@@ -1858,22 +1858,22 @@ then
VLC_ADD_LDFLAGS([ffmpeg],[`${FFMPEG_CONFIG} --plugin-libs avcodec avformat postproc`])
else
AC_ARG_WITH(ffmpeg-mp3lame,
[ --with-ffmpeg-mp3lame if ffmpeg has been compiled with mp3lame support],
[ --with-ffmpeg-mp3lame specify if ffmpeg has been compiled with mp3lame support],
[
VLC_ADD_LDFLAGS([ffmpeg],[-lmp3lame]) ])
AC_ARG_WITH(ffmpeg-faac,
[ --with-ffmpeg-faac if ffmpeg has been compiled with faac support],
[ --with-ffmpeg-faac specify if ffmpeg has been compiled with faac support],
[
VLC_ADD_LDFLAGS([ffmpeg],[-lfaac]) ])
AC_ARG_WITH(ffmpeg-dts,
[ --with-ffmpeg-dts if ffmpeg has been compiled with dts support],
[ --with-ffmpeg-dts specify if ffmpeg has been compiled with dts support],
[
VLC_ADD_LDFLAGS([ffmpeg],[-ldts]) ])
AC_ARG_WITH(ffmpeg-zlib,
[ --with-ffmpeg-zlib if ffmpeg has been compiled with zlib support],
[ --with-ffmpeg-zlib specify if ffmpeg has been compiled with zlib support],
[
VLC_ADD_LDFLAGS([ffmpeg],[-lz]) ])
......
......@@ -29,6 +29,7 @@ recognized flags are:
--update-glade2 generate and fix Glade 2 code
--update-flexml generate and fix flexml and flex code
--distclean "make distclean" on steroids
--dist-contrib add the contrib dir to MAKE_DIST
--make-woody <dir> change distdir <dir> to a woody distdir
EOF
exit 1
......@@ -85,6 +86,9 @@ case "$1" in
--add-include)
action=include
;;
--dist-contrib)
action=contrib
;;
--help)
help
;;
......@@ -578,6 +582,37 @@ then
# FIXME: a lot of Makefiles are still there
fi
##
## Add the extras/contrib dir to the distribution
##
if test "${action}" = "contrib"
then
set -x
if test ! -d "${distdir}/extras"
then
mkdir "${distdir}/extras"
fi
if test ! -d "${distdir}/extras/contrib"
then
mkdir "${distdir}/extras/contrib"
fi
cp "${srcdir}/extras/contrib/Makefile" "${distdir}/extras/contrib/Makefile"
cp "${srcdir}/extras/contrib/README" "${distdir}/extras/contrib/README"
cp "${srcdir}/extras/contrib/bootstrap" "${distdir}/extras/contrib/bootstrap"
cp "${srcdir}/extras/contrib/change_prefix.sh" "${distdir}/extras/contrib/change_prefix.sh"
if test ! -d "${distdir}/extras/contrib/src"
then
mkdir "${distdir}/extras/contrib/src"
fi
cp "${srcdir}/extras/contrib/src/Makefile" "${distdir}/extras/contrib/src/Makefile"
cp "${srcdir}/extras/contrib/src/packages.mak" "${distdir}/extras/contrib/src/packages.mak"
if test ! -d "${distdir}/extras/contrib/src/Patches"
then
mkdir "${distdir}/extras/contrib/src/Patches"
fi
cp ${srcdir}/extras/contrib/src/Patches/* "${distdir}/extras/contrib/src/Patches/"
fi
##
## Build a woody-friendly package
##
......
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