summaryrefslogtreecommitdiff
path: root/devel/p5-SDL/Makefile
blob: 1024e2d288b2f19601e7695e399eb3ac5fa51516 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# New Ports Collection Makefile for:	p5-sdl
# Date created:				2002-10-06
# Whom:					Klaus Goger <klaus.goger@reflex.at>
# $FreeBSD$

PORTNAME=	sdl
PORTVERSION=	1.20.3
PORTREVISION=	5
CATEGORIES=	devel
MASTER_SITES=	http://bloodgate.com/perl/sdl/pub/
PKGNAMEPREFIX=	p5-
DISTNAME=	SDL_perl-${PORTVERSION}

MAINTAINER=	philip@FreeBSD.org
COMMENT=	Perl Bindings for SDL

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg

USE_SDL=	sdl

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_SDL_TTF)
USE_SDL+=	ttf
.endif

.if !defined(WITHOUT_SDL_NET)
USE_SDL+=	net
.endif

.if !defined(WITHOUT_SDL_GFX)
USE_SDL+=	gfx
.endif

.if !defined(WITHOUT_SDL_IMAGE)
USE_SDL+=	image
.endif

.if !defined(WITHOUT_SDL_MIXER)
USE_SDL+=	mixer
.endif

.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

USE_PERL5=	yes
INSTALLS_SHLIB=	yes
INSTALL_TARGET=	pure_install

MAN3PREFIX=	${TARGETDIR}/lib/perl5/${PERL_VERSION}
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

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>