1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/deskutils/planner.el/Makefile
Ashish SHUKLA 7fc5bd70f3 GNU Emacs updates
editors/emacs:
 - Update to 24.3
 - Update CANNA patchset[1]
 - Unbreak ARM support by using the patch from emacs-devel port
 - Add missing INSTALLS_ICONS[2]
 - Remove a patch which is already integrated upstream
 - Fix Makefile header

editors/emacs-devel:
 - Update to bzr revision 112178
 - Fix Makefile header
 - Add missing INSTALLS_ICONS[2]

editors/emacs23:
 - Remove ABI versions from LIB_DEPENDS
 - Fix Makefile header
 - Add missing INSTALLS_ICONS[2]

Mk/bsd.emacs.mk:
 - Update major version for editors/emacs port

*:
 - Bump PORTREVISION to chase Emacs updates

PR:		ports/177428[2]
Submitted by:	Yuji TAKANO[1] (via private email), bdrewery[2]
2013-03-30 05:13:30 +00:00

126 lines
3.0 KiB
Makefile

# New ports collection makefile for: planner.el
# Date created: March 09 2005
# Whom: Dryice Liu <dryice@liu.com.cn>
#
# $FreeBSD$
#
PORTNAME= planner.el
PORTVERSION= 3.42
PORTREVISION= 11
CATEGORIES= deskutils elisp
MASTER_SITES= http://download.gna.org/planner-el/ \
http://dryice.name/computer/FreeBSD/distfiles/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= planner-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= PlannerMode is an organizer and day planner for Emacs
USE_EMACS= yes
USE_GMAKE= yes
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/muse/muse.el:${PORTSDIR}/textproc/muse
OPTIONS_DEFINE= BBDB GNATS PSVN VM W3M WL XTLA DOCS
BBDB_DESC= BBDB support
GNATS_DESC= GNATS support
PSVN_DESC= PSVN support
VM_DESC= View Mail support
W3M_DESC= W3M support
WL_DESC= Wanderlust support
XTLA_DESC= XTLA support
.include <bsd.port.pre.mk>
.if ${EMACS_PORT_NAME} != "emacs23"
PORTNAMESUFFIX= ${PKGNAMESUFFIX}
.endif
.if (${EMACS_PORT_NAME} == "emacs21")
PLIST_SUB+= HAS_ICAL="@comment "
.else
PLIST_SUB+= HAS_ICAL=""
.endif
.if ${PORT_OPTIONS:MBBDB}
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/bbdb/bbdb-com.el:${PORTSDIR}/databases/bbdb
PLIST_SUB+= HAS_BBDB=""
.else
PLIST_SUB+= HAS_BBDB="@comment "
.endif
.if (${EMACS_PORT_NAME} == "emacs21")
PLIST_SUB+= HAS_ERC="@comment "
.else
# emacs 22 and above has ERC build in
PLIST_SUB+= HAS_ERC=""
.endif
.if ${PORT_OPTIONS:MGNATS}
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/gnats.el:${PORTSDIR}/databases/gnats4
PLIST_SUB+= HAS_GNATS=""
.else
PLIST_SUB+= HAS_GNATS="@comment "
.endif
.if ${PORT_OPTIONS:MPSVN}
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/psvn/psvn.el:${PORTSDIR}/devel/psvn
PLIST_SUB+= HAS_PSVN=""
.else
PLIST_SUB+= HAS_PSVN="@comment "
.endif
.if ${PORT_OPTIONS:MVM}
BUILD_DEPENDS+= qp-decode:${PORTSDIR}/mail/vm
PLIST_SUB+= HAS_VM=""
.else
PLIST_SUB+= HAS_VM="@comment "
.endif
.if ${PORT_OPTIONS:MW3M}
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/w3m/w3m.el:${PORTSDIR}/www/emacs-w3m
PLIST_SUB+= HAS_W3M=""
.else
PLIST_SUB+= HAS_W3M="@comment "
.endif
.if ${PORT_OPTIONS:MWL}
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/wl/wl.el:${PORTSDIR}/mail/wanderlust
PLIST_SUB+= HAS_WL=""
.else
PLIST_SUB+= HAS_WL="@comment "
.endif
.if ${PORT_OPTIONS:MXTLA}
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/xtla/xtla.el:${PORTSDIR}/devel/xtla
PLIST_SUB+= HAS_XTLA=""
.else
PLIST_SUB+= HAS_XTLA="@comment "
.endif
RUN_DEPENDS+= ${BUILD_DEPENDS}
LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/planner
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= AUTHORS ChangeLog.1 ChangeLog.2 ChangeLog.3 ChangeLog \
COMMENTARY NEWS README
.endif
post-patch:
@${REINPLACE_CMD} 's,PREFIX =,PREFIX ?=,' ${WRKSRC}/Makefile.defs.default
pre-build:
${CP} ${WRKSRC}/contrib/schedule.el ${WRKSRC}/schedule.el
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${CP} -R ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>