mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
e56a38c7b6
build-and-conquer strategy game with very simple rules. A complete game only lasts for a few minutes and can be a fun break away from work or whatever you're doing. PR: ports/83293 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# New ports collection makefile for: qonk
|
|
# Date created: 10 Jul 2005
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qonk
|
|
PORTVERSION= 0.0.1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://anthony.liekens.net/pub/files/
|
|
|
|
MAINTAINER= alejandro@varnet.biz
|
|
COMMENT= Small build and conquer strategy game
|
|
|
|
USE_GMAKE= yes
|
|
USE_SDL= gfx sdl ttf
|
|
USE_REINPLACE= yes
|
|
|
|
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
# Fix Makefile
|
|
@${REINPLACE_CMD} -e 's|g++|${CXX}| ; \
|
|
s|sdl-config|${SDL_CONFIG}| ; \
|
|
s|\(-O3\)|${CFLAGS} \1|' \
|
|
${WRKSRC}/${MAKEFILE}
|
|
|
|
# Fix paths to ${DATADIR}
|
|
@${REINPLACE_CMD} -e 's|\(font\.ttf\)|${DATADIR}/\1|' \
|
|
${WRKSRC}/main.cpp ${WRKSRC}/messages.cpp
|
|
|
|
# Enable/disable compilation optimizations
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
|
@${REINPLACE_CMD} -e 's|-O3||' \
|
|
${WRKSRC}/${MAKEFILE}
|
|
.endif
|
|
|
|
do-install:
|
|
# Program
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
# Data
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/font.ttf ${DATADIR}
|
|
|
|
.include <bsd.port.post.mk>
|