blob: 073931b7b36c1d67afbc89024aeb8d0fbacbd7a0 (
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
|
# New ports collection makefile for: smoke
# Date created: 05 Feb 2004
# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= smoke
PORTVERSION= 0.5.1
CATEGORIES= graphics
MASTER_SITES= http://www.chem.pwf.cam.ac.uk/~jdh30/programming/opengl/smoke/code/
MAINTAINER= tiamat@comset.net
COMMENT= Vector graphics OpenGL renderer
BUILD_DEPENDS= ${LOCALBASE}/bin/tmake:${PORTSDIR}/devel/tmake
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
USE_BZIP2= yes
USE_REINPLACE= yes
USE_SDL= yes
USE_GL= yes
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
TMAKE?= ${LOCALBASE}/bin/tmake
TMAKEPATH?= ${LOCALBASE}/share/tmake/freebsd-g++
PORTDOCS= README
.include <bsd.port.pre.mk>
.if exists(${FREETYPE_CONFIG})
FREETYPE_INCLUDEPATH!= ${FREETYPE_CONFIG} --cflags | ${SED} -e 's|-I||g'
.endif
.if exists(${SDL_CONFIG})
SDL_INCLUDEPATH!= ${SDL_CONFIG} --cflags | ${SED} -e 's|-I||g; s|-D[[:graph:]]*||g'
.endif
pre-everything::
@${ECHO_MSG} "This port depends on SDL with OpenGL support."
@${ECHO_MSG} "If your SDL does not support OpenGL, hit ^C now and reinstall SDL"
@${ECHO_MSG} "with OpenGL support turned on."
post-patch:
@${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g; \
s|%%SDL_CONFIG%%|${SDL_CONFIG}|g; \
s|%%FREETYPE_INCLUDEPATH%%|${FREETYPE_INCLUDEPATH}|g; \
s|%%SDL_INCLUDEPATH%%|${SDL_INCLUDEPATH}|g; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
${WRKSRC}/project
pre-build:
${SETENV} TMAKEPATH=${TMAKEPATH} \
${TMAKE} ${WRKSRC}/project >${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/smoke ${PREFIX}/bin
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${EXAMPLESDIR}/tests
${INSTALL_DATA} ${WRKSRC}/tests/tiger.* ${EXAMPLESDIR}/tests
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|