blob: 6f735af1f5549672d9453ca19668696ef5efdeec (
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: quake2-rogue
# Date created: 26 Jul 2006
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= rogue
PORTVERSION= 3.20
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR= quake2/source
PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}src${PORTVERSION:S/.//}
EXTRACT_SUFX= .shar.Z
MAINTAINER= danfe@FreeBSD.org
COMMENT= Quake II Ground Zero (Rogue) Mission Pack
NO_WRKSUBDIR= yes
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
PLIST_FILES= %%Q2DIR%%/${PORTNAME}/game.so
PLIST_DIRS= %%Q2DIR%%/${PORTNAME}
SUB_FILES= pkg-message
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.pre.mk>
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && \
uncompress -c ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
${TAIL} +454 | ${SH}
post-extract:
@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
post-patch:
@${REINPLACE_CMD} -e '/#include <nan.h>/d' ${WRKSRC}/g_local.h
@${REINPLACE_CMD} -e 's/__linux__/__unix__/' ${WRKSRC}/q_shared.[ch]
do-install:
${MKDIR} ${Q2DIR}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/${PORTNAME}
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>
|