# New ports collection makefile for:	fretsonfire-data
# Date created:		2006-10-02
# Whom:			Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD: ports/games/fretsonfire-data/Makefile,v 1.6 2007/04/20 19:57:22 acm Exp $
#

PORTNAME=	data
PORTVERSION=	1.2.451
CATEGORIES=	games python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PKGNAMEPREFIX:S/-//}
PKGNAMEPREFIX=	fretsonfire-
DISTNAME=	${PKGNAMEPREFIX:S/f/F/g:S/o/O/}${PORTVERSION:S/$/-linux/}
DIST_SUBDIR=	${PKGNAMEPREFIX:S/-//}

MAINTAINER=	acm@FreeBSD.org
COMMENT=	Frets on Fire data files

NO_BUILD=	yes
DATADIR=	share/${PKGNAMEPREFIX:S/-//}
RESTRICTED=	Only Unreal Voodoo site is allowed to distribute the music
WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX:S/f/F/g:S/o/O/:S/-//}

EXTRACT_AFTER_ARGS=	| ${TAR} -xf - ${PKGNAMEPREFIX:S/f/F/g:S/o/O/:S/-//}/${PORTNAME}

do-install:
	@${MKDIR} ${PREFIX}/${DATADIR}
	@cd ${WRKSRC}/data && \
		${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/{}" \; && \
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/{}" \;

.include <bsd.port.mk>
