blob: da789d52c087880647f89a8d263ba0fa85ea5596 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: fmars
# Date created: 16 Jul 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= fmars
PORTVERSION= 0.0.207
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.v-lo.krakow.pl/~michal/
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Fast Memory Array Redcode Simulator
BUILD_DEPENDS= guile:${PORTSDIR}/lang/guile
USE_BZIP2= yes
USE_GMAKE= yes
ALL_TARGET= x${PORTNAME}
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
.include <bsd.port.pre.mk>
post-patch:
# Fix Makefile.
@${REINPLACE_CMD} -e 's|\($$(OPT)\)|${CFLAGS} \1| ; \
s|gcc|${CC}|g' \
${WRKSRC}/${MAKEFILE}
# Enable/disable compilation optimizations.
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE}
.endif
do-install:
# Program.
${INSTALL_PROGRAM} ${WRKSRC}/x${PORTNAME} ${PREFIX}/bin/${PORTNAME}
# Data.
${MKDIR} ${DATADIR}
.for d in rc rc-test
${CP} -R ${WRKSRC}/${d} ${DATADIR}
.endfor
# Documentation (optional).
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
post-install:
# Fix permissions.
@${CHOWN} -R ${BINOWN}:${BINGRP} ${DATADIR}
@${FIND} ${DATADIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644
@${FIND} ${DATADIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755
.include <bsd.port.post.mk>
|