blob: 4f45f0eda1a6f3c1a8a901bd55dadcfe4684a5ae (
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
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: battalion
# Date created: 17 May 1998
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
PORTNAME= battalion
PORTVERSION= 1.4b
CATEGORIES= games
MASTER_SITES= http://www.evl.uic.edu/aej/BATTALION/
DISTNAME= ${PORTNAME}${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} battalionSUN4.tar.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Monsters, explosions, destruction game for X Window System
USE_BZIP2= yes
USE_GL= glu
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
MAKE_JOBS_SAFE= yes
CFLAGS+= -I${LOCALBASE}/include/X11 -I${LOCALBASE}/include \
-DLINUXVERSION -DLINUXAUDIO
LDFLAGS= -L${LOCALBASE}/lib
MAN6= battalion.6
post-extract:
@${GZCAT} ${DISTDIR}/battalionSUN4.tar.gz | \
(cd ${WRKDIR} && ${TAR} --unlink -xf -)
@${RM} -f ${WRKSRC}/*.o
post-patch:
@${REINPLACE_CMD} -e \
'/dataPtr/s| = getenv.*| = "${DATADIR}";|' ${WRKSRC}/battalion.c
@${REINPLACE_CMD} -e \
's|<malloc\.h>|<stdlib.h>| ; \
s|<linux/soundcard\.h>|<sys/soundcard.h>|' ${WRKSRC}/soundIt.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/battalion ${PREFIX}/bin
${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man \
${MAN6PREFIX}/man/man6/battalion.6
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho \
${DATADIR}
@${MKDIR} ${DATADIR}/DATA
${INSTALL_DATA} ${WRKSRC}/DATA/*.data ${DATADIR}/DATA
@${MKDIR} ${DATADIR}/MUSIC
${INSTALL_DATA} ${WRKSRC}/MUSIC/*.au ${DATADIR}/MUSIC
@${MKDIR} ${DATADIR}/SOUNDS
${INSTALL_DATA} ${WRKSRC}/SOUNDS/*.au ${DATADIR}/SOUNDS
@${MKDIR} ${DATADIR}/TEXTURES
${INSTALL_DATA} ${WRKSRC}/TEXTURES/*.tex ${DATADIR}/TEXTURES
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/*.gif ${DOCSDIR}
.endif
.include <bsd.port.mk>
|