2002-11-03 14:34:09 +00:00
|
|
|
# New Ports Collection Makefile for: p5-sdl
|
|
|
|
# Date created: 2002-10-06
|
|
|
|
# Whom: Klaus Goger <klaus.goger@reflex.at>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sdl
|
2004-01-10 16:24:08 +00:00
|
|
|
PORTVERSION= 1.20.3
|
2004-12-23 10:10:15 +00:00
|
|
|
PORTREVISION= 4
|
2002-11-03 14:34:09 +00:00
|
|
|
CATEGORIES= devel
|
2004-01-10 16:24:08 +00:00
|
|
|
MASTER_SITES= http://bloodgate.com/perl/sdl/pub/
|
2002-11-03 14:34:09 +00:00
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
DISTNAME= SDL_perl-${PORTVERSION}
|
|
|
|
|
2004-01-23 23:11:03 +00:00
|
|
|
MAINTAINER= philip@FreeBSD.org
|
2003-02-21 11:23:04 +00:00
|
|
|
COMMENT= Perl Bindings for SDL
|
2002-11-03 14:34:09 +00:00
|
|
|
|
2004-01-20 21:44:21 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2002-11-03 14:34:09 +00:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
|
2004-01-23 23:11:03 +00:00
|
|
|
USE_SDL= sdl
|
2004-01-20 21:44:21 +00:00
|
|
|
|
2002-11-03 14:34:09 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_TTF)
|
2004-01-23 23:11:03 +00:00
|
|
|
USE_SDL+= ttf
|
2002-11-03 14:34:09 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_NET)
|
2004-01-23 23:11:03 +00:00
|
|
|
USE_SDL+= net
|
2002-11-03 14:34:09 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_GFX)
|
2004-01-23 23:11:03 +00:00
|
|
|
USE_SDL+= gfx
|
2002-11-03 14:34:09 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_IMAGE)
|
2004-01-23 23:11:03 +00:00
|
|
|
USE_SDL+= image
|
2002-11-03 14:34:09 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_MIXER)
|
2004-01-23 23:11:03 +00:00
|
|
|
USE_SDL+= mixer
|
2002-11-03 14:34:09 +00:00
|
|
|
.endif
|
|
|
|
|
2004-01-10 16:24:08 +00:00
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
IGNORE= This port requires perl 5.6 or newer
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500800
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
|
|
|
|
.endif
|
|
|
|
|
2002-11-03 14:34:09 +00:00
|
|
|
USE_PERL5= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2005-02-21 11:58:12 +00:00
|
|
|
INSTALL_TARGET= pure_install
|
2002-11-03 14:34:09 +00:00
|
|
|
|
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
2004-01-10 16:24:08 +00:00
|
|
|
MAN3= SDL.3 \
|
|
|
|
SDL::App.3 \
|
|
|
|
SDL::Cdrom.3 \
|
|
|
|
SDL::Color.3 \
|
|
|
|
SDL::Console.3 \
|
|
|
|
SDL::Cursor.3 \
|
|
|
|
SDL::Event.3 \
|
|
|
|
SDL::Font.3 \
|
|
|
|
SDL::Mixer.3 \
|
|
|
|
SDL::Music.3 \
|
|
|
|
SDL::OpenGL.3 \
|
|
|
|
SDL::OpenGL::Cube.3 \
|
|
|
|
SDL::OpenGL::Model.3 \
|
|
|
|
SDL::Palette.3 \
|
|
|
|
SDL::Rect.3 \
|
|
|
|
SDL::Shell.3 \
|
|
|
|
SDL::Sound.3 \
|
|
|
|
SDL::Surface.3 \
|
|
|
|
SDL::TTFont.3 \
|
|
|
|
SDL::Timer.3 \
|
|
|
|
SDL::Tool::Font.3 \
|
|
|
|
SDL::Tool::Graphic.3
|
2002-11-03 14:34:09 +00:00
|
|
|
|
|
|
|
pre-extract:
|
|
|
|
.if !defined(WITHOUT_SDL_GFX)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_SDL_GFX."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SDL_IMAGE)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_SDL_IMAGE."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SDL_MIXER)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_SDL_MIXER."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SDL_NET)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_SDL_NET."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SDL_TTF)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_SDL_TTF."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC}; ${PERL} ${WRKSRC}/Makefile.freebsd
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|