2002-11-03 15:34:09 +01:00
|
|
|
# New Ports Collection Makefile for: p5-sdl
|
|
|
|
# Date created: 2002-10-06
|
|
|
|
# Whom: Klaus Goger <klaus.goger@reflex.at>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-12-26 09:37:43 +01:00
|
|
|
PORTNAME= SDL
|
2010-08-07 16:03:04 +02:00
|
|
|
PORTVERSION= 2.2.6
|
2010-08-11 08:57:34 +02:00
|
|
|
PORTREVISION= 1
|
2008-05-19 15:12:08 +02:00
|
|
|
CATEGORIES= devel perl5
|
2008-12-26 09:37:43 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
2010-08-07 16:03:04 +02:00
|
|
|
MASTER_SITE_SUBDIR=SDL
|
2002-11-03 15:34:09 +01:00
|
|
|
PKGNAMEPREFIX= p5-
|
2010-08-07 16:03:04 +02:00
|
|
|
DISTNAME= SDL_Perl-v${PORTVERSION}
|
2002-11-03 15:34:09 +01:00
|
|
|
|
2008-12-26 09:37:43 +01:00
|
|
|
MAINTAINER= spam@rm-rf.kiev.ua
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= Perl Bindings for SDL
|
2002-11-03 15:34:09 +01:00
|
|
|
|
2010-08-07 16:03:04 +02:00
|
|
|
BUILD_DEPENDS= p5-YAML>=0.62:${PORTSDIR}/textproc/p5-YAML
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg
|
2002-11-03 15:34:09 +01:00
|
|
|
|
2004-01-24 00:11:03 +01:00
|
|
|
USE_SDL= sdl
|
2008-12-26 09:37:43 +01:00
|
|
|
PERL_MODBUILD= yes
|
|
|
|
|
|
|
|
OPTIONS= SDL_TTF "Enable TTF support" on \
|
2010-08-07 16:03:04 +02:00
|
|
|
SDL_NET "Enable NET support" on \
|
|
|
|
SDL_GFX "Enable GFX support" on \
|
|
|
|
SDL_IMAGE "Enable IMAGE support" on \
|
|
|
|
SDL_MIXER "Enable MIXER support" on
|
2004-01-20 22:44:21 +01:00
|
|
|
|
2002-11-03 15:34:09 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_TTF)
|
2004-01-24 00:11:03 +01:00
|
|
|
USE_SDL+= ttf
|
2002-11-03 15:34:09 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_NET)
|
2004-01-24 00:11:03 +01:00
|
|
|
USE_SDL+= net
|
2002-11-03 15:34:09 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_GFX)
|
2004-01-24 00:11:03 +01:00
|
|
|
USE_SDL+= gfx
|
2002-11-03 15:34:09 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_IMAGE)
|
2004-01-24 00:11:03 +01:00
|
|
|
USE_SDL+= image
|
2002-11-03 15:34:09 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL_MIXER)
|
2004-01-24 00:11:03 +01:00
|
|
|
USE_SDL+= mixer
|
2002-11-03 15:34:09 +01:00
|
|
|
.endif
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-11-03 15:34:09 +01:00
|
|
|
|
2007-08-04 13:41:30 +02:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
2002-11-03 15:34:09 +01:00
|
|
|
|
2008-12-26 09:37:43 +01:00
|
|
|
MAN3= SDL.3 \
|
|
|
|
SDL::App.3 \
|
|
|
|
SDL::Cdrom.3 \
|
|
|
|
SDL::Color.3 \
|
|
|
|
SDL::Cursor.3 \
|
|
|
|
SDL::Event.3 \
|
|
|
|
SDL::Font.3 \
|
2010-08-07 16:03:04 +02:00
|
|
|
SDL::Game::Rect.3 \
|
2008-12-26 09:37:43 +01:00
|
|
|
SDL::MPEG.3 \
|
|
|
|
SDL::Mixer.3 \
|
|
|
|
SDL::Music.3 \
|
|
|
|
SDL::OpenGL.3 \
|
|
|
|
SDL::Palette.3 \
|
|
|
|
SDL::Rect.3 \
|
|
|
|
SDL::SFont.3 \
|
|
|
|
SDL::Sound.3 \
|
|
|
|
SDL::Surface.3 \
|
|
|
|
SDL::TTFont.3 \
|
|
|
|
SDL::Timer.3 \
|
|
|
|
SDL::Tool::Font.3 \
|
|
|
|
SDL::Tool::Graphic.3 \
|
|
|
|
SDL::Tutorial.3 \
|
|
|
|
SDL::Tutorial::Animation.3 \
|
|
|
|
SDL::Tutorial::Drawing.3 \
|
2010-08-07 16:03:04 +02:00
|
|
|
SDL::Tutorial::Images.3 \
|
|
|
|
SDL::Tutorial::LunarLander.3 \
|
2008-12-26 09:37:43 +01:00
|
|
|
SDL::Video.3
|
|
|
|
|
|
|
|
post-install:
|
2010-08-07 16:03:04 +02:00
|
|
|
@if [ -n "${PERL}" ]; then \
|
2008-12-26 09:37:43 +01:00
|
|
|
PERL_THREADED=`${PERL} -V | ${GREP} -- -Dusethreads=y || ${TRUE}`; \
|
|
|
|
if [ -z ${PERL_THREADED} ]; then \
|
2010-08-07 16:03:04 +02:00
|
|
|
${ECHO_MSG}; \
|
2008-12-26 09:37:43 +01:00
|
|
|
${ECHO_MSG} "SDL_PERL must be built with a threaded Perl, reinstall Perl with WITH_THREADS=yes"; \
|
2010-08-07 16:03:04 +02:00
|
|
|
${ECHO_MSG}; \
|
2008-12-26 09:37:43 +01:00
|
|
|
fi; \
|
|
|
|
fi
|
2009-12-17 23:28:41 +01:00
|
|
|
|
2002-11-03 15:34:09 +01:00
|
|
|
.include <bsd.port.post.mk>
|