1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/games/connectfive/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

47 lines
1.2 KiB
Makefile

# 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= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= 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 -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
ALL_TARGET= default
USE_SDL= sdl
USE_GL= yes
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>