Giter Site home page Giter Site logo

jmdh / perl-device-cdio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rocky/perl-device-cdio

1.0 1.0 0.0 426 KB

Perl bindings for libcdio

License: GNU General Public License v3.0

Perl 55.24% Makefile 1.27% Shell 0.17% TeX 0.42% C 42.90%

perl-device-cdio's Introduction

Travis Build Status CircleCI Build Status

Device::Cdio - Perl bindings for libcdio (CD Input and Control library)

This adds Perl bindings for the GNU CD Input and Control library (libcdio) and it's ISO 9660 library (libiso9660) which are written in C. The library encapsulates CD-ROM reading and control and ISO 9660 handling. Perl programs wishing to be oblivious of the OS- and device-dependent properties of a CD-ROM can use this library.

The encapsulation is done in two parts. The lower-level Perl interface creates perlcdio, perliso9660 and perlmmc libraries; these are generated by SWIG.

There are also object-oriented modules that use perlcdio and perliso9660 (but not yet perlmmc). Although perlcdio and `perliso9660 are perfectly usable on there own, it is expected that the Device::Cdio... modules are what most people will use. As perlcdio and perliso9660 more closely model the C interface, it is conceivable (if unlikely) that die-hard libcdio or libiso9660 C users who are very familiar with that interface may use that.

It may also be possible to change the SWIG in such a way to combine the low-level and Object-Oriented pieces. However there are the problems. First, I'm not that much of a SWIG expert. Second it looks as though the resulting SWIG code would be more complex. Third the separation makes translation very straight forward to understand and maintain: first we get what's in C into Perl as a one-to-one translation. Then we implement some nice Perl abstraction off of that. The abstraction can be modified without having to redo the underlying translation. (But the reverse is generally not true: usually changes to the C-to-Perl translation, perlcdio or perliso9660, do result in small, but obvious and straightforward changes to the abstraction layer cdio.)

GNU CD Input and Control Library is rather large, and yet may yet grow a bit. (Any volunteers for adding UDF support?) So what is here is incomplete; over time it may grow to completion, depending on various factors: e.g. whether others will help out (hint).

Some of the incompleteness is due to my lack of understanding of how to get SWIG to accomplish wrapping various return values. If you know how to do better, please let me know. Likewise suggestions on how to improve classes or Perl interaction are more than welcome.

Sections of libcdio that have been left out wholesale is the the cdparanoia library and almost all of the MMC library. About 1/2 of the ISO-9660 library has been done. Of the audio controls, I put in those things that didn't require any thought. But Jerry G. Geiger added more audio and CD-Text support

There is much to be done - you want to help out, please do so!

Standalone documentation via perlpod. See also the programs in the example directory.

INSTALLATION

To install this module, run the following commands:

perl Build.PL
./Build
./Build test
./Build install

For compatibility, the older idiom is tolerated:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

  • libcdio and development headers
  • C compiler
  • SWIG (optional)

COPYRIGHT AND LICENSE

Copyright (C) 2006, 2008, 2011, 2017 Rocky Bernstein [email protected]

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, either version 3 of the License, or (at your option) any later version.

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. If not, see http://www.gnu.org/licenses/.

perl-device-cdio's People

Contributors

rocky avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.