aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/wyrd/Makefile25
-rw-r--r--deskutils/wyrd/distinfo6
2 files changed, 26 insertions, 5 deletions
diff --git a/deskutils/wyrd/Makefile b/deskutils/wyrd/Makefile
index e1b92840d00d..81eb4f69b925 100644
--- a/deskutils/wyrd/Makefile
+++ b/deskutils/wyrd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= wyrd
-PORTVERSION= 1.4.2
+DISTVERSION= 1.4.3b
CATEGORIES= deskutils
MASTER_SITES= http://www.eecs.umich.edu/~pelzlpj/wyrd/
@@ -16,12 +16,33 @@ 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
@@ -34,4 +55,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc/manual.pdf ${DOCSDIR}/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/deskutils/wyrd/distinfo b/deskutils/wyrd/distinfo
index 3a4897e2572f..f4842f4e6491 100644
--- a/deskutils/wyrd/distinfo
+++ b/deskutils/wyrd/distinfo
@@ -1,3 +1,3 @@
-MD5 (wyrd-1.4.2.tar.gz) = 9de1c07c4f662a2b28d4cf29ed6818b9
-SHA256 (wyrd-1.4.2.tar.gz) = a72c5712d1e5cf1e76a2e2eb970f54b812a826dfb3536e5f873cf4d98c0553c0
-SIZE (wyrd-1.4.2.tar.gz) = 203752
+MD5 (wyrd-1.4.3b.tar.gz) = d428191d81769894cf773b8de6cae7ac
+SHA256 (wyrd-1.4.3b.tar.gz) = 81104370307151dba1dbf5130f11ba03cc5a40d4704563f9e4085ce1ebc00bd3
+SIZE (wyrd-1.4.3b.tar.gz) = 226447