You are not logged in.

#1 2004-11-05 23:54:12

TheHoff
Member
Registered: 2004-10-29
Posts: 12

DevIL PKGBUILD

Yo yo!

I needed DevIL (image library) today, so I put together a PKGBUILD script for it.  Does it look okay?  It works, but just makin' sure it's all good.  And in case anyone wanted some DevIL action too smile

pkgname=devil
pkgver=1.6.7
pkgrel=1
pkgdesc="Library for reading several different image formats"
url="http://openil.sourceforge.net/"
depends=('libpng' 'zlib' 'libjpeg' 'libtiff' 'libmng')
makedepends=('bash')
source=(http://aleron.dl.sourceforge.net/sourceforge/openil/DevIL-1.6.7.tar.gz)
md5sums=('0d0c3842196d85c4e24bedabcd84f626')

build()
{
   cd $startdir/src/DevIL-$pkgver
        ./configure --prefix=/usr
        make || return 1
        make prefix=$startdir/pkg/usr install
}

-- John

Offline

#2 2004-11-06 04:55:27

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: DevIL PKGBUILD

New and Requested Packages
If you've created packages or want to beg others to build some for you, post here!

PUT IT IN THE RIGHT SECTION!!!

*screams for a moderator*


The suggestion box only accepts patches.

Offline

#3 2004-11-06 06:04:24

TheHoff
Member
Registered: 2004-10-29
Posts: 12

Re: DevIL PKGBUILD

Eh... I saw user contributions first.

Offline

#4 2004-11-06 22:59:26

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: DevIL PKGBUILD

DevIL does not depend on those listed there - it statically links them so you only need on library - therefore those should be in "makedepends"

Offline

#5 2004-11-08 15:34:01

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: DevIL PKGBUILD

phrakture wrote:

DevIL does not depend on those listed there - it statically links them so you only need on library - therefore those should be in "makedepends"

only, if it is built to use them statically

i'm going to include devil to extra ... with the following dependences:

depends=('x-server' 'allegro' 'sdl' 'mesa' 'libpng' 'zlib' 'libjpeg' 'libtiff' 'libmng')

and this results in the following support:

+----------------------------------------+
|     IL library  Supported formats      |
+----------------------------------------+-------+
BMP DCX DDS WAD GIF HDR ICO JPG LIF MDL MNG PCD PCX PIC PIX PNG PNM PSD PSP PXR RAW SGITGA TIF WAL XPM

+----------------------------------------+
|      ILUT library  Supported APIs      |
+----------------------------------------+-------+
Allegro OpenGL

The impossible missions are the only ones which succeed.

Offline

#6 2004-11-08 15:37:39

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: DevIL PKGBUILD

thread moved to the right section


The impossible missions are the only ones which succeed.

Offline

#7 2004-11-08 17:35:56

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: DevIL PKGBUILD

dp wrote:
phrakture wrote:

DevIL does not depend on those listed there - it statically links them so you only need on library - therefore those should be in "makedepends"

only, if it is built to use them statically

i'm going to include devil to extra ... with the following dependences:

depends=('x-server' 'allegro' 'sdl' 'mesa' 'libpng' 'zlib' 'libjpeg' 'libtiff' 'libmng')

and this results in the following support:

+----------------------------------------+
|     IL library  Supported formats      |
+----------------------------------------+-------+
BMP DCX DDS WAD GIF HDR ICO JPG LIF MDL MNG PCD PCX PIC PIX PNG PNM PSD PSP PXR RAW SGITGA TIF WAL XPM

+----------------------------------------+
|      ILUT library  Supported APIs      |
+----------------------------------------+-------+
Allegro OpenGL

you're going to want littlecms too (needs a package) for color palette support.

also, I was under the impression DevIL statically linked by default - I thought that was the point - having on library that does it all, for distribution purposes...
I may be wrong, but the DevIL docs say "to build DevIL, you'll need:"

Offline

#8 2004-11-08 18:02:16

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: DevIL PKGBUILD

The windows binary distribution from http://openil.sourceforge.net contains:
* DevIL.dll
* ILUT.dll
* ILU.dll

The linux binary distribution from http://openil.sourceforge.net contains:
* libIL.so
* libILU.so
* libILUT.so

I would assume that if it was not statically linked by default, the windows binary distribution would at least contain the corresponding dependancy dlls

Offline

#9 2004-11-08 21:28:47

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: DevIL PKGBUILD

littlecms? i never heard about it - http://www.littlecms.com/


The impossible missions are the only ones which succeed.

Offline

#10 2004-11-08 21:32:49

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: DevIL PKGBUILD

phrakture wrote:

The windows binary distribution from http://openil.sourceforge.net contains:
* DevIL.dll
* ILUT.dll
* ILU.dll

The linux binary distribution from http://openil.sourceforge.net contains:
* libIL.so
* libILU.so
* libILUT.so

I would assume that if it was not statically linked by default, the windows binary distribution would at least contain the corresponding dependancy dlls

[damir@Asteraceae devil]$ more filelist
.FILELIST
.PKGINFO
usr/
usr/include/
usr/include/IL/
usr/include/IL/config.h
usr/include/IL/devil_internal_exports.h
usr/include/IL/il.h
usr/include/IL/il_wrap.h
usr/include/IL/ilu.h
usr/include/IL/ilu_region.h
usr/include/IL/ilut.h
usr/lib/
usr/lib/libIL.la
usr/lib/libIL.so
usr/lib/libIL.so.1
usr/lib/libIL.so.1.0.0
usr/lib/libILU.la
usr/lib/libILU.so
usr/lib/libILU.so.1
usr/lib/libILU.so.1.0.0
usr/lib/libILUT.la
usr/lib/libILUT.so
usr/lib/libILUT.so.1
usr/lib/libILUT.so.1.0.0

... it is built dynamically, because it found everything on my system while building, because it was in the depends var ...

one indicator that says us, that it is dynamically, is that the pkg is <300kb (there is no chance to have a lib supporting all these formats and be under 300kb! ... at least not with the current compilers and architectures ;-) )


The impossible missions are the only ones which succeed.

Offline

Board footer

Powered by FluxBB