summaryrefslogtreecommitdiff
path: root/devel/sdl_sge/Makefile
blob: 45f95b7aed48dcd1ff7df6d79b474fa39bd9a388 (plain)
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
# Created by: Jona Joachim <walkingshadow@grummel.net>
# $FreeBSD$

PORTNAME=	sdl_sge
PORTVERSION=	0.030809
PORTREVISION=	15
CATEGORIES=	devel graphics
MASTER_SITES=	http://ports-space.haiku-files.org/source/
DISTNAME=	sge030809

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Graphic library for the Simple DirectMedia Layer (SDL)

LICENSE=	LGPL21 LGPL3
LICENSE_COMB=	dual

USES=		gmake
USE_SDL=	sdl
USE_LDCONFIG=	yes

PORTDOCS=	*
PORTEXAMPLES=	*

OPTIONS_DEFINE=	SDL FREETYPE DOCS EXAMPLES
OPTIONS_DEFAULT=SDL FREETYPE
SDL_DESC=	Enable support for SDL_image

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFREETYPE}
LIB_DEPENDS+=	libfreetype.so:print/freetype2
MAKE_ARGS+=	USE_FT=y
.else
MAKE_ARGS+=	USE_FT=n
.endif

.if ${PORT_OPTIONS:MSDL}
USE_SDL+=	image
MAKE_ARGS+=	USE_IMG=y
.else
MAKE_ARGS+=	USE_IMG=n
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		's|PREFIX =PREFIX|PREFIX =${STAGEDIR}${PREFIX}|g ; \
		 s|PREFIX_H =PREFIX_H|PREFIX_H =${STAGEDIR}${PREFIX}/include/SDL|g ; \
		 s|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libSGE.so
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>