blob: 9d861eddd17575b5097c63e1cab2dc0fbb132b03 (
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
|
# New ports collection makefile for: qonk
# Date created: 10 Jul 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= qonk
DISTVERSION= 0.0.2beta1
CATEGORIES= games
MASTER_SITES= http://anthony.liekens.net/pub/files/
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Small build and conquer strategy game
USE_GMAKE= yes
USE_SDL= gfx sdl ttf
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(WITHOUT_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>
|