blob: 155487b42252a5277c17a080f230609c926c0c5f (
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
|
# New ports collection makefile for: tuxmath
# Date created: 14 Jul 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= tuxmath
DISTVERSION= 2001.09.07-0102
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= alejandro@varnet.biz
COMMENT= Educational arcade game starring Tux
USE_GMAKE= yes
USE_SDL= image mixer sdl
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
post-extract:
# Remove CVS and .xvpics directories
.for d in CVS .xvpics
@${FIND} ${WRKSRC} -type d -name ${d} -print0 | \
${XARGS} -0 ${RM} -rf
.endfor
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
post-patch:
# Fix Makefile
@${REINPLACE_CMD} -e 's|/usr/share/tuxmath|${DATADIR}| ; \
s|\(BIN_PREFIX=\).*|\1${PREFIX}/bin/| ; \
s|sdl-config|${SDL_CONFIG}|' \
${WRKSRC}/${MAKEFILE}
.include <bsd.port.mk>
|