blob: 8292f8a55ed66b41db1e8d9e7d14cf48e6d3b4df (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: warsow-data
# Date created: 2006-08-03
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= data
PORTVERSION= 0.12
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://ftp.club-internet.fr/pub/games/nofrag/warsow/ \
http://mirrors-av.club-internet.fr/pub/games/nofrag/warsow/ \
http://kenh.rxvt.net/ \
http://turkeyfiles.escapedturkey.net/warsow/versions/ \
http://www.gizmo.fi/warsow/ \
http://warsow.as-mirror.net/ \
http://wsw.surreal-xenotronic.com/ \
http://tmp.death-row.org/
PKGNAMEPREFIX= warsow-
DISTNAME= ${PKGNAMEPREFIX:S/-//}_${PORTVERSION}_linux
DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
MAINTAINER= acm@FreeBSD.org
COMMENT= Warsow data files
NO_BUILD= yes
WARSOW_EXTRACT= ${PKGNAMEPREFIX:S/-//}/basewsw ${PKGNAMEPREFIX:S/-//}/docs
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:S/-//}
WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX:S/-//}
EXTRACT_AFTER_ARGS= | ${TAR} -xf - ${WARSOW_EXTRACT}
post-extract:
${RM} -R ${WRKSRC}/basewsw/*.so
${RM} -R ${WRKSRC}/basewsw/screenshots ${WRKSRC}/basewsw/demos
do-install:
@${MKDIR} ${DATADIR}
@cd ${WRKSRC}/basewsw && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(pk3|cfg|hud)" \
-exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
. for FILE in Shader* bots_navigation.txt changelog.txt contact.txt dedicated* demoavi.txt \
huds.txt linux_sound_sdl.txt new* query*
${INSTALL_DATA} ${WRKSRC}/docs/${FILE} ${DOCSDIR}
. endfor
.endif
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|