pkgsrc/www/emacs-w3m-snapshot/Makefile
jperkin 8530ce776d Remove mk/find-prefix.mk usage from the www category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:54:07 +00:00

43 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2015/11/25 12:54:07 jperkin Exp $
DISTNAME= w3m-el-snapshot_1.4.554+0.20150609.orig
PKGNAME= ${EMACS_PKGNAME_PREFIX}emacs-${DISTNAME:S/-el-snapshot_/-/:S/+0//:S/.orig//}
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/w/w3m-el-snapshot/}
MAINTAINER= makoto@ki.nu
HOMEPAGE= http://emacs-w3m.namazu.org/
COMMENT= Emacs frontend for w3m browser
LICENSE= gnu-gpl-v2
USE_TOOLS+= makeinfo gzip autoconf
INFO_FILES= yes
DEPENDS+= w3m{,-img}>=0.5.2nb3:../../www/w3m
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --srcdir=${WRKSRC}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ENV+= GAMEOWN=${GAMES_USER}
BUILD_TARGET=
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= w3m.el
SUBST_SED.paths= -e 's|@W3M@|${LOCALBASE}/bin/w3m|g'
BUILD_DEFS+= VARBASE
BUILD_DEFS+= GAMEDATAMODE
.include "options.mk"
.include "../../devel/apel/buildlink3.mk"
.include "../../devel/flim/buildlink3.mk"
.include "../../editors/mule-ucs/buildlink3.mk"
pre-configure:
cd ${WRKSRC} && autoconf
.include "../../mk/bsd.pkg.mk"