mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# 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
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
|
COMMENT= Educational arcade game starring Tux
|
|
|
|
USE_GMAKE= yes
|
|
USE_SDL= image mixer sdl
|
|
|
|
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>
|