2005-03-02 21:43:19 +01:00
|
|
|
# $NetBSD: Makefile,v 1.9 2005/03/02 20:43:19 minskim Exp $
|
2002-09-16 09:05:01 +02:00
|
|
|
|
2003-01-11 16:32:57 +01:00
|
|
|
DISTNAME= emacs-w3m-1.3.3
|
2002-09-16 09:05:01 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= uebayasi@NetBSD.org
|
2002-09-16 09:05:01 +02:00
|
|
|
HOMEPAGE= http://emacs-w3m.namazu.org/
|
2003-07-22 06:14:17 +02:00
|
|
|
COMMENT= Simple w3m interface for Emacs
|
2002-09-16 09:05:01 +02:00
|
|
|
|
2003-01-11 16:32:57 +01:00
|
|
|
EMACS_DEPENDS+= {w3m,w3m-img}>=0.3.1:../../www/w3m
|
2003-08-18 15:19:37 +02:00
|
|
|
BUILD_DEPENDS+= ${PKGNAME_PREFIX}semi-*:../../devel/semi
|
2002-10-19 11:38:18 +02:00
|
|
|
|
|
|
|
# Not tested with xemacs...
|
2004-05-08 15:35:20 +02:00
|
|
|
EMACS_VERSIONS_ACCEPTED= emacs21 emacs21nox emacs20 xemacs214 xemacs215
|
2003-08-18 15:19:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/emacs.mk"
|
2002-10-19 11:38:18 +02:00
|
|
|
|
|
|
|
.if ${EMACS_FLAVOR} == "xemacs"
|
2003-01-11 16:32:57 +01:00
|
|
|
EMACS_DEPENDS+= apel>=10.3:../../devel/apel
|
2002-10-19 11:38:18 +02:00
|
|
|
BUILD_DEPENDS+= mew-xemacs-*:../../mail/mew-xemacs
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= mew-*:../../mail/mew
|
|
|
|
.endif
|
|
|
|
|
|
|
|
EMACS_MAJOR_VERSION= ${EMACS_VERSION:C/\..*//}
|
|
|
|
.if ${EMACS_FLAVOR} == "emacs" && ${EMACS_MAJOR_VERSION} == 21
|
2003-08-18 15:19:37 +02:00
|
|
|
BUILD_DEPENDS+= Mule-UCS>=0.84:../../editors/mule-ucs
|
2002-10-19 11:38:18 +02:00
|
|
|
.endif
|
2002-09-16 09:05:01 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= # defined
|
|
|
|
CONFIGURE_ARGS+=--with-emacs=${EMACS_BIN}
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= default
|
2002-10-19 11:38:18 +02:00
|
|
|
.if ${EMACS_FLAVOR} == "xemacs"
|
|
|
|
INSTALL_TARGET= install-package
|
|
|
|
.else
|
|
|
|
INSTALL_TARGET= install install-icons
|
|
|
|
.endif
|
2002-09-16 09:05:01 +02:00
|
|
|
|
2002-10-19 11:38:18 +02:00
|
|
|
DOCUMENTS= COPYING ChangeLog ChangeLog.1 FAQ FAQ.ja README README.ja README.namazu.ja README.shimbun.ja TIPS TIPS.ja
|
|
|
|
.if ${EMACS_FLAVOR} == "xemacs"
|
|
|
|
ETCDIR= lib/xemacs/site-packages/etc
|
|
|
|
ICONDIR= ${ETCDIR}/w3m
|
|
|
|
.else
|
2005-03-02 21:43:19 +01:00
|
|
|
ETCDIR= share/emacs/${EMACS_VERSION:C/[^0-9]*$//}/etc
|
2002-10-19 11:38:18 +02:00
|
|
|
ICONDIR= ${ETCDIR}/w3m/icons
|
|
|
|
.endif
|
|
|
|
DOCDIR= ${ETCDIR}/w3m/doc
|
|
|
|
PLIST_SUBST+= DOCDIR=${DOCDIR}
|
|
|
|
PLIST_SUBST+= ICONDIR=${ICONDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/${DOCDIR}
|
|
|
|
for f in ${DOCUMENTS}; do ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/${DOCDIR}; done
|
2002-09-16 09:05:01 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|