2000-11-03 10:01:52 -05:00
# New ports collection makefile for: T-gnus (for emacs)
# Date created: 13 September 2000
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME = t-gnus
PORTVERSION = ${ TGNUSVERSION : S /_/./g : S /-/./g }
CATEGORIES = news mail elisp
MASTER_SITES = http://www.jpl.org/elips/t-gnus-6.14/snapshots/
PKGNAMESUFFIX = -${ EMACS_PORT_NAME }
DISTNAME = ${ PORTNAME } -${ TGNUSVERSION }
MAINTAINER = taoka@FreeBSD.org
BUILD_DEPENDS = ${ LOCALBASE } /share/semi/${ MIMEUI_COOKIE } :${ PORTSDIR } /editors/${ MIMEUI_PORT_NAME }
RUN_DEPENDS = ${ LOCALBASE } /share/semi/${ MIMEUI_COOKIE } :${ PORTSDIR } /editors/${ MIMEUI_PORT_NAME }
HAS_CONFIGURE = yes
TGNUSVERSION = 6_14_5-06
MIMEUI_PRODUCT ?= semi
MIMEUI_VERSION ?= 1.13.7
MIMEUI_PORT_NAME ?= ${ MIMEUI_PRODUCT } -${ EMACS_PORT_NAME } -current
MIMEUI_COOKIE = ${ MIMEUI_PRODUCT } -${ EMACS_PORT_NAME } -${ MIMEUI_VERSION } .FreeBSD-packages
EMACS_PORT_NAME ?= emacs20
. i f (${EMACS_PORT_NAME} = = "emacs20" || ${ EMACS_PORT_NAME } = = "mule" || \
2001-02-14 15:19:44 -05:00
${ EMACS_PORT_NAME } = = "xemacs21-mule" )
2000-11-03 10:01:52 -05:00
WITH_MULE = yes
. e l s e
WITHOUT_MULE = yes
. e n d i f
. i f (${EMACS_PORT_NAME} = = "xemacs21" || ${ EMACS_PORT_NAME } = = "xemacs21-mule" )
CONFIGURE_ARGS = --with-xemacs= ${ EMACS_CMD }
. e l s e
CONFIGURE_ARGS = --with-emacs= ${ EMACS_CMD } \
--with-lispdir= ${ LOCALBASE } /${ EMACS_SITE_LISPDIR } /t-gnus \
--infodir= ${ INFODIR }
. e n d i f
. i f d e f i n e d ( E M A C S _ P A C K A G E S D I R )
ALL_TARGET = package
INFODIR = ${ LOCALBASE } /${ EMACS_PACKAGESDIR } /info
STARTUPDIR = ${ EMACS_PACKAGESDIR } /lisp
. i f (${EMACS_PORT_NAME} = = "xemacs21" )
INSTALL_TARGET = install-package
ALL_TARGET += info
. e l i f (${EMACS_PORT_NAME} = = "xemacs21-mule" )
ALL_TARGET += info info-ja
INSTALL_TARGET = install-package-ja
. e n d i f
. e l i f (${EMACS_PORT_NAME} = = "emacs20" || ${ EMACS_PORT_NAME } = = "mule" )
ALL_TARGET = all info info-ja
2001-01-16 12:33:20 -05:00
INSTALL_TARGET = install
2000-11-03 10:01:52 -05:00
INFODIR = ${ LOCALBASE } /info
INFOFILES = emacs-mime.info gnus.info gnus-ja.info message.info message-ja.info
STARTUPDIR = ${ EMACS_SITE_LISPDIR }
. e n d i f
DIRSECTION = "The Emacs editor and associated tools"
PORTDOCDIR = share/doc/t-gnus-${ EMACS_PORT_NAME }
DOCS = ChangeLog ChangeLog.1 ChangeLog.2 GNUS-NEWS Mule23@1934.en Mule23@1934.ja README README-gnus-bbdb.en README-gnus-bbdb.ja README-offline.en README-offline.ja README.T-gnus README.branch README.branch.ja README.semi README.semi.ja TODO.ja
PLIST_SUB = EMACS_LIBDIR = ${ EMACS_LIBDIR } \
EMACS_LIBDIR_WITH_VER = ${ EMACS_LIBDIR_WITH_VER } \
EMACS_PACKAGESDIR = ${ EMACS_PACKAGESDIR } \
DIRSECTION = ${ DIRSECTION } \
EMACS_PORT_NAME = ${ EMACS_PORT_NAME } \
INFODIR = ${ INFODIR : S / ${ LOCALBASE } \/ // } \
EMACS_SITE_LISPDIR = ${ EMACS_SITE_LISPDIR }
PLIST = ${ PKGDIR } /pkg-plist.${ EMACS_PORT_NAME }
. i f (${EMACS_PORT_NAME} = = "mule" )
post-extract :
${ ECHO } " ${ EMACS_CMD } -l apel-setupel.el \$ $@ " > ${ WRKDIR } /mule-apel
${ CHMOD } +x ${ WRKDIR } /mule-apel
. e n d i f
post-configure :
@${ SED } \
-e " s,%%PREFIX%%, ${ PREFIX } ,g " \
-e " s,%%EMACS_LIBDIR%%, ${ EMACS_LIBDIR } ,g " \
-e " s,%%EMACS_LIBDIR_WITH_VER%%, ${ EMACS_LIBDIR_WITH_VER } ,g " \
-e " s,%%EMACS_PACKAGESDIR%%, ${ EMACS_PACKAGESDIR } ,g " \
< ${ FILESDIR } /t-gnus-startup.${ EMACS_PORT_NAME } .el.tmpl > ${ WRKDIR } /t-gnus-startup.el
post-install :
. i f ! d e f i n e d ( N O P O R T D O C S )
${ MKDIR } ${ PREFIX } /${ PORTDOCDIR }
. f o r i i n $ { D O C S }
${ INSTALL_DATA } ${ WRKSRC } /${ i } ${ PREFIX } /${ PORTDOCDIR }
. e n d f o r
. e n d i f
${ INSTALL_DATA } ${ WRKDIR } /t-gnus-startup.el ${ PREFIX } /${ STARTUPDIR }
. i f (${EMACS_PORT_NAME} = = "emacs20" )
. f o r f i l e i n $ { I N F O F I L E S }
install-info ${ INFODIR } /${ file } ${ INFODIR } /dir
. e n d f o r
. e l i f (${EMACS_PORT_NAME} = = "mule" )
install-info --section= ${ DIRSECTION } ${ INFODIR } /emacs-mime.info --entry= "* Emacs MIME: (emacs-mime.info). The MIME de/composition library." ${ INFODIR } /dir
install-info --section= ${ DIRSECTION } ${ INFODIR } /gnus.info --entry= "* Gnus: (gnus.info). The news reader gnus" ${ INFODIR } /dir
install-info --section= ${ DIRSECTION } ${ INFODIR } /gnus-ja.info --entry= "* Gnus-ja: (gnus-ja.info). The news reader gnus" ${ INFODIR } /dir
install-info --section= ${ DIRSECTION } ${ INFODIR } /message.info --entry= "* Message: (message.info). Mail and news composition mode that goes with Gnus." ${ INFODIR } /dir
install-info --section= ${ DIRSECTION } ${ INFODIR } /message-ja.info --entry= "* Message-ja: (message-ja.info). Mail and news composition mode that goes with Gnus." ${ INFODIR } /dir
. e n d i f
@${ CAT } ${ PKGMESSAGE }
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f (${EMACS_PORT_NAME} = = "mule" )
2001-01-16 12:33:20 -05:00
MAKE_ARGS += EMACS = " ${ WRKDIR } /mule-apel " XEMACS = " ${ WRKDIR } /mule-apel "
2000-11-03 10:01:52 -05:00
. e n d i f
. i n c l u d e < b s d . p o r t . p o s t . m k >