blob: 9d87763c77b9bdb0ffc04b66ea7d73850aa963e2 (
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
|
# New ports collection makefile for: scare
# Date created: 6 February 2005
# Whom: Peter Pentchev <roam@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= scare
PORTVERSION= 1.3.5
CATEGORIES= games
MASTER_SITES= ftp://ftp.ifarchive.org/if-archive/programming/adrift/ \
http://www.geocities.com/legion_if/
MAINTAINER= roam@FreeBSD.org
COMMENT= ADRIFT-compatible interactive games interpreter
OPTIONS= XGLK "Use the xglk graphics library" off
USE_ZIP= yes
.include <bsd.port.pre.mk>
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
BINFILES= scare
.if defined(WITH_XGLK)
PKGNAMESUFFIX= -glk
BUILD_DEPENDS+= ${X11BASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
RUN_DEPENDS+= ${X11BASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
ALL_TARGET= all glkscare
EXTRA_PATCHES= ${FILESDIR}/xglk.patch
BINFILES+= glkscare
.else
EXTRA_PATCHES= ${FILESDIR}/no-xglk.patch
.endif
PLIST_FILES= ${BINFILES:S,^,bin/,}
do-install:
${INSTALL_PROGRAM} ${BINFILES:S,^,${WRKSRC}/source/,} ${PREFIX}/bin/
test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check
.include <bsd.port.post.mk>
|