blob: e2c93307054911d0f56e790f1d68f77cf0c7df3d (
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
|
# New ports collection makefile for: scare
# Date created: 6 February 2005
# Whom: Peter Pentchev <roam@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= scare
PORTVERSION= 1.3.7
CATEGORIES= games
MASTER_SITES= ftp://ftp.ifarchive.org/if-archive/programming/adrift/
MAINTAINER= ports@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+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
RUN_DEPENDS+= ${LOCALBASE}/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>
|