# New ports collection makefile for: wyrd # Date created: Apr 5 2006 # Whom: Russell A. Jackson # # $FreeBSD$ # PORTNAME= wyrd DISTVERSION= 1.4.3b CATEGORIES= deskutils MASTER_SITES= http://www.eecs.umich.edu/~pelzlpj/wyrd/ MAINTAINER= raj@csub.edu COMMENT= A curses front end to remind BUILD_DEPENDS= ${LOCALBASE}/bin/ocamlc:${PORTSDIR}/lang/ocaml RUN_DEPENDS= ${LOCALBASE}/bin/remind:${PORTSDIR}/deskutils/remind OPTIONS= UTF8 "Enable UTF-8 support" off GNU_CONFIGURE= yes USE_GMAKE= yes MAN1= wyrd.1 MAN5= wyrdrc.5 .include .if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033) WITH_NCURSES_PORT=yes .endif .if defined(WITH_UTF8) CONFIGURE_ARGS+=--enable-utf8 .if defined(WITH_NCURSES_PORT) LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses NCURSES_INC= ncurses/ .endif .else CONFIGURE_ARGS+=--disable-utf8 .endif post-patch: @${REINPLACE_CMD} -e 's|ncursesw/|${NCURSES_INC}|' ${WRKSRC}/configure do-install: ${INSTALL_PROGRAM} ${WRKSRC}/wyrd.opt ${PREFIX}/bin/wyrd ${INSTALL_DATA} ${WRKSRC}/wyrdrc ${PREFIX}/etc/wyrdrc ${INSTALL_MAN} ${WRKSRC}/doc/wyrd.1 ${MAN1PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/doc/wyrdrc.5 ${MAN5PREFIX}/man/man5 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/doc/manual.pdf ${DOCSDIR}/ .endif .include