Changeset fb005c12802a3646a2cffe01880b7382366e1f2c

Show
Ignore:
Timestamp:
01/30/07 13:52:47 (2 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1170161567 +0000
git-parent:

[6b89b49e2eb8898ecf5a7dd8491a1f620c919f94]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1170161567 +0000
Message:

Extend contrib buildsystem to allow for a finer control on system and Linux distributions rules. The bootstrap tries to guess the operating system to build for by looking at the compiler prefix. For native building (usually Linux/Unix-like systems) additional matching logic should be written. Currently only Fedora-Core systems are detected as being different from the normal Unix-rules.

Extend this logic to make a distinction for your system if it deviates from the standard Unix-like system that our contrib recognizes atm.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extras/contrib/README

    r0178bdf rfb005c1  
    1010This will look for a i586-pc-beos-gcc cross compiler. Default is to 
    1111build natively. 
     12 
     13Bootstrap generates your default contrib configuration and puts it in a file 
     14named 'distro.mak'. Edit this file to fine-tune your preferences for 3rd-party 
     15libraries that will be build in the contrib system. 
    1216 
    1317Customize config.mak if you need to, then you need to choose between 
  • extras/contrib/bootstrap

    r7c23b5c rfb005c1  
    4949} > config.mak 
    5050 
     51rm -f distro.mak 
     52{ 
     53    echo "# Automatically generated by bootstrap" 
     54    echo "# Make changes if you know what you're doing." 
     55} > distro.mak 
     56 
    5157if test "$HOST" != "$BUILD"; then 
    5258    CC="${HOST}-gcc" 
     
    7884        EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" 
    7985        echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak 
     86        cat src/Distributions/darwin.mak >> distro.mak 
    8087        ;; 
    8188    i686-apple-darwin8) 
     
    8996        EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" 
    9097        echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak 
     98        cat src/Distributions/darwin.mak >> distro.mak 
    9199        ;; 
    92100    i586-pc-beos) 
     
    113121                echo "PATH = ${PATH}" >> config.mak 
    114122            fi 
     123            cat src/Distributions/beos.mak >> distro.mak 
    115124        ;; 
    116125    *mingw32*) 
    117126            echo "HAVE_WIN32 = 1" >> config.mak 
    118127            echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak 
     128            cat src/Distributions/win32.mak >> distro.mak 
    119129        ;; 
    120130    i686-pc-cygwin) 
     
    127137            EXTRA_LDFLAGS=" -mno-cygwin" 
    128138            echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak 
     139            cat src/Distributions/win32.mak >> distro.mak 
    129140        ;; 
    130141    arm-wince-pe) 
     
    132143            echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak 
    133144            EXTRA_CPPFLAGS=" -D_WIN32_WCE" 
     145            cat src/Distributions/wince.mak >> distro.mak 
    134146        ;; 
    135147    *) 
     148            if test "$HOST" = "$BUILD"; then 
     149                echo "PKG_CONFIG_LIBDIR = /usr/lib/pkgconfig" >> config.mak 
     150            fi 
     151            # Try to match distribution 
     152            if test -f /etc/fedora-release; then 
     153                cat src/Distributions/fedora.mak >> distro.mak 
     154            else 
     155                # Default Unix-like systems 
     156                cat src/Distributions/unix.mak >> distro.mak 
     157            fi 
    136158        ;; 
    137159esac 
  • extras/contrib/src/Makefile

    ra908ea8 rfb005c1  
    146146# Standard rules 
    147147# *************************************************************************** 
    148  
    149 ifdef HAVE_DARWIN_OS 
    150  all: .autoconf .automake .libtool .intl .pkgcfg .freetype .fribidi \ 
    151     .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \ 
    152     .FLAC .speex .shout .faad .faac .lame .twolame .ebml .matroska .ffmpeg \ 
    153     .dvdcss .dvdnav .dvdread .dvbpsi .live .caca .mod \ 
    154     .png .gpg-error .gcrypt .gnutls .opendaap .cddb .cdio .vcdimager \ 
    155     .SDL_image .glib .libidl .gecko .mpcdec .dirac_encoder .dirac_decoder \ 
    156     .libdca .tag .x264 .goom2k4 .aclocal 
    157 # .expat .clinkcc don't work with SDK yet 
    158 # .glib .libidl .gecko are required to build the mozilla plugin 
    159 # .mozilla will build an entire mozilla. it can be used if we need to create a new .gecko package 
    160 else 
    161  
    162  ifdef HAVE_BEOS 
    163   ifeq ($(HOST),$(BUILD)) 
    164 # Native build: we need perl, autoconf, etc first 
    165    all: .perl .autoconf .automake .libtool .iconv .intl .freetype .fribidi \ 
    166     .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \ 
    167     .FLAC .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \ 
    168     .dvdnav .dvbpsi .aclocal .libdca 
    169    #.speex seems 
    170   else 
    171 # Cross compiling: we already have the Linux tools, only build the 
    172 # libraries now 
    173    all: .iconv .intl .freetype .fribidi \ 
    174     .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \ 
    175     .FLAC .faad .faac .lame .twolame .ebml .matroska .ffmpeg .dvdcss \ 
    176     .dvdnav .dvbpsi .aclocal .libdca 
    177   endif 
    178   #.speex 
    179  else 
    180  
    181   ifdef HAVE_WIN32 
    182  
    183    all: .iconv .intl .freetype .fribidi .zlib \ 
    184     .a52 .mpeg2 .id3tag .mad .ogg .vorbis .shout .vorbisenc .theora \ 
    185     .FLAC .speex .faad .faac .lame .ebml  .matroska .ffmpeg .dvdcss \ 
    186     .live .goom2k4 .caca .mod .x264  .xml .twolame \ 
    187     .png .gpg-error .gcrypt .gnutls .mpcdec \ 
    188     .dvdnav .dvbpsi .wxwidgets .qt4 .dirac \ 
    189     .dx_headers .dshow_headers .aclocal .gecko-win32 .unicows .libdca \ 
    190     .SDL_image 
    191 #   .SDL_image  .daap .cddb .cdio .vcdimager .portaudio  
    192   else 
    193  
    194    ifdef HAVE_WINCE 
    195  
    196    all: .dvbpsi .zlib .ffmpeg .ogg .tremor .faad 
    197  
    198    else 
    199 # Standard Linux or other UNIX-like systems 
    200    all: .iconv .intl .freetype .fribidi .zlib \ 
    201     .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \ 
    202     .FLAC .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \ 
    203     .live .goom2k4 .caca .mod .x264  .xml .twolame \ 
    204     .png .gpg-error .gcrypt .gnutls .mpcdec \ 
    205     .dvdnav .dvbpsi .wxwidgets .dirac \ 
    206     .aclocal .libdca .libraw1394 .libdc1394 
    207 #   .png .gpg-error .gcrypt .gnutls .mpcdec\ 
    208 #   .SDL_image  .daap .cddb .cdio .vcdimager  
    209    endif 
    210   endif 
    211  endif 
    212 endif 
     148# Generated by ./bootstrap from default configuration in src/Distributions 
     149#  
     150include ../distro.mak 
    213151 
    214152FORCE: