pkgsrc/www/emacs-w3m-snapshot/Makefile

50 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2012/10/28 06:30:14 asau Exp $
DISTNAME= w3m-el-snapshot_1.4.442+0.20110729.orig
PKGREVISION= 1
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME:S/w3m-el-snapshot_/emacs-w3m-/: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
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=${GAMEOWN}
BUILD_TARGET=
WRKSRC= ${WRKDIR}/emacs-w3m
EVAL_PREFIX+= W3M_PREFIX=w3m
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= w3m.el
SUBST_SED.paths= -e 's|@W3M@|${W3M_PREFIX}/bin/w3m|g'
INSTALL_MAKE_FLAGS= prefix=${DESTDIR}${PREFIX} \
infodir=${DESTDIR}${PREFIX}/${PKGINFODIR}
BUILD_DEFS+= VARBASE
BUILD_DEFS+= GAMEDATAMODE
PLIST_SRC+= PLIST
.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"