aboutsummaryrefslogtreecommitdiffstats
path: root/games/scourge-data/Makefile
blob: 5edfdd1e9a3c5faf90e18beddd952701810b61bc (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
# New ports collection makefile for:    scourge-data
# Date created:     2006-06-13
# Whom:         Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#

PORTNAME=   data
PORTVERSION=    0.21.1
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= scourge
PKGNAMEPREFIX=  scourge-
DISTNAME=   ${PKGNAMEPREFIX}${PORTVERSION}${PORTNAME:S/^/./}
DIST_SUBDIR=    ${PKGNAMEPREFIX:S/-//}

MAINTAINER= acm@FreeBSD.org
COMMENT=    S.C.O.U.R.G.E data files

NO_BUILD=   yes

DATADIR=    share/${PKGNAMEPREFIX:S/-//}
PLIST=      ${WRKDIR}/pkg-plist
WRKSRC=     ${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}${PORTNAME}

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:
    @cd ${WRKSRC} && \
        ${MKDIR} ${PREFIX}/${DATADIR} && \
            ${CP} -R * ${PREFIX}/${DATADIR}
    @cd ${PREFIX}/${DATADIR} && \
        ${FIND} * -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}

.include <bsd.port.mk>