84c8ea721f
PR: ports/129651 Submitted by: Yi-Jheng Lin <yzlin AT cs.nctu.edu.tw> Approved by: maintainer timeout
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# New ports collection makefile for: wyrd
|
|
# Date created: Apr 5 2006
|
|
# Whom: Russell A. Jackson <raj@csub.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= wyrd
|
|
PORTVERSION= 1.4.4
|
|
CATEGORIES= deskutils
|
|
MASTER_SITES= http://pessimization.com/software/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 <bsd.port.pre.mk>
|
|
|
|
.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 <bsd.port.post.mk>
|