You are not logged in.

#1 2004-09-27 21:15:10

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

[new] alfont, fblend, jgmod, 2xsai, dumb and dumbogg

These 4 packages are extensions to the allegro library that some people are using to display fonts (alfont), doing fast blending effects (fblend), playing modules (jgmod) or scaling low resolution graphics (2xsai). I've created PKGBUILD files for them, some libs needed some patching.

# $Id$
# Contributor: bjorn <b.lindeijer@xs4all.nl>
pkgname=alfont
pkgver=1.9.2
pkgrel=1
url="http://nekros.freeshell.org/delirium/alfont.php"
pkgdesc="Allegro wrapper for the FreeType2 library"
depends=('allegro' 'freetype2')
source=(http://www.hero6.com/filereviver/alfont.zip target.patch)
md5sums=('21d60a3479e7ff18e5eb556fba413a89' '917fce38be85ba3a089c9a7731c22428')

build() {
  cd $startdir/src

  # Patch Makefile to build for Linux
  patch -p0 < target.patch
  make || return 1

  # Copy the files
  mkdir -p $startdir/pkg/usr/lib
  mkdir -p $startdir/pkg/usr/include
  cp lib/linux/libalfont.a $startdir/pkg/usr/lib/
  cp include/*.h $startdir/pkg/usr/include/
}

Patch: target.patch (contains Windows newlines)

# $Id$
# Contributor: bjorn <b.lindeijer@xs4all.nl>
pkgname=fblend
pkgver=0.4
pkgrel=1
url="http://sourceforge.net/projects/fblend/"
pkgdesc="Fast blending functions for use with Allegro"
depends=('allegro')
makedepends=('hd2u')
source=(http://heanet.dl.sourceforge.net/sourceforge/fblend/fblend-0.4.zip 
        2xstretch.s.patch)
md5sums=('fc3b297c255fc1bef98d7351287a203c' 
         'c56624911b0d038d099365a086460651')

build() {
  cd $startdir/src/fblend

  # Patch small error in 2xstretch caught by recent gcc
  patch -p0 < ../2xstretch.s.patch

  # Create unix makefile
  dos2unix fix.sh
  chmod +x fix.sh
  ./fix.sh unix

  make || return 1

  # Copy the files
  mkdir -p $startdir/pkg/usr/lib
  mkdir -p $startdir/pkg/usr/include
  cp lib/unix/libfblend.a $startdir/pkg/usr/lib/
  cp include/fblend.h $startdir/pkg/usr/include/
}

Patch: 2xstretch.s.patch (contains Windows newlines)

# $Id$
# Contributor: bjorn <b.lindeijer@xs4all.nl>
pkgname=jgmod
pkgver=0.99
pkgrel=1
url="http://surf.to/jgmod"
pkgdesc="An add-on library to play modules with Allegro"
depends=('allegro')
source=(http://www.geocities.com/jeffery_guan/jgmod/jgmod.zip)

build() {
  cd $startdir/src/jgmod

  sh fixunix.sh
  cd src
  make || return 1

  # Copy the files
  mkdir -p $startdir/pkg/usr/lib
  mkdir -p $startdir/pkg/usr/include
  cp ../lib/unix/libjgmod.so $startdir/pkg/usr/lib/
  cp jgmod.h $startdir/pkg/usr/include/
}
# $Id$
# Contributor: bjorn <b.lindeijer@xs4all.nl>
pkgname=2xsai
pkgver=20040927
pkgrel=1
url="http://bob.allegronetwork.com/"
pkgdesc="Add-on library for Allegro used to double the size of low resolution images with nice looking results"
depends=('allegro')
makedepends=('hd2u')
source=(http://bob.allegronetwork.com/2xsai/2xsai.zip 2xsai.c.patch)
md5sums=('210586c14ad1c8bc2c594a8e4b818a12' 'ac1fdc7c9990a3e1bed4fb10b46fde9e')

build() {
  cd $startdir/src

  # fixunix.sh converts the rest of the files to unix format
  dos2unix fixunix.sh
  sh fixunix.sh
  patch -p0 < 2xsai.c.patch

  make || return 1

  # Copy the files
  mkdir -p $startdir/pkg/usr/lib
  mkdir -p $startdir/pkg/usr/include
  cp lib/unix/lib2xsai.a $startdir/pkg/usr/lib/
  cp include/2xsai.h $startdir/pkg/usr/include/
}

Patch 2xsai.c.path:

*** src/2xsai.c Mon Sep 27 21:18:19 2004
--- src/2xsai.c.new     Mon Sep 27 21:18:55 2004
***************
*** 1,6 ****
  #include <string.h>
  #include "allegro.h"
! #include "allegro/aintern.h"
  #include "2xsai.h"
  
  #define uint32 unsigned long
--- 1,6 ----
  #include <string.h>
  #include "allegro.h"
! #include "allegro/internal/aintern.h"
  #include "2xsai.h"
  
  #define uint32 unsigned long

All PKGBUILD files and patches can be found at http://www.lindeijer.nl/~bjorn/abs/ along with other packages I made.


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#2 2004-12-02 08:54:40

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: [new] alfont, fblend, jgmod, 2xsai, dumb and dumbogg

I've added dumb and its dumbogg extension. This library allows Allegro users to easily play modules and ogg files.

# $Id$
# Contributor: bjorn <bjorn@lindeijer.nl>
pkgname=dumb
pkgver=0.9.2
pkgrel=1
pkgdesc="An IT, XM, S3M and MOD player library"
url="http://dumb.sourceforge.net/"
depends=('glibc' 'allegro')
source=(http://dl.sourceforge.net/sourceforge/dumb/$pkgname-$pkgver-fixed.tar.gz)
md5sums=('0ce45f64934e6d5d7b82a55108596680')

build() {
  cd $startdir/src/$pkgname

  # Make with Allegro support
  make PREFIX=$startdir/pkg/usr << EOF
Y
EOF

  # Create directories
  mkdir -p $startdir/pkg/usr/lib
  mkdir -p $startdir/pkg/usr/bin
  mkdir -p $startdir/pkg/usr/include

  make install
}
# $Id $
# Contributor: bjorn <bjorn@lindeijer.nl>
pkgname=dumbogg
pkgver=0.5
pkgrel=1
pkgdesc="Add on to DUMB for playing OGG files"
url="http://dumb.sourceforge.net/"
depends=('dumb' 'libvorbis')
source=(http://dl.sourceforge.net/sourceforge/dumb/$pkgname-$pkgver.tar.gz)
md5sums=('3d80a51bfeeca5aa71a983e8f019d403')

build() {
  cd $startdir/src/$pkgname

  # Make the library
  make -f make/makefile.uni lib

  # Create directories
  mkdir -p $startdir/pkg/usr/lib
  mkdir -p $startdir/pkg/usr/include

  cp lib/unix/libdmogg.a $startdir/pkg/usr/lib
  cp include/dumbogg.h $startdir/pkg/usr/include
}

These PKGBUILDs and others can be found here: http://www.lindeijer.nl/~bjorn/abs/


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

Board footer

Powered by FluxBB