blob: 3d9e9d4a5c79d29ae0b347d3f29ddf64dc01872b (
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
|
# New ports collection makefile for: SGE
# Date created: 30 July 2006
# Whom: Jona Joachim <walkingshadow@grummel.net>
#
# $FreeBSD$
#
PORTNAME= sdl_sge
PORTVERSION= 0.030809
PORTREVISION= 2
CATEGORIES= devel graphics
MASTER_SITES= http://www.etek.chalmers.se/~e8cal1/sge/files/ \
http://www.digitalfanatics.org/cal/sge/files/
DISTNAME= sge030809
MAINTAINER= walkingshadow@grummel.net
COMMENT= A graphic library for the Simple DirectMedia Layer (SDL)
USE_GMAKE= yes
USE_LDCONFIG= yes
OPTIONS= SDL_IMAGE "Enable support for SDL_IMAGE" On \
FREETYPE "Enable FreeType support" On \
DOCS "Install documentation" Off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_FREETYPE)
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
.endif
.if defined(WITHOUT_SDL_IMAGE)
USE_SDL= sdl
.else
USE_SDL= image
.endif
.if !defined(WITH_DOCS)
NOPORTDOCS= yes
.endif
post-patch:
.if defined(WITHOUT_SDL_IMAGE)
@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = n|g' ${WRKSRC}/Makefile.conf
.else
@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = y|g' ${WRKSRC}/Makefile.conf
.endif
.if defined(WITHOUT_FREETYPE)
@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = n|g' ${WRKSRC}/Makefile.conf
.else
@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = y|g' ${WRKSRC}/Makefile.conf
.endif
@${REINPLACE_CMD} -e 's|PREFIX =PREFIX|PREFIX =${PREFIX}|g' ${WRKSRC}/Makefile.conf
@${REINPLACE_CMD} -e 's|PREFIX_H =PREFIX_H|PREFIX_H =${PREFIX}/include/SDL|g' ${WRKSRC}/Makefile.conf
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_MAN} ${WRKSRC}/docs/* ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_MAN} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|