diff options
author | jlam <jlam@pkgsrc.org> | 1999-07-13 01:31:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 1999-07-13 01:31:06 +0000 |
commit | 3cf3f15f9eacba26c3f86b2c3e4c8e4c915dea85 (patch) | |
tree | 32b936513d96172633d3ebf37d9b0c7faa21a01f /misc/chipmunk/Makefile | |
parent | ac803dafa17532bbe0ee594887740a8bee81007e (diff) | |
download | pkgsrc-3cf3f15f9eacba26c3f86b2c3e4c8e4c915dea85.tar.gz |
* Use libedit's readline wrapper instead of readline when possible.
* Update readline dependency.
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" |