pkgsrc/games/baduki/Makefile
agc 78748d628a Instead of the clunky SHOW_PKG_PREFIX, introduce an EVAL_PREFIX definition,
which takes entries of the format <make-definition-name>=<pkgname>. This
has not been added to MAKEFLAGS because (a) premature optimisation is the
root of all evil, and (b) because the .for loop used to implement this
shows the wrong results when multiple prefices are evaluated.

Modify all the package Makefiles to use EVAL_PREFIX, thereby simplifying
them considerably.

ALso simplify the logic to calculate the prefix as well.
2000-07-15 20:39:13 +00:00

23 lines
619 B
Makefile

# $NetBSD: Makefile,v 1.13 2000/07/15 20:39:17 agc Exp $
DISTNAME= baduki-0.2.9
CATEGORIES= games
MASTER_SITES= http://soback.kornet21.net/~artist/baduk/
MAINTAINER= bad@netbsd.org
HOMEPAGE= http://soback.kornet21.net/~artist/baduk/baduki.html
DEPENDS+= gtk+-1.2.*:../../x11/gtk
USE_X11= yes
GNU_CONFIGURE= yes
EVAL_PREFIX+= GTKDIR=gtk+
CONFIGURE_ARGS+= --with-gtk-prefix=${GTKDIR}
CONFIGURE_ARGS+= --without-included-gettext
CONFIGURE_ENV+= GTK_CONFIG="${GTKDIR}/bin/gtk-config"
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
.include "../../mk/bsd.pkg.mk"