ports/159457: Update port: games/tuxracer

KATO Tsuguru tkato432 at yahoo.com
Wed Aug 3 18:40:25 UTC 2011


>Number:         159457
>Category:       ports
>Synopsis:       Update port: games/tuxracer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 03 18:40:24 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Support USE_TK
- Support COPYTREE_SHARE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/tuxracer/Makefile games/tuxracer/Makefile
--- /usr/ports/games/tuxracer/Makefile	2011-03-03 12:54:28.000000000 +0900
+++ games/tuxracer/Makefile	2011-07-30 16:06:33.000000000 +0900
@@ -9,38 +9,36 @@
 PORTVERSION=	0.61
 PORTREVISION=	10
 CATEGORIES=	games
-MASTER_SITES=	SF
-DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz \
-		${PORTNAME}-data-${PORTVERSION}.tar.gz
+MASTER_SITES=	SF \
+		SF/${PORTNAME}/${PORTNAME}-data/${PORTVERSION}:data
+DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}-data-${PORTVERSION}${EXTRACT_SUFX}:data
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A 3d penguin racing game using OpenGL
 
-LIB_DEPENDS=	tcl85:${PORTSDIR}/lang/tcl85
-
 USE_SDL=	mixer sdl
 USE_GL=		gl
 USE_XORG=	x11 xt xmu xi
+USE_TK_BUILD=	yes
+USE_TK=		yes
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	automake14 autoconf
 AUTOMAKE_ARGS=	-a
 CONFIGURE_ENV=	THREAD_LIB="${PTHREAD_LIBS}"
-MAKE_ENV=	${CONFIGURE_ENV}
-CONFIGURE_ARGS=	--with-tcl-inc="${LOCALBASE}/include/tcl8.5" \
+CONFIGURE_ARGS=	--with-tcl-inc="${TCL_INCLUDEDIR}" \
 		--with-tcl-libs="${LOCALBASE}/lib" \
 		--with-gl-libs="${LOCALBASE}/lib" \
 		--with-gl-inc="${LOCALBASE}/include" \
-		--with-data-dir=${PREFIX}/share/tuxracer
-
-WORKDATA=	${WRKDIR}/${PORTNAME}-data-${PORTVERSION}
-COURSEDIRS=	1 2 3 4 5 6 7 8 9 10 11
+		--with-data-dir=${DATADIR}
+MAKE_ENV=	${CONFIGURE_ENV}
 
 post-extract:
 	@${RM} ${WRKSRC}/missing
 
 post-install:
 	@${MKDIR} ${DATADIR}
-	@(${CHMOD} -R o+r ${WORKDATA} && cd ${WORKDATA} && ${TAR} -c -f - *) | \
-		(cd ${DATADIR} && ${TAR} -x -f - )
+	@(cd ${WORKDATA} ${WRKDIR}/${PORTNAME}-data-${PORTVERSION} \
+		&& ${COPYTREE_SHARE} . ${DATADIR})
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list