Bug#364295: How to create "unofficial" package of fltk2
Hi,
I've succeeded to create the "quick&dirty" package of fltk2
I've just downloaded the snapshot:
http://www.fltk.org/software.php?VERSION=2.0.x-r5782&FILE=fltk/snapshots/fltk-2.0.x-r5782.tar.bz2
Unpacked it in the temporary directory (let's assume /tmp/fltk2)
Then in the directory /tmp/fltk2/fltk-2.0.x-r5782 I've just done:
$dh_make --createorig
(I've selected the "s - single binary" option, which is probably not the
best choice for library...)
$fakeroot dpkg-buildpackage
I've obtained the fltk_2.0.x-r5782-1_i386.deb package, which probably
does not comply with debian policies, but anyway it just installs and
works ;-).
To test it, I have copied the radio.fl from the sources, opened it with
the fluid2, generated the code and compiled.
To compile it I had to copy the "makeinclude" file from the
/tmp/fltk2/fltk-2.0.x-r5782 directory,
and I had to modify the Makefile (I've attached it). But anyway it works!
--
HTH & regards, Wojtek
#
# "$Id: Makefile 5717 2007-02-25 11:33:37Z cwarrens $"
#
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
#
# Copyright 1998-2003 by Bill Spitzak and others.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
#
# Please report all bugs and problems to "fltk-bugs@fltk.org".
#
#
# Include common definitions...
#
#
# FLUID file rules...
#
.fl.cxx .fl.h:
../fluid/fluid2$(EXEEXT) -c $<
include makeinclude
#
# Files for this directory...
#
CPPFILES = \
mandelbrot.cxx \
CFILES =
LIBPREFIX=/usr/lib/lib
# only some of the demos have been changed to use namespaces:
TARGETS = \
radio$(EXEEXT) \
#
# Make everything...
#
all: $(TARGETS)
#
# Clean old files...
#
clean:
$(RM) *.bck
$(RM) *.o
$(RM) core*
$(RM) $(TARGETS)
#
# Make dependencies, excluding standard include directories...
#
#
# Include automatically generated dependencies...
#
#
# All demo programs depend on the static library.
#
$(TARGETS): $(LIBPREFIX)fltk2$(LIBSUFFIX)
#
# Other programs needing special "help"...
#
radio$(EXEEXT): radio.o
echo Linking $@...
$(CXX) -I.. $(CXXFLAGS) radio.o $(LINKFLTK) $(LDLIBS) -o $@
$(POSTBUILD) $@ ../fltk/mac.r
install:
uninstall:
#
# End of "$Id: Makefile 5717 2007-02-25 11:33:37Z cwarrens $".
#
# DO NOT DELETE
Reply to: