05adf2624e
- Add optional UTF8 support (default off) PR: ports/115881 Submitted by: Andris Raugulis <ar at null.lv> Approved by: Russell A. Jackson <raj at csub.edu> (maintainer)
58 lines
1.4 KiB
Makefile
58 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
|
|
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 <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>
|