2005-03-11 20:41:25 +01:00
|
|
|
# New ports collection makefile for: planner.el
|
|
|
|
# Date created: March 09 2005
|
|
|
|
# Whom: Dryice Liu <dryice@liu.com.cn>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= planner.el
|
2009-10-10 11:25:42 +02:00
|
|
|
PORTVERSION= 3.42
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 3
|
2005-03-11 20:41:25 +01:00
|
|
|
CATEGORIES= deskutils elisp
|
2006-03-22 10:17:31 +01:00
|
|
|
MASTER_SITES= http://download.gna.org/planner-el/ \
|
2006-03-15 19:21:26 +01:00
|
|
|
http://dryice.name/computer/FreeBSD/distfiles/
|
2005-03-11 20:41:25 +01:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
2006-03-22 10:17:31 +01:00
|
|
|
DISTNAME= planner-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
2005-03-11 20:41:25 +01:00
|
|
|
|
2010-04-28 02:37:14 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-03-11 20:41:25 +01:00
|
|
|
COMMENT= PlannerMode is an organizer and day planner for Emacs
|
|
|
|
|
- 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
|
2006-03-22 10:17:31 +01:00
|
|
|
USE_GMAKE= yes
|
2005-03-11 20:41:25 +01:00
|
|
|
|
2006-03-22 10:17:31 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/muse/muse.el:${PORTSDIR}/textproc/muse
|
2005-03-11 20:41:25 +01:00
|
|
|
|
|
|
|
OPTIONS= BBDB "BBDB support" off
|
2006-03-22 10:17:31 +01:00
|
|
|
OPTIONS+= GNATS "GNATS support" off
|
|
|
|
OPTIONS+= PSVN "PSVN support" off
|
2005-03-11 20:41:25 +01:00
|
|
|
OPTIONS+= VM "View Mail support" off
|
|
|
|
OPTIONS+= W3M "W3M support" off
|
|
|
|
OPTIONS+= WL "Wanderlust support" off
|
|
|
|
OPTIONS+= XTLA "XTLA support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-12-20 21:19:24 +01:00
|
|
|
.if ${EMACS_PORT_NAME} != "emacs23"
|
|
|
|
PORTNAMESUFFIX= ${PKGNAMESUFFIX}
|
|
|
|
.endif
|
|
|
|
|
2008-01-15 04:55:43 +01:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs21")
|
|
|
|
PLIST_SUB+= HAS_ICAL="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_ICAL=""
|
|
|
|
.endif
|
|
|
|
|
2005-03-11 20:41:25 +01:00
|
|
|
.if defined(WITH_BBDB)
|
2006-03-22 10:17:31 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/bbdb/bbdb-com.el:${PORTSDIR}/databases/bbdb
|
|
|
|
PLIST_SUB+= HAS_BBDB=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_BBDB="@comment "
|
2005-03-11 20:41:25 +01:00
|
|
|
.endif
|
|
|
|
|
2008-01-15 04:55:43 +01:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs21")
|
2006-03-22 10:17:31 +01:00
|
|
|
PLIST_SUB+= HAS_ERC="@comment "
|
2008-01-15 04:55:43 +01:00
|
|
|
.else
|
|
|
|
# emacs 22 and above has ERC build in
|
|
|
|
PLIST_SUB+= HAS_ERC=""
|
|
|
|
.endif
|
2006-03-22 10:17:31 +01:00
|
|
|
|
|
|
|
.if defined(WITH_GNATS)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/gnats.el:${PORTSDIR}/databases/gnats4
|
|
|
|
PLIST_SUB+= HAS_GNATS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_GNATS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PSVN)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/psvn/psvn.el:${PORTSDIR}/devel/psvn
|
|
|
|
PLIST_SUB+= HAS_PSVN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_PSVN="@comment "
|
2005-03-11 20:41:25 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_VM)
|
2006-03-22 10:17:31 +01:00
|
|
|
BUILD_DEPENDS+= qp-decode:${PORTSDIR}/mail/vm
|
|
|
|
PLIST_SUB+= HAS_VM=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_VM="@comment "
|
2005-03-11 20:41:25 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_W3M)
|
2006-03-22 10:17:31 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/w3m/w3m.el:${PORTSDIR}/www/emacs-w3m
|
|
|
|
PLIST_SUB+= HAS_W3M=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_W3M="@comment "
|
2005-03-11 20:41:25 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WL)
|
2006-03-22 10:17:31 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/wl/wl.el:${PORTSDIR}/mail/wanderlust
|
|
|
|
PLIST_SUB+= HAS_WL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_WL="@comment "
|
2005-03-11 20:41:25 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XTLA)
|
2006-03-22 10:17:31 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/xtla/xtla.el:${PORTSDIR}/devel/xtla
|
|
|
|
PLIST_SUB+= HAS_XTLA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAS_XTLA="@comment "
|
2005-03-11 20:41:25 +01:00
|
|
|
.endif
|
|
|
|
|
2006-03-22 10:17:31 +01:00
|
|
|
RUN_DEPENDS+= ${BUILD_DEPENDS}
|
|
|
|
|
2005-03-11 20:41:25 +01:00
|
|
|
LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/planner
|
|
|
|
|
2006-03-22 10:17:31 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2009-10-10 11:25:42 +02:00
|
|
|
PORTDOCS= AUTHORS ChangeLog.1 ChangeLog.2 ChangeLog.3 ChangeLog \
|
2006-03-22 10:17:31 +01:00
|
|
|
COMMENTARY NEWS README
|
|
|
|
.endif
|
|
|
|
|
2009-06-04 10:21:02 +02:00
|
|
|
post-patch:
|
2009-10-10 11:25:42 +02:00
|
|
|
@${REINPLACE_CMD} 's,PREFIX =,PREFIX ?=,' ${WRKSRC}/Makefile.defs.default
|
2009-06-04 10:21:02 +02:00
|
|
|
|
2006-03-22 10:17:31 +01:00
|
|
|
pre-build:
|
|
|
|
${CP} ${WRKSRC}/contrib/schedule.el ${WRKSRC}/schedule.el
|
2005-03-11 20:41:25 +01:00
|
|
|
|
2006-03-22 10:17:31 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${CP} -R ${WRKSRC}/${i} ${DOCSDIR}
|
2005-03-11 20:41:25 +01:00
|
|
|
.endfor
|
2006-03-22 10:17:31 +01:00
|
|
|
.endif
|
2005-03-11 20:41:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|