NAME Alien::IUP - Building, finding and using iup + related libraries - VERSION Version v0.0.2 of Alien::IUP is based on the following: * *iup* library 3.2 - see * *im* library 3.6.2 - see * *cd* library 5.4 - see SYNOPSIS Alien::IUP tries (in given order) during its installation: * Locate an already installed *iup* and related libraries + ask user whether to use the already installed *iup* or whether to build *iup* from sources * Via env variable IUP_DIR you can specify where the build script should look for the already installed *iup* and related libs (directories $ENV{IUP_DIR}/lib and $ENV{IUP_DIR}/include are expected to exist) * When not using the already installed libraries build process continues with the following steps * Download *iup* & co. source code tarballs * Build *iup* & co. binaries from source codes * Install libs and dev files (*.h, *.a) into *share* directory of Alien::IUP distribution - *share* directory is usually something like this: /usr/lib/perl5/site_perl/5.10/auto/share/dist/Alien-IUP Later on you can use Alien::IUP in your module that needs to link with *iup* and/or related libs like this: # Sample Makefile.pl use ExtUtils::MakeMaker; use Alien::IUP; WriteMakefile( NAME => 'Any::IUP::Module', VERSION_FROM => 'lib/Any/IUP/Module.pm', LIBS => Alien::IUP->config('LIBS'), INC => Alien::IUP->config('INC'), # + additional params ); SCREENSHOTS Examples of IUP-based application on different GUI subsystems: METHODS config() This function is the main public interface to this module. Alien::IUP->config('LIBS'); Returns a string like: '-L/path/to/iupdir/lib -liup -lim -lcd' Alien::IUP->config('INC'); Returns a string like: '-I/path/to/iupdir/include' Alien::IUP->config('PREFIX'); Returns a string like: '/path/to/iupdir' (note: if using the already installed *iup* config('PREFIX') returns undef) AUTHOR KMX, BUGS Please report any bugs or feature requests to "bug-alien-iup at rt.cpan.org", or through the web interface at . LICENSE AND COPYRIGHT IUP + related libraries: Copyright (C) 1994-2010 Tecgraf, PUC-Rio. Alien::IUP module: Copyright (C) 2010 KMX. This program is distributed under the MIT (X11) License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.