Magma packaging redone

Jurjen Bokma

June 2009

See also .

    1. From the i386 32-bit download page of Magma, fetch:

      -rw-r--r-- 1 jurjen jurjen   9380682 2009-06-17 16:28 magma.gen.exe.dyn.i386.gz
      -rw-r--r-- 1 jurjen jurjen   9485226 2009-06-26 11:32 magma.ath.exe.dyn.gz
      -rw-r--r-- 1 jurjen jurjen  10527187 2009-06-26 11:32 magma.p4.exe.gz                 


      No need to re-fetch magma_shared_complete.tar.gz And yes, magma.p4.exe.gz is dynamically linked, so it has been misnamed upstream.

  1. Create a directory magma, unpack the shared_complete tarball into it, and put the binaries that were downloaded separately in a bin/ subdir.

    mkdir magma
    cd magma
    tar zxf ../magma_shared_complete.tar.gz
    mkdir bin
    cp ../magma*exe* bin

    Also unzip the binaries:

    cd bin
    unzip *.gz

  2. Rename the directory from magma to magma-2.15.10, and cd into it, then do m.m.:

    export DEBFULLNAME="Jurjen Bokma"
    dh_make --createorig
    Type of package: single binary, multiple binary, library, kernel module or cdbs?
    [s/m/l/k/b] b

    Maintainer name : Jurjen Bokma
    Email-Address   :
    Date            : Fri, 26 Jun 2009 11:43:48 +0200
    Package Name    : magma
    Version         : 2.15.10
    License         : blank
    Using dpatch    : no
    Type of Package : cdbs
    Hit <enter> to confirm:
    Currently there is no top level Makefile. This may require additional tuning.
    Done. Please edit the files in the debian/ subdirectory now. You should also
    check that the magma Makefiles install into $DESTDIR and not in / .

  3. The first thing to do is to create a Makefile:

    cdbs-edit-patch add-a-Makefile
    Cleaning in directory .
    test -x debian/rules
    /usr/bin/make  -C . CFLAGS="-g -Wall -O2" CXXFLAGS="-g -Wall -O2" CPPFLAGS="" LDFLAGS=""  -k clean
    make[1]: Entering directory `/tmp/cdbs-new-patch.aRkkdv/magma-2.15.10'
    make[1]: *** No rule to make target `clean'.
    make[1]: Leaving directory `/tmp/cdbs-new-patch.aRkkdv/magma-2.15.10'
    make: [makefile-clean] Error 2 (ignored)
    rm -f debian/stamp-makefile-build
    make: Nothing to be done for `apply-patches'.

    You are now in a subshell in a cleaned copy of your source package.
    Please make the changes necessary for the patch add-a-Makefile.patch
    in this directory and exit with status 0 to create/update the patch.
    Exiting with a non-zero value will cancel the patch modification.

    Now proceed to create a Makefile, as in .