Portfile

# $Id: Portfile 21146 2007-01-07 05:10:33Z jkh@macports.org $
PortSystem 1.0
name allegro
version 4.1.15
revision 1
description A game programming library for C/C++ developers.
long_description Allegro is a game programming library for \
C/C++ developers distributed freely, supporting \
many platforms.
maintainers nomaintainer@macports.org
categories devel games
platforms darwin
homepage http://www.talula.demon.co.uk/allegro/
master_sites sourceforge:alleg
checksums md5 e125d7665d359f2392b6330c741bdbc6
depends_lib lib:libX11:XFree86
patchfiles patch-makefile.osx patch-gui.c patch-sound.c
configure {
system "cd ${worksrcpath} && sh fix.sh macosx"
}
build.target
build.args PREFIX=${prefix}
destroot.target install install-man
destroot.args PREFIX=${prefix}
post-destroot {
file delete ${destroot}${prefix}/share/man/man3/RGB_MAP.3
file delete ${destroot}${prefix}/share/man/man3/FONT.3
file delete ${destroot}${prefix}/share/man/man3/COLOR_MAP.3
}

files