aboutsummaryrefslogtreecommitdiffstats
path: root/devel/sfml/Makefile
blob: 83aebf00c602943402005f2c1d7cbf22d85a8e7d (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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   sfml
PORTVERSION=    1.6
PORTREVISION=   2
CATEGORIES= devel
MASTER_SITES=   SF
DISTNAME=   SFML-${PORTVERSION}-sdk-linux-32

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Simple and Fast Multimedia Library

LIB_DEPENDS=    sndfile:${PORTSDIR}/audio/libsndfile \
        jpeg:${PORTSDIR}/graphics/jpeg \
        png15:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2

USE_GMAKE=  yes
USE_OPENAL= al
USE_XORG=   x11 xrandr
USE_GL=     gl glu
USE_LDCONFIG=   yes
USE_DOS2UNIX=   Makefile
MAKE_JOBS_SAFE= yes

WRKSRC=     ${WRKDIR}/SFML-${PORTVERSION}

PORTDOCS=   *

PORTSCOUT=  limit:[^c]$$

.include <bsd.port.options.mk>

post-extract:
    @${RM} -f ${WRKSRC}/lib/*
    @${FIND} ${WRKSRC}/samples/bin/ -type f -maxdepth 1 -delete

post-install:
.for lib in audio graphics network system window
    @${LN} -s libsfml-${lib}.so.${PORTVERSION} ${PREFIX}/lib/libsfml-${lib}.so.${PORTVERSION:C/^([0-9]).*/\1/}
.endfor
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${DOCSDIR}/
.endif

.include <bsd.port.mk>