Changeset 9542cc88a8e24d615d9461ab33c89470f508a14a
- Timestamp:
- 06/21/03 19:04:20
(5 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1056215060 +0000
- git-parent:
[00aa8b77e2e8e6250b48c39b9790f09477926e3e]
- git-author:
- Sam Hocevar <sam@videolan.org> 1056215060 +0000
- Message:
- configure.ac.in is no more, we can now use configure.ac like normal people,
bootstrap generates the proper magic for us.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r0e24796 |
r9542cc8 |
|
| 1 | | $Id: HACKING,v 1.6 2002/10/07 21:58:40 massiot Exp $ |
|---|
| | 1 | $Id: HACKING,v 1.7 2003/06/21 17:04:20 sam Exp $ |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | Hacking vlc |
|---|
| … | … | |
| 44 | 44 | Modules.am files that were found in modules/ |
|---|
| 45 | 45 | |
|---|
| 46 | | - create a top-level configure.ac file from configure.ac.in, generating |
|---|
| 47 | | the AC_SUBST and AM_CONDITIONAL rules that will be needed. |
|---|
| | 46 | - create an m4/vlc.m4 from configure.ac, generating the AC_SUBST and |
|---|
| | 47 | AM_CONDITIONAL rules that will be needed by configure.ac. |
|---|
| 48 | 48 | |
|---|
| 49 | 49 | - run autopoint (previously gettextize) to create an intl/ directory, |
|---|
| r8e9d90a |
r9542cc8 |
|
| 18 | 18 | README.MacOSX.rtf \ |
|---|
| 19 | 19 | bootstrap \ |
|---|
| 20 | | configure.ac.in \ |
|---|
| 21 | 20 | install-win32 \ |
|---|
| 22 | 21 | src/extras/COPYING \ |
|---|
| … | … | |
| 44 | 43 | ACLOCAL_AMFLAGS = -I m4 |
|---|
| 45 | 44 | |
|---|
| 46 | | # XXX: these flags could be set in configure.ac.in, but we set them here |
|---|
| | 45 | # XXX: these flags could be set in configure.ac, but we set them here |
|---|
| 47 | 46 | # because old versions of automake don't support them in configure.ac. |
|---|
| 48 | 47 | AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects |
|---|
| rf4fabf9 |
r9542cc8 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## bootstrap file for the VLC media player |
|---|
| 4 | | ## $Id: bootstrap,v 1.48 2003/05/25 22:36:33 titer Exp $ |
|---|
| | 4 | ## $Id: bootstrap,v 1.49 2003/06/21 17:04:20 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 44 | 44 | ## |
|---|
| 45 | 45 | |
|---|
| 46 | | printf "generating Modules.am and configure.ac" |
|---|
| 47 | | |
|---|
| 48 | | rm -f Modules.am configure.ac |
|---|
| 49 | | |
|---|
| 50 | | echo > Modules.am |
|---|
| 51 | | echo > configure.ac |
|---|
| 52 | | |
|---|
| 53 | | ALL_FLAGS="`sed -n -e '/^[^=A-Z]*[A-Z]*FLAGS_[^=]*=/s/[^=A-Z]*\([A-Z]*FLAGS_[^=]*=\).*/\1/p' < configure.ac.in | sort | uniq`" |
|---|
| 54 | | |
|---|
| 55 | | cat >> configure.ac << EOF |
|---|
| 56 | | dnl ################################################################ |
|---|
| 57 | | dnl # Do not edit this file, it was generated from configure.ac.in # |
|---|
| 58 | | dnl ################################################################ |
|---|
| 59 | | |
|---|
| 60 | | EOF |
|---|
| 61 | | sed -n -e '/dnl do not touch this line/q;p' < configure.ac.in >> configure.ac |
|---|
| | 46 | printf "generating Modules.am and vlc.m4" |
|---|
| | 47 | |
|---|
| | 48 | # Prepare Modules.am and m4/vlc.m4 |
|---|
| | 49 | rm -f Modules.am && echo > Modules.am |
|---|
| | 50 | rm -f m4/vlc.m4 && cat > m4/vlc.m4 << EOF |
|---|
| | 51 | dnl Private VLC macros - generated by bootstrap |
|---|
| | 52 | |
|---|
| | 53 | dnl The required AM_CONDITIONAL an AC_SUBST calls |
|---|
| | 54 | AC_DEFUN([VLC_VARIABLES], [ |
|---|
| | 55 | EOF |
|---|
| | 56 | |
|---|
| | 57 | ALL_FLAGS="`sed -n -e '/^[^=A-Z]*[A-Z]*FLAGS_[^=]*=/s/[^=A-Z]*\([A-Z]*FLAGS_[^=]*=\).*/\1/p' < configure.ac | sort | uniq`" |
|---|
| 62 | 58 | |
|---|
| 63 | 59 | modules="" |
|---|
| … | … | |
| 78 | 74 | LINKER="LINK" |
|---|
| 79 | 75 | if echo "$ALL_FLAGS" | grep '^CPPFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| 80 | | echo "AC_SUBST(CPPFLAGS_${mod})" >> configure.ac; fi |
|---|
| | 76 | echo "AC_SUBST(CPPFLAGS_${mod})" >> m4/vlc.m4; fi |
|---|
| 81 | 77 | if echo "$ALL_FLAGS" | grep '^CFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| 82 | | echo "AC_SUBST(CFLAGS_${mod})" >> configure.ac; fi |
|---|
| | 78 | echo "AC_SUBST(CFLAGS_${mod})" >> m4/vlc.m4; fi |
|---|
| 83 | 79 | if echo "$ALL_FLAGS" | grep '^CXXFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| 84 | 80 | LINKER="CXXLINK" |
|---|
| 85 | | echo "AC_SUBST(CXXFLAGS_${mod})" >> configure.ac; fi |
|---|
| | 81 | echo "AC_SUBST(CXXFLAGS_${mod})" >> m4/vlc.m4; fi |
|---|
| 86 | 82 | if echo "$ALL_FLAGS" | grep '^OBJCFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| 87 | 83 | LINKER="OBJCLINK" |
|---|
| 88 | | echo "AC_SUBST(OBJCFLAGS_${mod})" >> configure.ac; fi |
|---|
| | 84 | echo "AC_SUBST(OBJCFLAGS_${mod})" >> m4/vlc.m4; fi |
|---|
| 89 | 85 | if echo "$ALL_FLAGS" | grep '^LDFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| 90 | | echo "AC_SUBST(LDFLAGS_${mod})" >> configure.ac; fi |
|---|
| | 86 | echo "AC_SUBST(LDFLAGS_${mod})" >> m4/vlc.m4; fi |
|---|
| 91 | 87 | if grep '^SOURCES_'${mod}'.*=.*PRIVATE' < ${mf} >/dev/null 2>&1; then |
|---|
| 92 | 88 | PRIVATE='#'; else |
|---|
| … | … | |
| 95 | 91 | NODIST=''; else |
|---|
| 96 | 92 | NODIST='#'; fi |
|---|
| 97 | | cat >> configure.ac << EOF |
|---|
| | 93 | cat >> m4/vlc.m4 << EOF |
|---|
| 98 | 94 | AM_CONDITIONAL(${mod}_plugin, test x\$${mod}_plugin = xyes) |
|---|
| 99 | 95 | AM_CONDITIONAL(${mod}_builtin, test x\$${mod}_builtin = xyes) |
|---|
| … | … | |
| 165 | 161 | done |
|---|
| 166 | 162 | |
|---|
| 167 | | echo "AM_CONDITIONAL(UNTRUE, false)" >> configure.ac |
|---|
| 168 | | sed -n -e '/dnl do not touch this line/,//p' < configure.ac.in >> configure.ac |
|---|
| | 163 | cat >> m4/vlc.m4 << EOF |
|---|
| | 164 | AM_CONDITIONAL(UNTRUE, false) |
|---|
| | 165 | ]) |
|---|
| | 166 | EOF |
|---|
| 169 | 167 | |
|---|
| 170 | 168 | echo "done." |
|---|
| … | … | |
| 176 | 174 | |
|---|
| 177 | 175 | # remove autotools cruft |
|---|
| 178 | | rm -f aclocal.m4 configure config.log |
|---|
| | 176 | rm -f aclocal.m4 configure configure.ac.in config.log |
|---|
| 179 | 177 | # remove old autotools extra cruft |
|---|
| 180 | 178 | rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh |
|---|
| … | … | |
| 186 | 184 | rm -f m4/oldgettext.m4 ABOUT-NLS |
|---|
| 187 | 185 | rm -Rf intl |
|---|
| 188 | | # update m4 local macros |
|---|
| 189 | | rm -f m4/vlc.m4 && echo "dnl Private VLC macros" > m4/vlc.m4 |
|---|
| 190 | 186 | |
|---|
| 191 | 187 | # Check for gettext |
|---|
| … | … | |
| 203 | 199 | mkdir -p intl |
|---|
| 204 | 200 | echo > intl/Makefile.am |
|---|
| 205 | | echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' >> m4/vlc.m4 |
|---|
| | 201 | cat >> m4/vlc.m4 << EOF |
|---|
| | 202 | dnl User's gettext is too old, so this is a no-op |
|---|
| | 203 | AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) |
|---|
| | 204 | |
|---|
| | 205 | EOF |
|---|
| 206 | 206 | GETTEXT=old |
|---|
| 207 | 207 | fi;else |
|---|
| … | … | |
| 210 | 210 | mkdir -p intl |
|---|
| 211 | 211 | echo > intl/Makefile.am |
|---|
| 212 | | echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' >> m4/vlc.m4 |
|---|
| | 212 | cat >> m4/vlc.m4 << EOF |
|---|
| | 213 | dnl User does not have gettext, so this is a no-op |
|---|
| | 214 | AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) |
|---|
| | 215 | |
|---|
| | 216 | EOF |
|---|
| 213 | 217 | GETTEXT=no |
|---|
| 214 | 218 | fi |
|---|
| … | … | |
| 221 | 225 | else |
|---|
| 222 | 226 | # Not present, use a workaround. |
|---|
| 223 | | echo 'AC_DEFUN([PKG_CHECK_MODULES], [])' > m4/vlc.m4 |
|---|
| | 227 | cat >> m4/vlc.m4 << EOF |
|---|
| | 228 | dnl User does not have pkg-config, so this is a no-op |
|---|
| | 229 | AC_DEFUN([PKG_CHECK_MODULES], []) |
|---|
| | 230 | |
|---|
| | 231 | EOF |
|---|
| 224 | 232 | PKGCONFIG=no |
|---|
| 225 | 233 | fi |
|---|
| r9534c1b |
r9542cc8 |
|
| 11 | 11 | - g�rer un timestamp de release (par exemple avec 822-date) |
|---|
| 12 | 12 | - updater le num� de version partout o�st n�ssaire |
|---|
| 13 | | � configure.ac.in (relancer autoconf) |
|---|
| | 13 | � configure.ac (relancer autoconf) |
|---|
| 14 | 14 | � vlc.spec |
|---|
| 15 | 15 | � ipkg/control |
|---|
| r23455b3 |
r9542cc8 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## toolbox for the VLC media player |
|---|
| 4 | | ## $Id: toolbox,v 1.25 2003/05/24 12:34:31 sam Exp $ |
|---|
| | 4 | ## $Id: toolbox,v 1.26 2003/06/21 17:04:20 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 111 | 111 | ' |
|---|
| 112 | 112 | |
|---|
| 113 | | # Variables we get from configure.ac.in |
|---|
| 114 | | LIBVLC_VERSION=`sed -ne '/AC_INIT/s/.*,\(.*\))/\1/p' < configure.ac.in` |
|---|
| 115 | | LIBVLC_CODENAME=`sed -ne '/CODENAME=/s/.*"\(.*\)"/\1/p' < configure.ac.in` |
|---|
| | 113 | # Variables we get from configure.ac |
|---|
| | 114 | LIBVLC_VERSION=`sed -ne '/AC_INIT/s/.*,\(.*\))/\1/p' < configure.ac` |
|---|
| | 115 | LIBVLC_CODENAME=`sed -ne '/CODENAME=/s/.*"\(.*\)"/\1/p' < configure.ac` |
|---|
| 116 | 116 | LIBVLC_SYMBOL=`echo $LIBVLC_VERSION | sed -e 'y/.-/__/'` |
|---|
| 117 | 117 | |
|---|
| … | … | |
| 520 | 520 | #find . -type d -name '.deps' -exec rm -Rf '{}' ';' |
|---|
| 521 | 521 | # there's some more cruft all around |
|---|
| 522 | | rm -f configure.ac config.h config.log config.status |
|---|
| | 522 | rm -f config.h config.log config.status |
|---|
| 523 | 523 | rm -f vlc vlc-config Makefile Modules.am |
|---|
| 524 | 524 | rm -Rf autom4te.cache |
|---|
| r59b5fa5 |
r9542cc8 |
|
| 3 | 3 | ############################################################################### |
|---|
| 4 | 4 | # Copyright (C) 2003 VideoLAN |
|---|
| 5 | | # $Id: vlc.ebuild,v 1.6 2003/06/20 01:27:55 hartman Exp $ |
|---|
| | 5 | # $Id: vlc.ebuild,v 1.7 2003/06/21 17:04:20 sam Exp $ |
|---|
| 6 | 6 | # |
|---|
| 7 | 7 | # Authors: Derk-Jan Hartman <thedj at users.sf.net> |
|---|
| … | … | |
| 101 | 101 | sed "s:-lkfile::" \ |
|---|
| 102 | 102 | configure.ac.orig > configure.ac |
|---|
| 103 | | # adding configure.ac.in |
|---|
| 104 | | cp configure.ac.in configure.ac.in.orig |
|---|
| 105 | | sed "s:-lkfile::" \ |
|---|
| 106 | | configure.ac.in.orig > configure.ac.in |
|---|
| 107 | 103 | |
|---|
| 108 | 104 | cd ${S}/modules/gui/kde |
|---|