mlv-3.1.0/ 0000755 0001750 0001750 00000000000 13033444761 007317 5 0000000 0000000 mlv-3.1.0/mlv_rcs_revision 0000644 0001750 0001750 00000000051 13033444352 012535 0000000 0000000 c063c6de294d9d86d8f2cb28d25045df38ae423c
mlv-3.1.0/packaging/ 0000755 0001750 0001750 00000000000 13033444761 011243 5 0000000 0000000 mlv-3.1.0/packaging/Makefile.am 0000644 0001750 0001750 00000001524 13031676556 013230 0000000 0000000 #
# This file is part of the MLV Library.
#
# Copyright (C) 2010 Adrien Boussicault, Marc Zipstein
#
#
# This library 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, either version 3 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this Library. If not, see .
#
SUBDIRS = windows
EXTRA_DIST= fedora/creer_paquet_rpm debian_helper/README
mlv-3.1.0/packaging/fedora/ 0000755 0001750 0001750 00000000000 13033444761 012503 5 0000000 0000000 mlv-3.1.0/packaging/fedora/creer_paquet_rpm 0000644 0001750 0001750 00000002766 12277710073 015717 0000000 0000000 #
# This file is part of the MLV Library.
#
# Copyright (C) 2010,2011,2012,2013 Adrien Boussicault, Marc Zipstein
#
#
# This library 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, either version 3 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this Library. If not, see .
#
Il faut insaller sous ubuntu le paquet rpm.
Commencer par télécharger un nouveau depot car vous aller creer des fichier en root.
Tapez la commande suivante, pour creer le paquet rpm
autoreconf --install --force && ./configure --prefix=/usr && sudo checkinstall -R make install
- A la question creer un documentation doc-pack repondre NON
- Changer la version du packet qui n'est pas correcte
- Pour la desription du paquet, utilisez celle présentée dans le fichier debian control
Le paquet rpm est normalement correctement créer, il ne reste plus qu'à le récuperer dans le repertoire :
/usr/src/rpm/RPMS/i386/mlv-0.6-1.i386.rpm
Ne pas oublier de desinstaller le paquet installé en tapant la commande :
rpm -e mlv-0.6-1
mlv-3.1.0/packaging/fedora/rpmbuild/ 0000755 0001750 0001750 00000000000 13033444760 014320 5 0000000 0000000 mlv-3.1.0/packaging/fedora/rpmbuild/SPECS/ 0000755 0001750 0001750 00000000000 13033444760 015175 5 0000000 0000000 mlv-3.1.0/packaging/fedora/rpmbuild/SPECS/mlv.spec.in 0000644 0001750 0001750 00000011161 12303703354 017170 0000000 0000000 #
# This file is part of the MLV Library.
#
# Copyright (C) 2013 2014 Adrien Boussicault, Marc Zipstein
#
#
# This library 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, either version 3 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this Library. If not, see .
#
Name: @PACKAGE_TARNAME@
Version: @PACKAGE_VERSION@
Release: 0%{?dist}
Summary: A simplified multimedia library in C for beginners.
Group: System Environment/Libraries
License: GPLv3
URL: @PACKAGE_URL@
Source0: @MLV_PACKAGE_REPOSITORY@/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: SDL SDL_mixer SDL_ttf SDL_gfx SDL_image libxml2 glib2
BuildRequires: SDL-devel SDL_mixer-devel SDL_ttf-devel SDL_gfx-devel SDL_image-devel libxml2-devel glib2-devel doxygen automake autoconf gcc make pkgconfig
%description
The mlv library is a simplified multimedia libary.
The library permit to:
- draw figures, text and boxed text,
- display images,
- plays musics,
- get Keyboard and mouse event
- get informations by input boxes
This tools is a simplified interface of the SDL libraries.
If you are not a beginner, we recommend you to use the
SDL libraries (sdl, sdl-gfx, sdl-sound,sdl-ttf) instead of
the mlv library.
The mlv library can be compiled for Linux, Macintosh
and windows.
This package provide the runtime binary needed by the
execution of program using the mlv library.
%package devel
Summary: A simplified multimedia library in C for beginners.
Group: Development/Libraries
Requires: mlv = %{version}-%{release}
Requires: SDL-devel SDL_mixer-devel SDL_ttf-devel SDL_gfx-devel SDL_image-devel libxml2-devel glib2-devel gcc make pkgconfig pkgconfig
%description devel
The mlv library is a simplified multimedia libary.
The library is perfect for beginners in C programming who
want to use graphic and sound effects.
The library permit to:
- draw figures, text and boxed text,
- display images,
- plays musics,
- get Keyboard and mouse event
- get informations by input boxes
This tools is a simplified interface of the SDL libraries.
If you are not a beginner, we recommend you to use the
SDL libraries (sdl, sdl-gfx, sdl-sound,sdl-ttf) instead of
the mlv library.
The mlv library can be compiled for Linux, Macintosh
and windows.
This package provide all the developpement infrastructure
of the mlv library.
%package static
Summary: Files needed to develop static MLV applications
Group: Development/Libraries
Requires: mlv-devel = %{version}-%{release}
%description static
The mlv library is a simplified multimedia libary.
The library is perfect for beginners in C programming who
want to use graphic and sound effects.
The library permit to:
- draw figures, text and boxed text,
- display images,
- plays musics,
- get Keyboard and mouse event
- get informations by input boxes
This tools is a simplified interface of the SDL libraries.
If you are not a beginner, we recommend you to use the
SDL libraries (sdl, sdl-gfx, sdl-sound,sdl-ttf) instead of
the mlv library.
The mlv library can be compiled for Linux, Macintosh
and windows.
This package provide all the static libraries needed for developping
static MLV appilcations.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING
%{_libdir}/lib*.so.*
%{_libdir}/lib*.so
%{_datadir}/MLV/data/font/DejaVuSerif-Bold.ttf
%files devel
%defattr(-,root,root)
%doc README
%{_libdir}/libMLV.la
%{_libdir}/pkgconfig/MLV.pc
%{_includedir}/MLV
%{_docdir}/mlv
%{_mandir}/man3/MLV_*.gz
%files static
%defattr(-,root,root)
%{_libdir}/lib*.a
%changelog
* Sun Feb 16 2014 A. Boussicault @PACKAGE_VERSION@-0
- Nothing to declare
* Sun Jul 01 2012 A. Boussicault 1.2.1-0
- We automatieze the generation of this file.
* Tue Feb 05 2010 A. Boussicault, Marc Zipstein 0.2-0
- Creation of the originel package.
mlv-3.1.0/packaging/windows/ 0000755 0001750 0001750 00000000000 13033444761 012735 5 0000000 0000000 mlv-3.1.0/packaging/windows/my_project.cbp.in 0000644 0001750 0001750 00000003461 12762221467 016133 0000000 0000000
mlv-3.1.0/packaging/windows/create_win32_binaries.in 0000644 0001750 0001750 00000004032 12762221467 017351 0000000 0000000 #!/bin/bash
# Compilation de la librairie MLV
#
# This file is part of the MLV Library.
#
# Copyright (C) 2010-2014 Adrien Boussicault, Marc Zipstein
#
#
# This library 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, either version 3 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this Library. If not, see .
#
CURRENT=`pwd .`
MAIN_DEV=@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win32
TOP_CROSS=$CURRENT/cross-compilation
source $TOP_CROSS/definition_of_environement_variables
print_blue "Cleaning old building."
rm -rf $MAIN_DEV
rm -rf $MAIN_DEV.zip
(
if ! test -a $FAKEROOT/bin/libMLV-@MLV_MAJOR_VERSION@.dll;
then
print_blue "Compiling all the Win binaries of MLV and his dependencies."
cd $TOP_CROSS
./mingw_compilation_for_mlv
fi
if ! test -a $FAKEROOT/bin/libMLV-@MLV_MAJOR_VERSION@.dll;
then
print_blue "MLV compilation Fail, we abort."
exit
fi
)
print_blue "We build the Win 32 package of MLV."
mkdir $MAIN_DEV
mkdir $MAIN_DEV/include
mkdir $MAIN_DEV/lib
mkdir $MAIN_DEV/bin
cp -r $FAKEROOT/include/SDL $MAIN_DEV/include/
cp -r $FAKEROOT/include/MLV $MAIN_DEV/include/
cp $FAKEROOT/lib/libSDLmain.a $MAIN_DEV/lib/
cp $FAKEROOT/lib/libMLV.a $MAIN_DEV/lib/
cp /usr/${HOST}/lib/libmingw32.a $MAIN_DEV/lib/
cp /usr/${HOST}/lib/libmingwex.a $MAIN_DEV/lib/
cp $FAKEROOT/bin/*.dll $MAIN_DEV/bin/.
cp $FAKEROOT/lib/LICENSE* $MAIN_DEV/lib/.
cp $FAKEROOT/lib/LICENSE* $MAIN_DEV/bin/.
cp -r $FAKEROOT/share/MLV/data $MAIN_DEV/bin/
cp @abs_top_srcdir@/gpl.txt $MAIN_DEV/bin/
cp @abs_top_srcdir@/gpl.txt $MAIN_DEV/
zip -q -r $MAIN_DEV.zip $MAIN_DEV
mlv-3.1.0/packaging/windows/create_canonical_developpement_kit.in 0000644 0001750 0001750 00000011432 12762221467 022262 0000000 0000000 #!/bin/bash
# Compilation de la librairie MLV
#
# This file is part of the MLV Library.
#
# Copyright (C) 2010-2014 Adrien Boussicault, Marc Zipstein
#
#
# This library 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, either version 3 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this Library. If not, see .
#
WINDOWS_DIRECTORY="`pwd`"
TOP_CROSS="$WINDOWS_DIRECTORY/cross-compilation"
cd $TOP_CROSS
source $TOP_CROSS/definition_of_environement_variables
cd $WINDOWS_DIRECTORY
MAIN_win32=$WINDOWS_DIRECTORY/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win32
MAIN_DEV=$WINDOWS_DIRECTORY/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-canonical-developpement-kit
rm -rf $MAIN_DEV
(
if ! test -a $MAIN_win32/gpl.txt;
then
./create_win32_binaries
fi
)
MLV_EXAMPLES=$MAIN_DEV/MLV_examples
MLV_MY_PROJECT=$MAIN_DEV/my_project
mkdir -p $MAIN_DEV
#Ajout de la documentation :
MLV_SRC=$FAKEROOT/src/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
(
cd $MLV_SRC
for i in ./doc/api/*
do
base=`basename $i`
mkdir -p $MAIN_DEV/documentation/$base
cp -r $i/html/* $MAIN_DEV/documentation/$base/
done
)
#Creation d'un projet vide :
cp -r $MAIN_win32 $MLV_MY_PROJECT
mkdir $MLV_MY_PROJECT/obj
mv $MLV_MY_PROJECT/bin $MLV_MY_PROJECT/final_product
mkdir $MLV_MY_PROJECT/sources
cp @abs_top_srcdir@/examples/beginner/01_hello_world.c $MLV_MY_PROJECT/sources/main.c
# Creation des exampes pour la librairie MLV
MLV_EXAMPLES=$MAIN_DEV/MLV_examples
cp -r $MLV_MY_PROJECT $MLV_EXAMPLES
rm -rf $MLV_EXAMPLES/sources/main.c
#On ajoute le code source des examples
mkdir $MLV_EXAMPLES/sources/beginner
mkdir $MLV_EXAMPLES/sources/medium
mkdir $MLV_EXAMPLES/sources/advanced
mkdir $MLV_EXAMPLES/final_product/data/musics
for i in beginner medium advanced; do
for j in @abs_top_srcdir@/examples/$i/*.ogg; do
if test -f $j;
then
cp $j $MLV_EXAMPLES/final_product/data/musics/
fi
done;
done;
mkdir $MLV_EXAMPLES/final_product/data/images
for i in beginner medium advanced; do
for j in @abs_top_srcdir@/examples/$i/*.png @abs_top_srcdir@/examples/$i/*.jpg; do
if test -f $j;
then
cp $j $MLV_EXAMPLES/final_product/data/images/
fi
done;
done;
mkdir $MLV_EXAMPLES/final_product/data/configuration_files
for i in beginner medium advanced; do
for j in @abs_top_srcdir@/examples/$i/*.xml; do
if test -f $j;
then
cp $j $MLV_EXAMPLES/final_product/data/configuration_files/
fi
done;
done;
for i in beginner medium advanced; do
for j in @abs_top_srcdir@/examples/$i/*.ttf; do
if test -f $j;
then
cp $j $MLV_EXAMPLES/final_product/data/font/
fi
done;
done;
for i in beginner medium advanced; do
for j in @abs_top_srcdir@/examples/$i/*.c; do
name=`echo "$j" | sed -e 's#.*/\([^/]*\)*$#\1#g'`
cat $j |
sed -e 's#"\([^"]*\.ttf\)"#"./data/font/\1"#g' | \
sed -e 's#"\([^"]*\.ogg\)"#"./data/musics/\1"#g' | \
sed -e 's#"\([^"]*\.mp3\)"#"./data/musics/\1"#g' | \
sed -e 's#"\([^"]*\.png\)"#"./data/images/\1"#g' | \
sed -e 's#"\([^"]*\.jpg\)"#"./data/images/\1"#g' | \
sed -e 's#"\([^"]*\.xml\)"#"./data/configuration_files/\1"#g' | \
sed -e 's#\(MLV_load_animation_book[ \t\r]*([ \t\r]*[^,]*[ \t\r]*,[ \t\r]*\)NULL\([ \t\r]*,[ \t\r]*\)NULL\([ \t\r]*)\)#\1\"./data/images\"\2\"./data/musics\"\3#g' > \
$MLV_EXAMPLES/sources/$i/$name
done;
done;
cp @abs_top_srcdir@/examples/beginner/gpl.txt $MLV_EXAMPLES/sources/beginner
#Creation des executable pour chaque exemple
# Creation des exampes pour la librairie MLV
MLV_FINAL_PRODUCT=$MLV_EXAMPLES/final_product
(
cd $MLV_EXAMPLES/sources
for i in **/*.c;
do
j=`echo $i | sed -e "s#/#_#" | sed -e "s#\.c##"`;
path=`echo $i | sed -e "s#/.*##"`;
name=`echo $j | sed -e "s#^[^_]*_##"`;
if test x@COMPILE_DEBUG_VERSION_FOR_WINDOW@ = xyes
then
DEBUGFLAGS="-g -ggdb -pg -O0"
LDFLAGS=$( \
PKG_CONFIG_PATH=$FAKEROOT/lib/pkgconfig pkg-config --libs MLV \
|sed -e "s#-lMLV#/home/boussica/mlv-1.2.1/packaging/windows/cross-compilation/fakeroot-mingw32/lib/libMLV.a#"
)
LDFLAGS="$LDFLAGS -lSDL_gfx -lSDL_ttf -lSDL_image -lSDL_mixer -lglib-2.0 -lxml2"
else
DEBUGFLAGS="-g -O2"
LDFLAGS=$( \
PKG_CONFIG_PATH=$FAKEROOT/lib/pkgconfig pkg-config --libs MLV \
)
fi
#compilation des exemples:
$CC $DEBUGFLAGS -Wall $( \
PKG_CONFIG_PATH=$FAKEROOT/lib/pkgconfig pkg-config --cflags MLV \
) $i -L$FAKEROOT/lib $LDFLAGS -lmingw32 -lSDLmain -lSDL -o $MLV_FINAL_PRODUCT/$j.exe
done;
)
mlv-3.1.0/packaging/windows/Makefile.am 0000644 0001750 0001750 00000002055 12762221467 014717 0000000 0000000 #
# This file is part of the MLV Library.
#
# Copyright (C) 2010 Adrien Boussicault, Marc Zipstein
#
#
# This library 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, either version 3 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this Library. If not, see .
#
EXTRA_DIST= cross-compilation/cross-compilation-x86.tar.xz \
README
clean-local:
- rm -rf cross-compilation/fakeroot-mingw32
- rm -rf mlv-[0-9]*.[0-9]*-canonical-developpement-kit
- rm -rf mlv-[0-9]*.[0-9]*-code_blocks
- rm -rf mlv-[0-9]*.[0-9]*-dev-cpp
- rm -rf mlv-[0-9]*.[0-9]*-win32
mlv-3.1.0/packaging/windows/create_dev_cpp_package.in 0000644 0001750 0001750 00000003242 12303703354 017617 0000000 0000000 #!/bin/bash
# Compilation de la librairie MLV
#
# This file is part of the MLV Library.
#
# Copyright (C) 2010-2014 Adrien Boussicault, Marc Zipstein
#
#
# This library 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, either version 3 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this Library. If not, see .
#
MAIN_DEV_CPP=@PACKAGE_TARNAME@-@PACKAGE_VERSION@-dev-cpp
rm -rf $MAIN_DEV_CPP
rm -rf $MAIN_DEV_CPP.zip
MAIN_DEV=@PACKAGE_TARNAME@-@PACKAGE_VERSION@-canonical-developpement-kit
(
if ! test -a $MAIN_DEV/my_project/gpl.txt;
then
./create_canonical_developpement_kit
fi
)
cp -r $MAIN_DEV $MAIN_DEV_CPP
MLV_EXAMPLES=$MAIN_DEV_CPP/MLV_examples
MLV_MY_PROJECT=$MAIN_DEV_CPP/my_project
#Creation d'un projet vide :
cp my_project.dev $MLV_MY_PROJECT/
# Creation des exampes pour la librairie MLV
MLV_EXAMPLES=$MAIN_DEV_CPP/MLV_examples
(
cd $MLV_EXAMPLES/sources
for i in **/*.c; do j=`echo $i | sed -e "s#/#_#" | sed -e "s#\.c##"`; path=`echo $i | sed -e "s#/.*##"`; name=`echo $j | sed -e "s#^[^_]*_##"`; cat ../../../my_project.dev | sed -e "s#my_project#$j#" | sed -e "s#\\\\main#\\\\$path\\\\$name#" > ../$j.dev; done;
)
zip -q -r $MAIN_DEV_CPP.zip $MAIN_DEV_CPP
mlv-3.1.0/packaging/windows/my_project.dev.in 0000644 0001750 0001750 00000002000 12762221467 016131 0000000 0000000 [Project]
FileName=my_project.dev
Name=my_project
UnitCount=1
Type=1
Ver=1
ObjFiles=
Includes=.\include
Libs=.\lib;.\final_product
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=-lMLV-@MLV_MAJOR_VERSION@_@@_-lSDL_@@_-lmingw32_@@_-lSDLmain_@@_lib/libmingwex.a_@@_
IsCpp=1
Icon=
ExeOutput=.\final_product
ObjectOutput=.\obj
OverrideOutput=0
OverrideOutputName=my_project.exe
HostApplication=
Folders=
CommandLine=
UseCustomMakefile=0
CustomMakefile=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000000000000000000
[Unit1]
FileName=.\sources\main.c
CompileCpp=1
Folder=my_project
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[VersionInfo]
Major=0
Minor=1
Release=1
Build=1
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0
mlv-3.1.0/packaging/windows/cross-compilation/ 0000755 0001750 0001750 00000000000 13033444761 016402 5 0000000 0000000 mlv-3.1.0/packaging/windows/cross-compilation/cross-compilation-x86.tar.xz 0000644 0001750 0001750 00027337424 12762221467 023614 0000000 0000000 7zXZ ִF ! t/ ] 1#ApV奚KnZAGd!j铘6%@H)+if.pU`A.%#G\63'k'ڡKr6pW.@3'0"Xi}sIŔ=,TY5m7UF
K~ۖ7=at?tȗ ;&ߖl/k)亮:zO>ZGnI=E@SS@.CA@9mQV*5+-iB_SzIn;qJW,i4a[l%A|~lv<`9ݭ\#QDN457|P-dX Oݦ^|о܅ruS3dLфôF!
!l" :WHf5#ڑ|`cUm@D6*سZf`c.a[\O}Y4C:e!c?&SE@F5#CBE7cQuqlJ -U}ˍ;}2qc!]Ë0H/d@kZ %GӓPB:DMJyyNgdq+CVÙ14$
]ĸŏ5-ĥyw7\QHoy{˷Im 3\͔pjv~瓡m3QYd"tUU `|pJ^s9,N֨O,#lG?fZH<"0^x鑷RX 4