Commit 2ab565d1 authored by Andreas B. Mundt's avatar Andreas B. Mundt

New upstream version 3.04~git20110801-nogdb+dfsg

parent 4071eeec
......@@ -2,7 +2,7 @@ The TiEmu project is managed by the TiEmu team.
The TiEmu team includes the following people:
!!! For problems, questions, ... use the TiEmu mailing list:
<gtktiemu-users@lists.sf.net>. Don't mail authors directly !!!
<gtktiemu-users@lists.sf.net>. Don't e-mail authors directly !!!
Romain Lievin (roms): main developer, Win32 port
================================================
......@@ -18,13 +18,20 @@ web: http://jblache.org
mail: jb@jblache.org
Kevin Kofler (kkofler): gdb integration, fixed and patches
==========================================================
Kevin Kofler (kkofler): gdb integration, KDE file dialogs, fixes and patches
============================================================================
web: http://tigcc.ticalc.org
mail: Kevin@tigcc.ticalc.org
Lionel Debroux (debrouxl): bugfixes, current maintainer
=======================================================
web: http://tict.ticalc.org
mail: lionel_debroux@yahoo.fr
Christian Walther (cw): Mac OS-X port
=====================================
......@@ -44,7 +51,6 @@ Packagers:
- Julien Blache <jb@jblache.org>: Linux/Debian
- Romain Lievin <roms@lievin.net>: Win32
- Kevin Kofler <Kevin@tigcc.ticalc.org>: Linux/Fedora ?
All the others who have contributed to
......@@ -54,7 +60,7 @@ Some contributions have been brought about this software by people:
- code: Kevin Kofler
- help: Olivier Armand and Lionel Debroux
- pedrom: Patrick Pelissier
- logo: hibou (real name ?)
- logo: Nicolas Laleve a.k.a hibou
*------------ Previous releases ----------------*
......@@ -70,4 +76,4 @@ mail: corvazier@yahoo.com
The libti68k library is based on the Jonas Minnberg's emulator
named (X)Tiger. He has recently released its emulator under GPL licence.
See the LICENSES file for more informations.
\ No newline at end of file
See the LICENSES file for more informations.
SubVersion: $Id: ChangeLog 2842 2009-05-29 14:04:35Z roms $
SubVersion: $Id$
- 12/02/2008, version 3.03:
- [kevin] $2765: fixed crash when debugging TIGCC program with GDB with low-level debugger in dock mode
......@@ -30,7 +30,8 @@ SubVersion: $Id: ChangeLog 2842 2009-05-29 14:04:35Z roms $
- [roms] $2836: upgraded deprecated GTK+ code
- [roms] $2838: if link cable reconfiguring fails, fallback to null cable & port
- [roms] $2839: merged Lionel's patch: fix buffer overflow in the disasm routine
=> released on 30/05/2009
- 16/09/2007, version 3.02:
- [roms] $2646: screenshots can be copied into the clipboard
- [roms] $2649: use fixed fonts for release and manpage dboxes
......@@ -93,7 +94,7 @@ SubVersion: $Id: ChangeLog 2842 2009-05-29 14:04:35Z roms $
- 07/09/2007, version 3.01b:
- re-released due to missing USB drivers (libusb0.dll)
=> released on 07/09/2007
=> released on 07/09/2007
- 03/09/2007, version 3.01a:
- re-released due to missing file in Windows Installer (dhahelper.sys)
......
This diff is collapsed.
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS=-I m4
# subdirectories to scan
SUBDIRS = build glade help misc pedrom pixmaps po skins src
......@@ -45,5 +47,3 @@ endif
regsvr:
cd src && $(MAKE) regsvr DESTDIR="$(DESTDIR)"
ACLOCAL_AMFLAGS = -I m4
This diff is collapsed.
......@@ -7,11 +7,11 @@ List of text files:
- AUTHORS: list of authors
- COPYING: license
- LICENSES: list of program included
- README.linux: specific linux instructions
- README.win32: specific windows instructions
- README.linux: linux-specific instructions
- README.win32: windows-specific instructions
- RELEASE: what's changed in this release
- TODO: work to do or planned
Texas Instruments and TI are trademarks of Texas Instruments Incorporated.
Texas Instruments and TI are trademarks of Texas Instruments Incorporated.
For more informations: <http://education.ti.com/educationportal/sites/US/nonProductSingle/global_trademarks.html>
This document has been written independantly of Texas Instruments.
\ No newline at end of file
This document has been written independently of Texas Instruments.
......@@ -8,11 +8,10 @@
REQUIREMENTS
------------
- A UNIX computer (Intel x86 or PPC) and C compiler (gcc)
- A UNIX computer (Intel x86 or PPC) and C compiler (gcc, clang)
- X11 (X Window System)
- GTK+ 2.6 from <http://www.gtk.org>
- ticables2, tifiles2 and ticalcs2 libraries from the
TiLP 2 project <http://tilp.info>
- GTK+ 2.6 or higher from <http://www.gtk.org>
- libticonv, libtifiles2, libticables2 and libticalcs2 libraries from the TiLP II project <http://tilp.info>
INSTALLATION
......@@ -21,7 +20,7 @@ INSTALLATION
At first, you must have the ticables and ticalcs libraries installed. See
the documentation of these libraries for the installation procedure.
Untar the tiemu-X.XX.tar.gz archive (tar -xvzf), change directory to
Untar the tiemu-X.XX.tar.bz2 archive (tar -xvjf), change directory to
tiemu directory.
Go the tiemu directory and type './configure' in order to be sure
......@@ -29,16 +28,18 @@ that all it is OK. If you want to use KDE file dialogs, run
'./configure --with-kde' instead.
Next, type 'make' to make a binary for your machine.
If you want does not want to use GDB as debugger or use the odl one (tiemu2),
run './configure --disable-gdb'.
If do not want to use GDB as debugger, run
'./configure --disable-gdb'.
If the compile suceeds without any errors, you can type 'make install' to
install the binary in /usr/local/bin. This will also copy some necessary
files to /usr/local/share/tiemu and will install the manpage and the
help.
If you want to install it in a prefix different from /usr/local, use
'./configure --prefix=...' (e.g. $HOME).
If you already have some TiEmu images, you will have to manually copy them
to the /usr/locale/share/tiemu/images directory.
If the compilation suceeds without any errors, you can type 'make install' to
install the binary to /usr/local/bin. This will also copy some necessary
files to /usr/local/share/tiemu and will install the manpage and the HTML help.
If you already have some TiEmu images, you will have to manually copy them to
to /usr/local/share/tiemu/images, or ~/.tiemu/images for per-user images.
USAGE
......@@ -57,10 +58,18 @@ AVAILABILITY
COPYRIGHT
---------
TiEmu is Copyright (C) 2000-2009 by the TiEmu team <tiemu-users@lists.sf.net>
TiEmu is Copyright (C) 2000-2010 by the TiEmu team <tiemu-users@lists.sf.net>
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
Copying is allowed under the terms of GNU General Public License (LGPL).
See the file COPYING for more details.
You should have received a copy of the GNU General Public License along with
this program (in the COPYING file); if not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------
......
......@@ -8,26 +8,29 @@
REQUIREMENTS
------------
- a PC with a 450MHz Pentium-class processor and 32MB of RAM
- a Windows computer: Windows 95/98/Me or Windows NT4/2000/XP/Vista (better)
- the GTK+ 2.6 libraries
Location: <http://prdownloads.sourceforge.net/gladewin32/gtk-win32-2.6.8-rc1.exe?download>
Note: if you are using 'The GiMP', you may encounter DLL's problems...
The GTK+ package (1) provided with the GiMP may not be fully compatible with one used by TiLP/TiEmu.
On the other hand, the package (2) requested by TiLP/TiEmu is compatible with the GiMP.
- a Windows computer: Windows 2000, XP, Vista, 7 (32-bit or 64-bit)
- the GTK+ >= 2.12, libglade and libxml2 libraries.
Location: <http://downloads.sourceforge.net/gladewin32/gtk-2.12.9-win32-2.exe>
=> they can be automatically downloaded & installed by the installer.
See below
Note: if you are using 'The GiMP', you might encounter DLL problems...
The GTK+ package (1) provided with the GiMP might not be fully compatible with one used by TiLP/TiEmu.
The package (2) requested by TiLP/TiEmu may be compatible with the GiMP.
Thus, if you are using The GiMP, you are strongly encouraged to uninstall (1) and install (2).
http://gtk-win.sourceforge.net/home/index.php/Downloads
Well, from looking at the web site of gtk-win.sf.net, it would seem clear that libglade definitely isn't included in their runtimes... bad for the LPG software.
By adding the libglade-2.0-0.dll from within http://ftp.gnome.org/pub/gnome/binaries/win32/libglade/2.6/libglade_2.6.4-1_win32.zip , and the libxml2 from ftp://ftp.zlatkovic.com/libxml/libxml2-2.7.7.win32.zip (linked from the libxml2 page, http://xmlsoft.org/ ) into the GTK+ install directory, I can stop the complaints about missing DLLs :)
(I enabled the "Compatibility DLLs" in the http://gtk-win.sourceforge.net/home/index.php/Downloads runtime, after seeing the note on the news page of that site)
NOTES
-----
1°) This setup may download & install some extra libraries (GTK+ 2.6).
1°) This setup may download & install some extra libraries (GTK+ 2.12).
The GTK+ package includes the Wimp (Windows IMPersonator) theme engine which gives
Windows look & feel (includes XP theming). Is also included the GTK theme selector.
You may need to use it on non-NT systems if you get a lot of warnings about a font.
Simply disable the WiMP theme for another one.
2°) If anyone is getting one of these:
- ** WARNING **: Couldn't load font "MS Sans Serif 8" falling back to "Sans 8"
......@@ -56,7 +59,21 @@ install it.
Please note these drivers are not compatible with Ti-Connnect(tm).
5°) This setup will install the DhaHelper driver for Windows NT4/2000/XP machines.
5°) 64-bit ("x64") Vista and 7 default to refuse unsigned drivers - and TIEmu,
through libticables2, uses libusb, which Microsoft has not signed. Therefore,
you'll have to somehow disable or work around the driver signature enforcement:
- you can, EACH time you boot the computer, enter the Advanced Boot Options
menu, by pressing "F8" and selecting "Disable Driver Signature Enforcement".
See http://www.sevenforums.com/tutorials/666-advanced-boot-options.html for
more information on the 7 boot options.
- several third-party tools may wean you from that hassle, but they don't seem
to work for everybody. See
http://www.techspot.com/vb/topic127187.html
http://www.blogsdna.com/2775/install-unsigned-drivers-on-windows-7-vista-with-driver-signature-enforcement-overrider.htm
http://www.killertechtips.com/2009/05/05/disable-driver-signing-windows-7/
http://www.killertechtips.com/2009/05/06/disable-driver-signing-in-windows-7-using-group-policy-editor/
6°) This setup will install the DhaHelper driver for Windows NT4/2000/XP machines.
This step may require an administrator account (at least for NT4).
You may need to REBOOT your machine after installation (if you plan to
use a parallel or serial link cable).
......@@ -64,10 +81,10 @@ use a parallel or serial link cable).
DhaHelper is copyrighted (c) 2004 Sascha Sommer and released under GPL license.
Source code is available from <http://svn.mplayerhq.hu/mplayer/trunk/vidix/dhahelperwin/>.
6°) The tiemu3-nogdb setup will install the GNU's 'wget' utility for download of GTK+
(http://xoomer.virgilio.it/hherold/).
7°) The tiemu3-nogdb setup will install the GNU's 'wget' utility for download of GTK+
(http://gnuwin32.sourceforge.net/packages/wget.htm).
7°) This setup will install/update the TiLP framework (libti* and drivers) which is
8°) This setup will install/update the TiLP framework (libti* and drivers) which is
installed as shared components since TiLP v1.07, TiEmu v3.01 or GFM v1.00.
Any software using the TiLP framework will take advantage of this update.
......@@ -86,10 +103,18 @@ AVAILABILITY
COPYRIGHT
---------
TiEmu is Copyright (C) 2000-2009 by the TiEmu team <gtktiemu-users@lists.sf.net>
TiEmu is Copyright (C) 2000-2010 by the TiEmu team <gtktiemu-users@lists.sf.net>
Copying is allowed under the terms of GNU General Public License (LGPL).
See the file COPYING for more details.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program (in the COPYING file); if not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------
......
......@@ -2,10 +2,10 @@
Previous version: 3.02 (21/12/2007)
Current version: 3.03 (08/05/2009)
Previous version: 3.03 (2009/05/08)
Current version: 3.04 (2010/xx/xx)
SubVersion (CVS) revision: $Id: RELEASE 2042 2006-05-07 07:46:23Z roms $
SubVersion (SVN) revision: $Id$
TiEmu is available for 3 platforms:
Linux (GTK), Windows (GTK), Mac OS X (GTK)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
;
; (c) Copyright 2001-2007, the TiEmu team
; (c) Copyright 2001-2010, the TiEmu team
;
; $Id: tiemu.iss 639 2004-08-19 15:35:33Z roms $
; $Id$
[Setup]
AppName=TiEmu3-gdb
AppVerName=TiEmu 3.03 No Gdb
AppVerName=TiEmu 3.04 No Gdb
AppPublisher=The TiEmu Team
AppPublisherURL=http://lpg.ticalc.org/prj_tiemu/index.html
AppSupportURL=http://lpg.ticalc.org/prj_tiemu/mailing_list.html
......@@ -21,7 +21,7 @@ InfoAfterFile=C:\lpg\tiemu3\RELEASE
PrivilegesRequired = admin
;--- Shared Stuffs ---
;--- Shared Stuff ---
[Files]
; TI libraries
Source: "C:\lpg\tifiles2\tests\libtifiles2-5.dll"; DestDir: "{cf}\LPG Shared\libs"; Flags: sharedfile; BeforeInstall: DeleteDll('libtifiles2-3.dll');
......@@ -66,7 +66,7 @@ Source: "C:\lpg\libusb-win32\bin\libusb0_x64.dll"; DestDir: "{win}\system32"; Fl
; Create entries for shared libs (needed by other programs)
Root: HKLM; Subkey: "Software\LPG Shared"; ValueType: string; ValueName: "Path"; ValueData: "{cf}\LPG Shared"
Root: HKLM; Subkey: "Software\LPG Shared"; ValueType: string; ValueName: "DllPath"; ValueData: "{cf}\LPG Shared\libs"
;--- End of Shared Stuffs ---
;--- End of Shared Stuff ---
[Tasks]
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; MinVersion: 4,4
......@@ -369,7 +369,7 @@ begin
if(I = 2) then begin
S := 'The GTK+ libraries are installed but the version is old: ';
end;
MsgBox(S + 'you will need the GTK+ 2.6.x Runtime Environnement! But, the installer can download and install it for you; simply think to check the box at the last tab/page. Otherwise, you can still download it from the start menu (start menu > programs > tiemu > install gtk+ from the web).', mbError, MB_OK);
MsgBox(S + 'you will need the GTK+ 2.12.x Runtime Environnement! But, the installer can download and install it for you; simply think to check the box at the last tab/page. Otherwise, you can still download it from the start menu (start menu > programs > tiemu > install gtk+ from the web).', mbError, MB_OK);
end;
// Check for previous program presence and uninstall if needed
......@@ -431,7 +431,7 @@ begin
// Retrieve GTK version
if IsGtkInstalled() then begin
if CompareVersion(GetGtkVersion(), '2.6.10') < 0 then begin
if CompareVersion(GetGtkVersion(), '2.12.9') < 0 then begin
DisplayWarning(2);
end;
end;
......
SUBDIRS = mingw
EXTRA_DIST = InnoSetup ipaq mingw msvc nsis
distclean: clean
......@@ -12,4 +13,4 @@ clean:
$(RM) ./msvc/*.opt
$(RM) -Rfv ./msvc/output
$(RM) -Rfv ./msvc/test
$(RM) ./msvc/tiemu*.exe
\ No newline at end of file
$(RM) ./msvc/tiemu*.exe
This diff is collapsed.
BASE = tiemu
RC ?= windres
EXTRA_DIST = $(BASE).rc
if OS_WIN32
noinst_DATA = $(BASE)-rc.o
endif
if OS_WIN32
all: $(BASE)-rc.o
$(BASE)-rc.o : $(BASE).rc
$(RC) $(BASE).rc $@
endif
This diff is collapsed.
#define IDI_ICON1 101
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON DISCARDABLE "tiemu.ico"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
1 VERSIONINFO
FILEVERSION 3,0,3,0
PRODUCTVERSION 3,0,3,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x28L
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
#include <winver.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,0,4,0
PRODUCTVERSION 3,0,4,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS (VS_FF_PRERELEASE | VS_FF_DEBUG)
#else
FILEFLAGS (VS_FF_PRERELEASE)
#endif
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BLOCK "040904b0"
BEGIN
VALUE "Comments", "This program is placed under GPL license. The license can be found on www.gnu.org\0"
VALUE "CompanyName", "Linux Programmer Group\0"
VALUE "FileDescription", "TiEmu\0"
VALUE "FileVersion", "3.03\0"
VALUE "FileVersion", "3.04\0"
VALUE "InternalName", "TiEmu\0"
VALUE "LegalCopyright", "Copyright 2000-2008, The TiEmu Team\0"
VALUE "LegalCopyright", "Copyright \xA9 2000-2010, The TiEmu Team\0"
VALUE "LegalTrademarks", "The TiEmu Team\0"
VALUE "OriginalFilename", "tiemu.exe\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "TiEmu 3\0"
VALUE "ProductVersion", "3, 0, 3, 0\0"
VALUE "SpecialBuild", "Windows build\0"
VALUE "ProductVersion", "3, 0, 4, 0\0"
VALUE "SpecialBuild", "Windows 2000/XP/Vista/7 version\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON DISCARDABLE "tiemu.ico"
/////////////////////////////////////////////////////////////////////////////
......@@ -2,8 +2,8 @@ TiEmu 3 (version 3.02)
* Copyright (c) 2000-2001, Thomas Corvazier, Romain Lievin
* Copyright (c) 2001-2003, Romain Lievin
* Copyright (c) 2003, Julien Blache
* Copyright (c) 2004, Romain Liévin
* Copyright (c) 2005-2008, Romain Liévin, Kevin Kofler
* Copyright (c) 2004, Romain Lievin
* Copyright (c) 2005-2008, Romain Lievin, Kevin Kofler
* Copyright (c) 2007, Peter Fernandes
Licensed under the GNU General Public License version 2 or later.
......
#! /bin/sh
# This script, aimed at users, automates the compilation and installation of tiemu
# from the SVN repository.
# It's mirrored at http://lpg.ticalc.org/prj_tiemu/downloads/install_tiemu.sh
#
# **********
# IMPORTANT:
# **********
# * see below for prerequisites (build dependencies) or peculiarities (e.g. 64-bit Fedora).
# * you should remove equivalent packages, if any, before running this script.
#
# Copyright (C) Lionel Debroux 2009, 2010, 2011
# libti* and tiemu are compiled with a proposed set of configuration options,
# but you may wish to use others. The complete list is available through
# `./configure --help` run in $SRCDIR/tilp/libticonv, $SRCDIR/tilp/libtifiles,
# $SRCDIR/tilp/libticables, $SRCDIR/tilp/libticalcs, $SRCDIR/tiemu/tiemu.
# The prefix where the binaries will be installed, e.g. $HOME, /usr, /usr/local.
#
# ****************
# IMPORTANT NOTES:
# ****************
# * for compilation to succeed, you may have to execute
# $ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:[{$PREFIX}]/lib/pkgconfig
# (where [{$PREFIX}] is the contents of the PREFIX line below, without the quotes).
# The main cause for having to execute this line is installing to e.g. PREFIX=$HOME or /usr/local,
# but it may be necessary when installing to PREFIX=/usr, if your distro doesn't store
# libraries into the standard /usr/lib path.
#
# * after successful installation, you may have to add $PREFIX/bin to $PATH,
# and $PREFIX/lib to $LD_LIBRARY_PATH, for the SVN versions of libti* and tiemu
# to get picked up.
#PREFIX="$HOME"
PREFIX="/usr"
# The place where the sources will be stored.
SRCDIR="$HOME/lpg"
# MANDATORY dependencies for compiling and running libti* and tiemu:
# (Debian and Fedora package names are given if they're different from each other)
# * (subversion - for downloading the sources)
# * pkg-config
# * GNU autoconf, automake, libtool
# * glib 2.x development files (libglib2.0-dev, glib2-devel)
# * zlib development files (zlib1g-dev, zlib-devel)
# * libusb development files (libusb-dev, libusb-devel)
# (libusb 0.1.x preferred, but libticables now has a libusb 1.0 backend activated with "--enable-libusb10", see below)
# * GTK+ 2.x and Glade development files (libgtk2.0-dev + libglade2-dev, gtk2-devel + libglade2-devel)
# * SDL 1.2 development files (libsdl1.2-dev, SDL-devel)
# * libncurses 5 development files (libncurses5-dev, ncurses-devel)
# * GNU gettext
# * GNU bison, flex
# * GNU groff, texinfo
# * XDG utils
# * Qt 3 development headers.
#
# Optional dependencies:
# * KDE 3.x development files (kdelibs4-dev, kdelibs3-devel), if you want to compile TIEmu with support for the KDE file dialog.
# (this implies a slew of development files, among which the Qt development files, and is therefore disabled by default)
# * DBus-Glib development files (libdbus-glib-1-dev, dbus-devel + dbus-glib-devel), if you want to compile TIEmu with D-Bus support.
# Checkout/update, `configure`, `make` and `make install` the given module
handle_one_module() {
module_name="$1"
shift # Kick the first argument, so as to be able to pass the rest to configure.
if [ -d "$module_name" -a -d "$module_name/.svn" ]; then
echo "Updating $module_name"
cd "$module_name"
svn up || return 1
cd ../..
else
echo "Checking out $module_name"
svn co "http://svn.tilp.info/repos/$module_name/trunk" "$module_name" || return 1
fi
cd "$module_name"
echo "Configuring $module_name"
# Add --libdir=/usr/lib64 on e.g. 64-bit Fedora 14, which insists on searching for 64-bit libs in /usr/lib64.
# Or modify PKG_CONFIG_PATH as described above.
./configure "--prefix=$PREFIX" $@ || return 1
echo "Building $module_name"
make || return 1
echo "Installing $module_name"
make install || return 1
cd ../..
}
echo -e "\033[4mBefore proceeding further, make sure that you're ready to go (look inside the install script):\033[m"
echo -e "1) configured \033[1mPREFIX\033[m and \033[1mSRCDIR\033[m the way you wish;"
echo -e "2a) if you're using \033[1m64-bit Fedora\033[m (or any distro which installs libraries to non-standard paths), added --libdir=/usr/lib64 to the marked line, or..."
echo -e "2b) configured \033[1mPKG_CONFIG_PATH\033[m if necessary"
echo -e "3) installed the build dependencies listed in the script."
echo -e "\033[4mOtherwise, the build will fail!\033[m."
echo -e "\033[1mENTER to proceed, CTRL + C to abort\033[m."
read
echo "Creating output folder if necessary"
mkdir -p "$SRCDIR/tilp" || exit 1
mkdir -p "$SRCDIR/tiemu" || exit 1
cd "$SRCDIR"
echo "=== libticonv ==="
handle_one_module tilp/libticonv || exit 1
# Useful configure options include --disable-nls.
echo "=== libtifiles ==="
handle_one_module tilp/libtifiles || exit 1
# Useful configure options include --disable-nls, --enable-logging, --enable-libusb10.
echo "=== libticables ==="
handle_one_module tilp/libticables --enable-logging || exit 1
# Useful configure options include --disable-nls.
echo "=== libticalcs ==="
handle_one_module tilp/libticalcs || exit 1
# Useful configure options include --disable-gdb, --with-dbus and --with-kde.
# Use --with-kde if you want to use the native KDE file dialogs (it defaults to disabled because it requires a slew of development package dependencies).
echo "=== tiemu ==="
handle_one_module tiemu/tiemu --with-dbus || exit 1
echo "============================================="
echo "=== libti* + tiemu installed successfully ==="
echo "============================================="
echo ""
echo ""
echo ""
echo "============================================="
echo "IMPORTANT NOTES IMPORTANT NOTES"
echo "============================================="
echo "If you want to use linking with a real calculator, follow the instructions in $SRCDIR/tilp/libticables/CONFIG"
#! /bin/sh
# Maintainer script for automating the cross-compilation and installation of tiemu
# from a checkout of the complete tiemu repository over at svn.tilp.info.
#
# Copyright (C) 2010, 2011 Lionel Debroux
# REMINDERS: don't forget to:
# 1) create AND chmod +x a "i586-mingw32msvc-pkg-config" script in the path:
# #!/bin/sh
# export PKG_CONFIG_LIBDIR=/usr/i586-mingw32msvc/lib
# exec pkg-config $@
# (this is for my Debian Lenny, at least)
#
# 2) create a /target folder pointing to the GTK Wine install path, e.g.
# $HOME/.wine/drive_c/GTK
#
# 3) if necessary (dependency error about pixman-1), remove "pixman-1 >= 0.10.0"
# from the "Requires.private:" line in <GTK_INSTALL_DIR>/lib/pkgconfig/cairo.pc.
#
# 4) in order to avoid needless dependencies, edit the following files:
# /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/libstdc++.la
# /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/libsupc++.la
# /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/debug/libstdc++.la
# and remove "-lmingwthrd" and "-lgcc_s".
#
# 5) if necessary (cannot find SDL.dll), create a symlink to $LIBSDL_DIR/bin/SDL.dll
# in tiemu/trunk/
# The prefix where the binaries will be installed, e.g. $HOME, /usr, /usr/local.
PREFIX="$HOME/lpg/packages"
# Common flags and definitions.
LIBGTK_DIR="$HOME/lpg/deps/gtk-win32"
LIBSDL_DIR="$HOME/lpg/deps/sdl-win32"
CCFLAGS="-Os -g3 -Wall -W -Wno-unused-parameter -Wshadow -Wwrite-strings -Wredundant-decls -Wp,-D_FORTIFY_SOURCE=2 -I$LIBGTK_DIR/include -I$LIBSDL_DIR/include/SDL"
CLDFLAGS="-L$LIBGTK_DIR/lib -L$LIBSDL_DIR/lib"
CHOST="i586-mingw32msvc"
export PKG_CONFIG_PATH="$HOME/lpg/packages/lib/pkgconfig:$LIBGTK_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_LIBDIR=$HOME/lpg/pkgconfig
# Configure and build the given module
handle_one_module() {
module_name="$1"
shift # Kick the first argument, so as to be able to pass the rest to configure.