mdk stable port information

Info2: <<
Package: mdk%type_pkg[-gui]
Type: -gui (boolean)

Version: 1.2.5
Revision: 2
License: GPL
Description: GNU MIX Development Kit
Maintainer: None

Depends: <<
glib2-shlibs (>= 2.22.0-1),
gmp-shlibs,
guile18-libs,
guile18-shlibs,
libgettext8-shlibs,
libncurses5-shlibs,
libtool2-shlibs,
readline5-shlibs,
(%type_raw[-gui] = -gui) atk1-shlibs (>= 1.28.0-1),
(%type_raw[-gui] = -gui) cairo-shlibs (>= 1.8.8-3),
(%type_raw[-gui] = -gui) fontconfig2-shlibs (>= 2.8.0-4),
(%type_raw[-gui] = -gui) freetype219-shlibs (>= 2.3.12-1),
(%type_raw[-gui] = -gui) gtk+2-shlibs (>= 2.18.0-1),
(%type_raw[-gui] = -gui) libglade2-shlibs (>= 2.6.4-4),
(%type_raw[-gui] = -gui) libxml2-shlibs (>= 2.6.30-1),
(%type_raw[-gui] = -gui) pango1-xft2-ft219 (>= 1.24.5-4)
<<
BuildDepends: <<
autoconf2.6,
automake1.11,
fink-package-precedence,
gettext-tools,
gmp,
glib2-dev (>= 2.22.0-1),
guile18,
guile18-dev,
intltool40,
libgettext8-dev,
libiconv-dev,
libncurses5,
libtool2,
pkgconfig (>= 0.23),
readline5,
(%type_raw[-gui] = -gui) atk1 (>= 1.28.0-1),
(%type_raw[-gui] = -gui) cairo (>= 1.8.8-3),
(%type_raw[-gui] = -gui) fontconfig2-dev (>= 2.8.0-4),
(%type_raw[-gui] = -gui) freetype219 (>= 2.3.12-1),
(%type_raw[-gui] = -gui) glitz,
(%type_raw[-gui] = -gui) gtk+2-dev (>= 2.18.0-1),
(%type_raw[-gui] = -gui) libglade2 (>= 2.6.4-4),
(%type_raw[-gui] = -gui) libpng14,
(%type_raw[-gui] = -gui) libxml2 (>= 2.6.30-1),
(%type_raw[-gui] = -gui) pango1-xft2-ft219-dev (>= 1.24.5-4),
(%type_raw[-gui] = -gui) pixman (>= 0.16.0-1),
(%type_raw[-gui] = -gui) x11-dev
<<

Conflicts: mdk, mdk-gui
Replaces: mdk, mdk-gui

Source: mirror:gnu:%{Ni}/v%v/mdk-%v.tar.gz
Source-MD5: 7dce75b47695ef90ff3abfaf4e3d77fc

PatchFile: mdk.patch
PatchFile-MD5: 2aba6ce40da408786243a544479ec218
PatchScript: <<
touch lib/foo.c
%{default_script}
<<

UseMaxBuildJobs: false
ConfigureParams: --enable-dependency-tracking PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
CompileScript: <<
#!/bin/sh -ev
autoreconf -fi
mv po/Makefile.in.in~ po/Makefile.in.in
if [ "%type_raw[-gui]" == "-gui" ]; then
./configure %c
else
./configure %c --disable-gui
fi
make
fink-package-precedence .
<<

InfoDocs: %{Ni}.info
DocFiles: ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog.1 ChangeLog.2 NEWS THANKS TODO

DescDetail: <<
MDK stands for MIX Development Kit, and provides
tools for developing and executing, in a MIX virtual
machine, MIXAL programs.

The MIX is Donald Knuth's mythical computer,
described in the first volume of The Art of Computer
Programming, which is programmed using MIXAL, the MIX
assembly language.

MDK includes a MIXAL assembler (mixasm) and a MIX
virtual machine (mixvm) with a command line
interface. In addition, a GTK+ GUI to mixvm, called
gmixvm, and a Guile interpreter with an embedded MIX
virtual machine called mixguile, are provided.

Using these interfaces, you can debug your MIXAL
programs at source code level, and read/modify the
contents of all the components of the MIX computer
(including block devices, which are simulated using
the file system).
<<
DescPackaging: <<
Formerly maintained by Aleix Conchillo Flaque .

foo.c is...weird, keeping due to inertia (some type of
autotools dummy file specifier missing?)

Not sure why redoing autotools gives a po/Makefile.in.in that
intltool can't handle, so restore file from tarball after
autotools runs.
<<

Homepage: http://www.gnu.org/software/mdk/mdk.html
<<

mdk stable port .patch

--- mdk-1.2.5.orig/configure.ac 2009-10-10 14:32:46.000000000 +0200
+++ mdk-1.2.5/configure.ac 2009-10-10 20:30:49.000000000 +0200
@@ -91,15 +91,15 @@
if test x$wguile = xtrue; then
dnl AC_CHECK_HEADER(guile/gh.h,,wguile=false)
AC_MSG_CHECKING(for Guile)
- guile-config link > /dev/null || {
+ guile-1.8-config link > /dev/null || {
AC_MSG_RESULT(no)
wguile=false
}
fi

if test x$wguile = xtrue; then
- GUILE_CFLAGS="`guile-config compile`"
- GUILE_LDFLAGS="`guile-config link`"
+ GUILE_CFLAGS="`guile-1.8-config compile`"
+ GUILE_LDFLAGS="`guile-1.8-config link`"
LIBS="$LIBS $GUILE_LDFLAGS"
AM_CFLAGS="$AM_CFLAGS $GUILE_CFLAGS"
AC_SUBST(MAKE_GUILE)

--- mdk-1.2.5.orig/lib/Makefile.am 2005-09-21 17:52:52.000000000 +0200
+++ mdk-1.2.5/lib/Makefile.am 2005-09-21 17:52:52.000000000 +0200
@@ -13,5 +13,5 @@
EXTRA_DIST = getopt_long.c getopt.h

noinst_LIBRARIES = libreplace.a
-libreplace_a_SOURCES =
+libreplace_a_SOURCES = foo.c
libreplace_a_LIBADD = @LIBOBJS@
\ No newline at end of file

--- mdk-1.2.5.orig/lib/foo.c 2005-09-21 18:05:48.000000000 +0200
+++ mdk-1.2.5/lib/foo.c 2005-09-21 18:06:00.000000000 +0200
@@ -0,0 +1,5 @@
+int
+foo_for_darwin (void)
+{
+ return 0;
+}

--- mdk-1.2.5.orig/mixgtk/Makefile.am 2009-10-10 14:32:46.000000000 +0200
+++ mdk-1.2.5/mixgtk/Makefile.am 2009-10-10 20:30:49.000000000 +0200
@@ -39,7 +39,6 @@
LDADD = $(top_builddir)/mixlib/libmix.a $(top_builddir)/lib/libreplace.a\
$(top_builddir)/mixguile/libmixguile.a $(INTLLIBS)

-AM_LDFLAGS = -Wl,--export-dynamic
bin_PROGRAMS = gmixvm
gmixvm_SOURCES = gmixvm.c mixgtk.h mixgtk.c \
mixgtk_config.h mixgtk_config.c \

mdk _unstable_ port .patch