diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-12 14:26:43 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-12 14:26:43 +0800 |
commit | d4a2fb9e06a4196b79fed7e538f20a9bea4b5f09 (patch) | |
tree | 619663c6751e0b5fa38076010b70caaf43759491 /deskutils/planner.el | |
parent | 5ecb0ce0c5c19d8c2ed89fe6efcf9374dffb6669 (diff) | |
download | freebsd-ports-graphics-d4a2fb9e06a4196b79fed7e538f20a9bea4b5f09.tar.gz freebsd-ports-graphics-d4a2fb9e06a4196b79fed7e538f20a9bea4b5f09.tar.zst freebsd-ports-graphics-d4a2fb9e06a4196b79fed7e538f20a9bea4b5f09.zip |
Convert to new option framework
Diffstat (limited to 'deskutils/planner.el')
-rw-r--r-- | deskutils/planner.el/Makefile | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/deskutils/planner.el/Makefile b/deskutils/planner.el/Makefile index 02077259db1..6616cc8bb7f 100644 --- a/deskutils/planner.el/Makefile +++ b/deskutils/planner.el/Makefile @@ -22,13 +22,14 @@ 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 +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> @@ -42,7 +43,7 @@ PLIST_SUB+= HAS_ICAL="@comment " PLIST_SUB+= HAS_ICAL="" .endif -.if defined(WITH_BBDB) +.if ${PORT_OPTIONS:MBBDB} BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/bbdb/bbdb-com.el:${PORTSDIR}/databases/bbdb PLIST_SUB+= HAS_BBDB="" .else @@ -56,42 +57,42 @@ PLIST_SUB+= HAS_ERC="@comment " PLIST_SUB+= HAS_ERC="" .endif -.if defined(WITH_GNATS) +.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 defined(WITH_PSVN) +.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 defined(WITH_VM) +.if ${PORT_OPTIONS:MVM} BUILD_DEPENDS+= qp-decode:${PORTSDIR}/mail/vm PLIST_SUB+= HAS_VM="" .else PLIST_SUB+= HAS_VM="@comment " .endif -.if defined(WITH_W3M) +.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 defined(WITH_WL) +.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 defined(WITH_XTLA) +.if ${PORT_OPTIONS:MXTLA} BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/xtla/xtla.el:${PORTSDIR}/devel/xtla PLIST_SUB+= HAS_XTLA="" .else @@ -102,7 +103,7 @@ RUN_DEPENDS+= ${BUILD_DEPENDS} LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/planner -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= AUTHORS ChangeLog.1 ChangeLog.2 ChangeLog.3 ChangeLog \ COMMENTARY NEWS README .endif @@ -114,7 +115,7 @@ pre-build: ${CP} ${WRKSRC}/contrib/schedule.el ${WRKSRC}/schedule.el post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} ${CP} -R ${WRKSRC}/${i} ${DOCSDIR} |