openbsd-ports/games/tong/Makefile

40 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2017/07/26 22:45:22 sthen Exp $
COMMENT = Tetris and Pong played simultaneously on one playing field
DISTNAME = tong-1.3
CATEGORIES = games x11
REVISION = 1
HOMEPAGE = http://www.nongnu.org/tong/
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += SDL SDL_image SDL_mixer c m pthread ${COMPILER_LIBCXX}
MASTER_SITES = http://www.nongnu.org/tong/
LIB_DEPENDS = devel/sdl-image \
devel/sdl-mixer
USE_GMAKE = Yes
MAKE_FLAGS = CC="${CXX} ${CXXFLAGS}" \
GAME_DATA_DIR="${TRUEPREFIX}/share/tong"
NO_TEST = Yes
WRKDIST = ${WRKDIR}/tong
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tong ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tong
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tong
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/media/tong.png ${PREFIX}/share/pixmaps
${INSTALL_DATA_DIR} ${PREFIX}/share/tong
${INSTALL_DATA} ${WRKSRC}/*.png ${PREFIX}/share/tong
${INSTALL_DATA_DIR} ${PREFIX}/share/tong/media
${INSTALL_DATA} ${WRKSRC}/media/*.{png,xcf,ogg,ico} ${PREFIX}/share/tong/media
.include <bsd.port.mk>