blob: 3660a5e7b36245926e30920b5daa6dad7d3b75b1 (
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
|
# New ports collection makefile for: connectfive
# Date created: 20 Sep 2005
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= connectfive
PORTVERSION= 1.0.2
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= SF/connectfive
DISTNAME= connectFive
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= Place five pieces in a row on a 3d board
MAKEFILE= Makefile.linux
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
ALL_TARGET= default
USE_SDL= sdl
USE_GL= gl
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/connectFive
post-patch:
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile.linux
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/connect.cpp
@${REINPLACE_CMD} -e 's|Board::||' ${WRKSRC}/Board.h
do-install:
@${MKDIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/connectfive ${PREFIX}/bin/
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG.txt ${WRKSRC}/LICENSE.txt ${WRKSRC}/README.txt ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|