# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ PORTNAME= data PORTVERSION= 0.3.0 CATEGORIES= games MASTER_SITES= SF/dangerdeep/danger_from_the_deep-${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= dangerdeep- DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//} MAINTAINER= ports@FreeBSD.org COMMENT= The Danger from the Deep data files USES= zip NO_BUILD= yes DATADIR= share/${PKGNAMEPREFIX:S/-//} PLIST= ${WRKDIR}/pkg-plist WRKSRC= ${WRKDIR}/${PORTNAME} NO_STAGE= yes pre-install: @${RM} -f ${PLIST} @cd ${WRKSRC} && \ ${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \ ${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST} @${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST} do-install: @${MKDIR} ${PREFIX}/${DATADIR} cd ${WRKSRC} && \ ${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/{}" \; && \ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/{}" \; .include