Changeset 609


Ignore:
Timestamp:
May 8, 2011, 5:32:52 PM (12 years ago)
Author:
Sam Hocevar
Message:

build: allow to specify --disable-nonfree to avoid installing non-free data
and build stripped down tarballs.

Location:
abuse/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/INSTALL

    r475 r609  
    1 Requirements for Compiling
     1Requirements for compiling
    22--------------------------
     3
    34- SDL 1.1.6 <http://www.libsdl.org>
    4 - X11R6(or above) and libraries.
    5 - Linux kernel 2.2 or above.
     5- SDL-Mixer
    66- GL libraries and headers are required for OpenGL support.
    77
     
    1010---------
    1111
    12 1. Untar the abuse_sdl-x.x.tar.gz file.
     121. Untar the abuse-x.x.tar.gz file.
    1313
    14      tar -zxf abuse_sdl-x.x.tar.gz
     14     tar xzf abuse-x.x.tar.gz
    1515
    16    This will create an abuse_sdl-x.x directory with the source in it.
     16   This will create an abuse-x.x directory with the source in it.
    1717
    18182. Run  './configure'
    19    This will create the Makefiles required to build Abuse-SDL.
     19   This will create the Makefiles required to build Abuse.
    2020
    2121   If you wish to specify a location for the datafiles instead of using the
     
    2323   following argument to the configure script:
    2424
    25      --datafir=<location>
     25     --datadir=<location>
    2626
    2727   where <location> is the directory where the datafiles will be installed.
     
    3131
    32324. Run 'make install'
    33    This will install Abuse-SDL.
     33   This will install Abuse.
    3434
    3535
    36 MacOSX
    37 ------
     36Mac OS X
     37--------
     38
    3839A Project Builder project is included in the 'osx' directory and can be used
    3940if desired.  Using project Builder is currently the only way to get OpenGL
    4041support compiled in.
    4142
    42 
    43 If anything goes wrong please contact me at <trandor@labyrinth.net.au> with
    44 the details, and I'll try and sort it out.
    45 
    46 Good luck,
    47 Anthony Kruize
  • abuse/trunk/Makefile.am

    r606 r609  
    88datafile_DATA = abuse.bmp abuse.png
    99
    10 EXTRA_DIST = bootstrap abuse.bmp abuse.png
     10EXTRA_DIST = PACKAGERS bootstrap abuse.bmp abuse.png
    1111
     12if HAVE_NONFREE
     13else
     14dist-hook:
     15        @echo ""
     16        @echo "          ===================================================="
     17        @echo "            WARNING: This tarball will exclude non-free data"
     18        @echo "          ===================================================="
     19        @echo ""
     20endif
     21
  • abuse/trunk/configure.ac

    r608 r609  
    2828AC_ARG_ENABLE(release,
    2929  [  --enable-release        build final release of the game (default no)])
     30AC_ARG_ENABLE(nonfree,
     31  [  --disable-nonfree       disable non-free data (default no)])
    3032
    3133dnl Checks for libraries
     
    7173  REL="-g"
    7274fi
     75
     76dnl  Is our package stripped from its non-free data? Or did the user
     77dnl  maybe disable non-free data?
     78ac_cv_have_nonfree="no"
     79if test -f "${srcdir}/data/sfx/ambcave1.wav"; then
     80  ac_cv_have_nonfree="yes"
     81fi
     82if test "${enable_nonfree}" = "no"; then
     83  ac_cv_have_nonfree="no"
     84fi
     85AM_CONDITIONAL(HAVE_NONFREE, test "${ac_cv_have_nonfree}" = "yes")
    7386
    7487# Optimizations
  • abuse/trunk/data/Makefile.am

    r607 r609  
    1818          cd "$(DESTDIR)$(datafiledir)" && rm -f $$p; \
    1919        done
    20 
    21 demos = \
    22     levels/demo1.dat levels/mac/demo1.dat levels/mac/demo2.dat \
    23     levels/mac/demo3.dat levels/mac/demo4.dat levels/mac/demo5.dat
    24 
    25 music = \
    26     music/intro.hmi music/victory.hmi \
    27     music/abuse00.hmi music/abuse01.hmi music/abuse02.hmi music/abuse03.hmi \
    28     music/abuse04.hmi music/abuse06.hmi music/abuse08.hmi music/abuse09.hmi \
    29     music/abuse11.hmi music/abuse13.hmi music/abuse15.hmi music/abuse17.hmi
    3020
    3121lisp = \
     
    7969    addon/twist/lisp/userfuns.lsp addon/twist/lisp/weapons.lsp \
    8070    addon/twist/twist.lsp
    81 
    82 extra = \
    83     defaults.prp
    8471
    8572art = \
     
    223210    addon/twist/levels/l01s03.lvl addon/twist/levels/l01s04.lvl
    224211
     212demos = \
     213    levels/demo1.dat levels/mac/demo1.dat levels/mac/demo2.dat \
     214    levels/mac/demo3.dat levels/mac/demo4.dat levels/mac/demo5.dat
     215
    225216doc = \
    226217    addon/aliens/aliens.txt \
     
    231222    addon/pong/pong.txt \
    232223    addon/twist/readme.txt
     224
     225extra = \
     226    defaults.prp
     227
     228if HAVE_NONFREE
     229music = \
     230    music/intro.hmi music/victory.hmi \
     231    music/abuse00.hmi music/abuse01.hmi music/abuse02.hmi music/abuse03.hmi \
     232    music/abuse04.hmi music/abuse06.hmi music/abuse08.hmi music/abuse09.hmi \
     233    music/abuse11.hmi music/abuse13.hmi music/abuse15.hmi music/abuse17.hmi
    233234
    234235sound = \
     
    283284    \
    284285    addon/twist/sfx/dray.wav
    285 
     286else
     287music =
     288sound =
     289endif
     290
Note: See TracChangeset for help on using the changeset viewer.