diff options
Diffstat (limited to 'misc/chipmunk/Makefile')
-rw-r--r-- | misc/chipmunk/Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/misc/chipmunk/Makefile b/misc/chipmunk/Makefile index d406e8f729f..9fe78abb361 100644 --- a/misc/chipmunk/Makefile +++ b/misc/chipmunk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 1999/06/23 18:18:53 drochner Exp $ +# $NetBSD: Makefile,v 1.2 1999/07/13 01:32:22 jlam Exp $ # DISTNAME= chipmunk-1.4 @@ -8,15 +8,22 @@ MASTER_SITES= http://www.bitwizard.nl/chipmunk/ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.bitwizard.nl/chipmunk/index.html -DEPENDS+= readline-2.2:../../devel/readline +.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_FLAGS= CONFIG_OPTIONS=-I$(PREFIX)/include \ - LDFLAGS=-L$(PREFIX)/lib EXTRA_LIBS=-li386 +MAKE_ENV+= CONFIG_OPTIONS="${CPPFLAGS}" EXTRA_LIBS=-li386 \ + LIBREADLINE=${LIBREADLINE} do-install: - $(INSTALL_PROGRAM) $(WRKSRC)/chipmunk $(PREFIX)/sbin/chipmunk + ${INSTALL_PROGRAM} ${WRKSRC}/chipmunk ${PREFIX}/sbin/chipmunk .include "../../mk/bsd.pkg.mk" |