freebsd-ports/deskutils/planner.el/Makefile

125 lines
3 KiB
Makefile
Raw Normal View History

# 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= 3
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}
2010-04-28 02:37:14 +02:00
MAINTAINER= ports@FreeBSD.org
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
USE_GMAKE= yes
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/muse/muse.el:${PORTSDIR}/textproc/muse
OPTIONS= BBDB "BBDB support" off
OPTIONS+= GNATS "GNATS support" off
OPTIONS+= PSVN "PSVN support" off
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>
.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 defined(WITH_BBDB)
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 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 "
.endif
.if defined(WITH_VM)
BUILD_DEPENDS+= qp-decode:${PORTSDIR}/mail/vm
PLIST_SUB+= HAS_VM=""
.else
PLIST_SUB+= HAS_VM="@comment "
.endif
.if defined(WITH_W3M)
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 defined(WITH_WL)
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 defined(WITH_XTLA)
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 !defined(NOPORTDOCS)
PORTDOCS= AUTHORS ChangeLog.1 ChangeLog.2 ChangeLog.3 ChangeLog \
COMMENTARY NEWS README
.endif
2009-06-04 10:21:02 +02:00
post-patch:
@${REINPLACE_CMD} 's,PREFIX =,PREFIX ?=,' ${WRKSRC}/Makefile.defs.default
2009-06-04 10:21:02 +02:00
pre-build:
${CP} ${WRKSRC}/contrib/schedule.el ${WRKSRC}/schedule.el
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${CP} -R ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>