8c349b6e46
created or not. Packages that include other ELP's buildlink3.mk must define EMACS_BUILDLINK. Other packages don't create wrappers, which reduces build time a lot.
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.24 2008/10/13 08:07:02 uebayasi Exp $
|
|
|
|
DISTNAME= emacs-w3m-1.4.4
|
|
PKGREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
MAINTAINER= uebayasi@NetBSD.org
|
|
HOMEPAGE= http://emacs-w3m.namazu.org/
|
|
COMMENT= Simple w3m interface for Emacs
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
INSTALLATION_DIRS= ${ETCDIR}
|
|
|
|
USE_TOOLS+= makeinfo
|
|
INFO_FILES= YES
|
|
|
|
DEPENDS+= w3m>=0.5.1nb2:../../www/w3m
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-emacs=${EMACS_BIN:Q}
|
|
CONFIGURE_ARGS+=--with-icondir=${ICONDIR}
|
|
BUILD_TARGET= default
|
|
INSTALL_TARGET= ${INSTALL_TARGET.${EMACS_FLAVOR}}
|
|
MAKE_FLAGS= prefix=${DESTDIR}${PREFIX} ICONDIR=${DESTDIR}${ICONDIR}
|
|
PLIST_SUBST+= ETCDIR=${ETCDIR:Q}
|
|
|
|
SUBST_CLASSES+= fix-icondir
|
|
SUBST_STAGE.fix-icondir= pre-configure
|
|
SUBST_FILES.fix-icondir= Makefile.in w3m.el w3mhack.el
|
|
SUBST_SED.fix-icondir= -e 's|etc/images/w3m|etc/w3m|g' \
|
|
-e 's|images/w3m|w3m|g'
|
|
|
|
EMACS_BUILDLINK=# defined
|
|
|
|
.include "../../editors/emacs/modules.mk"
|
|
|
|
# GNU Emacs 21 or later and XEmacs have GUI support
|
|
PLIST_VARS+= gui
|
|
.if (${EMACS_FLAVOR} == "emacs" && ${EMACS_VERSION_MAJOR} > 20) || \
|
|
${EMACS_FLAVOR} == "xemacs"
|
|
PLIST.gui= yes
|
|
.endif
|
|
|
|
DOCUMENTS= COPYING ChangeLog ChangeLog.1 README README.ja
|
|
ETCDIR= ${ETCDIR.${EMACS_FLAVOR}}
|
|
ICONDIR= ${PREFIX}/${ETCDIR}
|
|
|
|
INSTALL_TARGET.emacs= install install-icons
|
|
INSTALL_TARGET.xemacs= install-package
|
|
ETCDIR.emacs= share/emacs/${_EMACS_VERSION_NOREV}/etc/w3m
|
|
ETCDIR.xemacs= lib/xemacs/site-packages/etc/w3m
|
|
|
|
post-install:
|
|
for f in ${DOCUMENTS}; do ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/${ETCDIR}; done
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../devel/apel/buildlink3.mk"
|
|
.include "../../devel/semi/buildlink3.mk"
|
|
.include "../../editors/mule-ucs/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|