2001-04-02 03:04:50 +02:00
|
|
|
# New ports collection makefile for: emacs-w3m
|
|
|
|
# Date Created: 24 Mar 2001
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= emacs-w3m
|
2010-12-24 19:35:15 +01:00
|
|
|
PORTVERSION= 1.4.423.b.${SNAPDATE}
|
2001-04-02 03:04:50 +02:00
|
|
|
CATEGORIES= www elisp
|
2010-12-24 19:35:15 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= nobutaka
|
2001-04-02 03:04:50 +02:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
2010-12-24 19:35:15 +01:00
|
|
|
DISTNAME= ${PORTNAME}-1.4.423-${SNAPDATE}
|
2001-04-02 03:04:50 +02:00
|
|
|
|
2001-11-03 20:16:50 +01:00
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2007-07-29 11:05:15 +02:00
|
|
|
COMMENT?= Simple front-end to w3m for emacs
|
2001-04-02 03:04:50 +02:00
|
|
|
|
2010-12-24 19:35:15 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2010-01-27 17:20:53 +01:00
|
|
|
USE_BZIP2= yes
|
- Fix possibility of "infinite make fork" when "Registering install for ..."
EMACS ports. [1]
- Allow building a port as root using an NFS-mounted /usr/ports if the
server maps root to a UID other than root. [2]
- Make 'BROKEN' and 'IGNORED' ports exit their "make install" with a fail
status rather than success. [3]
- Improve behavior when dealing with versioned dependencies. [4]
- Fix false positives in check-conflicts target. [5]
- Remove obsolete bzip2 code. [6]
- Add physical category net-p2p. [7]
- Don't fetch INDEXFILE if not necessary; respect FETCH_ENV. [8], [11]
- INDEX can now be moved outside of ports tree. [9]
- Add ghostscript-gpl. [10]
- Remove obsolete USE_MESA. [12]
- Force pkg_install tools from ports on FreeBSD 4.10 and older. [13]
- Document ALWAYS_KEEP_DISTFILES. [14]
- Remove USE_REINPLACE from bsd.port.mk USE_DOS2UNIX patch. [15]
PR: ports/37596 [1], ports/57259 [2], ports/63216 [3],
ports/89448 [4], ports/89710 [5], ports/88996 [6],
ports/89260 [7], ports/89363 [8], ports/89809 [9],
ports/89853 [10], ports/91086 [11], ports/91710 [12],
ports/91727 [13], ports/92111 [14], ports/92124 [15]
Submitted by: Jay Sachs <jay at eziba dot com> [1], sem [1, 3, 8, 12],
Andrew Heybey <ath at niksun dot com> [2], Jamie Jones
<jamie at thompson dot bishopston dot net>, tobez [4], Mark
Andrews <Mark_Andrews at isc dot org> [5], edwin [6, 11, 15],
pav [7, 13], Peter Jeremy <PeterJeremy at optushome dot com
dot au> [9], Ulrich Spoerlein <q at galgenberg dot net> [10],
netchild [11], erwin [14]
Reviewed by: kris, clement (partially)
2006-01-28 03:11:35 +01:00
|
|
|
USE_EMACS= yes
|
2001-12-03 18:27:41 +01:00
|
|
|
|
2010-12-24 19:35:15 +01:00
|
|
|
SNAPDATE= 20101224
|
2010-01-27 17:20:53 +01:00
|
|
|
|
2001-12-03 18:27:41 +01:00
|
|
|
CONFIGURE_ARGS?= --with-emacs=${EMACS_CMD} \
|
2002-03-06 15:20:49 +01:00
|
|
|
--with-lispdir=${PREFIX}/${LISPDIR} \
|
|
|
|
--with-icondir=${PREFIX}/${ICONDIR}
|
2001-12-03 18:27:41 +01:00
|
|
|
LISPDIR?= ${EMACS_VERSION_SITE_LISPDIR}/w3m
|
2001-12-24 14:47:58 +01:00
|
|
|
ICONDIR?= ${EMACS_LIBDIR_WITH_VER}/etc/w3m/icons
|
|
|
|
ETCDIR?= ${EMACS_LIBDIR_WITH_VER}/etc/w3m
|
2001-04-02 03:04:50 +02:00
|
|
|
|
2005-12-31 16:00:00 +01:00
|
|
|
INFO= emacs-w3m-ja emacs-w3m
|
2005-12-04 21:07:17 +01:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf213
|
2001-04-02 03:04:50 +02:00
|
|
|
ALL_TARGET= default
|
|
|
|
|
2003-07-06 07:52:53 +02:00
|
|
|
PLIST_SUB+= LISPDIR=${LISPDIR} \
|
2001-12-24 14:47:58 +01:00
|
|
|
ICONDIR=${ICONDIR} \
|
2003-07-06 07:52:53 +02:00
|
|
|
ETCDIR=${ETCDIR} \
|
2002-07-27 12:44:56 +02:00
|
|
|
SHIMBUN=${SHIMBUN}
|
2001-04-02 03:04:50 +02:00
|
|
|
|
2003-06-22 10:21:38 +02:00
|
|
|
DOCS= README
|
|
|
|
DOCS_JA= README.ja
|
2001-04-02 03:04:50 +02:00
|
|
|
|
2001-04-11 06:11:40 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
|
|
|
|
DOCSDIR_JA= ${PREFIX}/share/doc/ja/${PORTNAME}
|
|
|
|
|
2002-07-27 12:44:56 +02:00
|
|
|
.if defined(WITHOUT_SHIMBUN)
|
2010-01-27 17:20:53 +01:00
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-Makefile.in
|
2002-07-27 12:44:56 +02:00
|
|
|
SHIMBUN= "@comment "
|
|
|
|
WITHOUT_OCTET_VIEWER= yes
|
|
|
|
.else
|
|
|
|
SHIMBUN= ""
|
|
|
|
.endif
|
2001-04-11 06:11:40 +02:00
|
|
|
|
2007-07-29 11:05:15 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-01-27 17:52:30 +01:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs23")
|
2001-12-12 03:49:08 +01:00
|
|
|
FLIM_PORT= ${PORTSDIR}/editors/flim
|
2002-07-25 19:32:09 +02:00
|
|
|
SEMI_PORT= ${PORTSDIR}/editors/semi
|
2007-08-04 13:09:34 +02:00
|
|
|
INSTALL_TARGET= install install-icons
|
2011-01-15 17:29:55 +01:00
|
|
|
PLIST_SUB+= EMACS23=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EMACS23="@comment "
|
2007-08-04 13:09:34 +02:00
|
|
|
.endif
|
|
|
|
|
2010-01-28 16:20:41 +01:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs22")
|
|
|
|
INSTALL_TARGET= install install-icons
|
|
|
|
.endif
|
|
|
|
|
2007-08-04 13:09:34 +02:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs21")
|
2002-07-25 19:32:09 +02:00
|
|
|
MULE_UCS_PORT= ${PORTSDIR}/converters/mule-ucs
|
2007-08-04 13:09:34 +02:00
|
|
|
INSTALL_TARGET= install install-icons
|
2001-05-24 04:30:11 +02:00
|
|
|
.endif
|
|
|
|
|
2002-07-25 19:32:09 +02:00
|
|
|
FLIM_TRUNK= 1.14
|
|
|
|
FLIM_COOKIE= ${LOCALBASE}/share/flim/flim-${EMACS_PORT_NAME}-${FLIM_TRUNK}.FreeBSD-packages
|
|
|
|
FLIM_PORT?= ${PORTSDIR}/editors/flim-${EMACS_PORT_NAME}
|
|
|
|
|
|
|
|
SEMI_TRUNK= 1.14
|
|
|
|
SEMI_COOKIE= ${LOCALBASE}/share/semi/semi-${EMACS_PORT_NAME}-${FLIM_TRUNK}.FreeBSD-packages
|
|
|
|
SEMI_PORT?= ${PORTSDIR}/editors/semi-${EMACS_PORT_NAME}
|
|
|
|
|
|
|
|
MULE_UCS_PORT?= ${PORTSDIR}/converters/mule-ucs-${EMACS_PORT_NAME}
|
|
|
|
MULE_UCS_ELISP_FILE= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/mule-ucs/un-define.el
|
|
|
|
|
2002-07-27 12:44:56 +02:00
|
|
|
BUILD_DEPENDS= w3m:${PORTSDIR}/www/w3m-m17n
|
|
|
|
RUN_DEPENDS= w3m:${PORTSDIR}/www/w3m-m17n
|
|
|
|
.if !defined(WITHOUT_SHIMBUN)
|
|
|
|
BUILD_DEPENDS+= ${FLIM_COOKIE}:${FLIM_PORT}
|
|
|
|
RUN_DEPENDS+= ${FLIM_COOKIE}:${FLIM_PORT}
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_OCTET_VIEWER)
|
2002-07-25 19:32:09 +02:00
|
|
|
RUN_DEPENDS+= ${SEMI_COOKIE}:${SEMI_PORT} \
|
|
|
|
wvHtml:${PORTSDIR}/textproc/wv \
|
2006-07-10 04:57:15 +02:00
|
|
|
xlhtml:${PORTSDIR}/textproc/xlhtml
|
|
|
|
|
2009-12-20 21:19:24 +01:00
|
|
|
.if (${EMACS_PORT_NAME} != "emacs22") && (${EMACS_PORT_NAME} != "emacs23")
|
2006-07-10 04:57:15 +02:00
|
|
|
RUN_DEPENDS+= ${MULE_UCS_ELISP_FILE}:${MULE_UCS_PORT}
|
|
|
|
.endif
|
2001-05-24 04:30:11 +02:00
|
|
|
.endif
|
|
|
|
|
2002-03-06 15:20:49 +01:00
|
|
|
pre-everything::
|
2002-07-27 12:44:56 +02:00
|
|
|
.if !defined(WITHOUT_SHIMBUN)
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
@${ECHO_MSG} "===> If you don't use the shimbun modules, please define WITHOUT_SHIMBUN."
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_OCTET_VIEWER)
|
2002-07-25 19:32:09 +02:00
|
|
|
@${ECHO_MSG} "===>"
|
2002-07-27 12:44:56 +02:00
|
|
|
@${ECHO_MSG} "===> If you don't use the octet stream viewer,"
|
2002-07-25 19:32:09 +02:00
|
|
|
@${ECHO_MSG} "===> please define WITHOUT_OCTET_VIEWER."
|
|
|
|
@${ECHO_MSG} "===>"
|
2001-04-11 06:11:40 +02:00
|
|
|
.endif
|
2001-04-02 03:04:50 +02:00
|
|
|
|
2001-04-11 06:11:40 +02:00
|
|
|
post-extract:
|
2001-04-02 03:04:50 +02:00
|
|
|
.if defined(EMACS_PACKAGESDIR)
|
|
|
|
@${CP} ${FILESDIR}/_pkg.el ${WRKSRC}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${MKDIR} ${DOCSDIR_JA}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.for i in ${DOCS_JA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR_JA}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2007-07-29 11:05:15 +02:00
|
|
|
.include <bsd.port.post.mk>
|