summaryrefslogtreecommitdiff
path: root/misc/chipmunk/Makefile
blob: c023a1e6f20157ebbef6f2ac2641c9c561877cb5 (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
# $NetBSD: Makefile,v 1.3 2000/07/20 15:41:05 tron Exp $
#

DISTNAME=       chipmunk-1.4
CATEGORIES=	misc
MASTER_SITES=   http://www.bitwizard.nl/chipmunk/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.bitwizard.nl/chipmunk/index.html

.if exists(/usr/include/readline.h)
CPPFLAGS+=	-DHAVE_READLINE_H=1
LIBREADLINE=	edit
.else
DEPENDS+=	readline>=4.0:../../devel/readline
CPPFLAGS+=	-I${LOCALBASE}/include
LIBREADLINE=	readline
.endif

ONLY_FOR_PLATFORM=	NetBSD-*-i386

ALL_TARGET=	chipmunk
MAKE_ENV+=	CONFIG_OPTIONS="${CPPFLAGS}" EXTRA_LIBS=-li386 \
		LIBREADLINE=${LIBREADLINE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/chipmunk ${PREFIX}/sbin/chipmunk

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