summaryrefslogtreecommitdiff
path: root/www/arena/Makefile
blob: a52b1970edcb4eec096abdc3b30184a1d184b0f6 (plain)
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
# $NetBSD: Makefile,v 1.2 1998/07/15 01:09:21 tv Exp $
# FreeBSD Id: Makefile,v 1.10 1998/05/04 20:22:31 jseger Exp
#

DISTNAME=	arena-0.3.61
CATEGORIES=	www
MASTER_SITES=	ftp://ftp.yggdrasil.com/pub/dist/web/arena/

MAINTAINER=	tv@netbsd.org

DEPENDS=	libwww-5.1m1:../../www/libwww \
		jpeg-6b:../../graphics/jpeg \
		png-0.96:../../graphics/png \
		xpm-3.4k:../../graphics/xpm

USE_GMAKE=	yes
MAKEFILE=	makefile
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-libwww-include=${PREFIX}/include/w3c-libwww
CONFIGURE_ENV=	CPPFLAGS="-I${PREFIX}/include -I${X11BASE}/include -I${WRKDIR}" \
		LDFLAGS="-L${PREFIX}/lib -L${X11BASE}/lib"

WRKSRC=		${WRKDIR}/Arena-0.3.61

# Arena requires libwww's "config.h" header - it is installed as "wwwconf.h",
# so make a symlink in ${WRKDIR} and add it to the -I list.
pre-configure:
	@${LN} -sf ${PREFIX}/include/w3c-libwww/wwwconf.h ${WRKDIR}/config.h

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/Arena/netbsd/arena ${PREFIX}/bin/
	${INSTALL_DATA_DIR} ${PREFIX}/share/Arena
	${INSTALL_DATA} ${WRKSRC}/Arena/Source/arenarc ${PREFIX}/share/Arena/
	${INSTALL_DATA} ${WRKSRC}/Arena/doc/arena.man ${PREFIX}/man/man1/arena.1

.include "../../mk/bsd.pkg.mk"