[Gambas-user] Deb packages from the sources of Gambas

Leonardo Miliani leonardo at ...1237...
Fri Apr 17 21:53:37 CEST 2009


The procedure below is the one I follow to compile Gambas on my Ubuntu
8.10. It's not "debianish" and it creates one big package that contains
all Gambas but... it works!

1) before to start you have to check that you have all the repositories
activated (main, universe, restricted, multiverse) and that you have
installed all the necessary to build packages (at least the
build-essentials and dh_make packages and maybe some others that I don't
remember);

2) download the Gambas sources, unpack them and enter in the destination
folder;

3) open a terminal then digit:
dh_make -e your at ...2141... -n -copyright gpl
When it is asked, choose "s" to build a single monolithic package;

4) When the process terminates, enter in the /debian subfolder and edit
the file "control". It has to look like this one:
-----------------------------------------------------------------
Source: gambas2
Section: development
Priority: extra
Maintainer: Your Name <your at ...383...>
Build-Depends: debhelper (>= 7), autotools-dev
Standards-Version: 3.7.3
Homepage: gambas.sourceforge.net

Package: gambas2
Architecture: i386
Depends: kdelibs4c2a (>= 4:3.5.8-1), libatk1.0-0 (>= 1.20.0),
libbz2-1.0, libc6 (>= 2.4), libcairo2 (>= 1.6.0), libcurl3 (>=
7.16.2-1), libffi5, libgcc1 (>= 1:4.1.1-21), libgl1-mesa-glx | libgl1,
libglib2.0-0 (>= 2.12.0), libglu1-mesa | libglu1, libgtk2.0-0 (>=
2.12.0), libice6 (>= 1:1.0.0), libjpeg62, libkrb53 (>= 1.6.dfsg.2),
libmysqlclient15off (>= 5.0.27-1), libomniorb4-1 (>= 4.1.1-2),
libpango1.0-0 (>= 1.20.5), libpcre3 (>= 7.4), libpng12-0 (>= 1.2.13-4),
libpoppler3, libpq5 (>= 8.3~beta1), libqt3-mt (>= 3:3.3.8-b), librsvg2-2
(>= 2.18.1), libsdl-image1.2 (>= 1.2.5), libsdl-mixer1.2 (>= 1.2.6),
libsdl1.2debian (>= 1.2.10-1), libsm6, libsqlite0 (>= 2.8.17),
libsqlite3-0 (>= 3.4.2), libstdc++6 (>= 4.2.1-4), libx11-6, libxcursor1
(>> 1.1.2), libxext6, libxft2 (>> 2.1.1), libxml2 (>= 2.6.27),
libxslt1.1 (>= 1.1.20), libxtst6, unixodbc (>= 2.2.11-1), zlib1g (>=
1:1.2.3.3.dfsg-1)

Description: Gambas, a free visual programming environment
 Gambas is a free visual programming environment based on BASIC language
with object oriented extensions. With Gambas it is possible to write
graphical applications with Qt/GTK interfaces, manage databases (MySQL,
SQLite, PostgreSQL, etc), console script programs and web applications.
------------------------------------------------------------------

5) Save the file, then, from terminal, digit:
CFLAGS="-Wall -g -O2" ./configure --host=i386-linux-gnu
--build=i386-linux-gnu --prefix=/usr --mandir=${prefix}/share/man
--infodir=${prefix}/share/info
This will start the configuration process.

6) At the end, digit:
debuild binary
This will compile Gambas and will create the deb package.

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: leonardo at ...1237...
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org




More information about the User mailing list