openbsd-ports/productivity/taskwarrior/Makefile
2013-03-11 11:35:43 +00:00

47 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2013/03/11 11:37:55 espie Exp $
COMMENT = command line todo list manager
VERSION = 2.1.2
DISTNAME = task-${VERSION}
PKGNAME = taskwarrior-${VERSION}
CATEGORIES = productivity
HOMEPAGE = http://www.taskwarrior.org/
MASTER_SITES = ${HOMEPAGE}/download/
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
MODULES = devel/cmake \
lang/lua
MODLUA_SA = Yes
WANTLIB = c e2fs-uuid m stdc++ ${MODLUA_WANTLIB}
LIB_DEPENDS = ${MODLUA_LIB_DEPENDS} \
sysutils/e2fsprogs
CONFIGURE_STYLE = cmake
CONFIGURE_ARGS += -DTASK_DOCDIR=share/taskwarrior \
-DTASK_MAN1DIR=man/man1 \
-DTASK_MAN5DIR=man/man5
CONFIGURE_ENV += CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
NO_TEST = Yes
pre-configure:
@perl -pi -e 's|share/doc/task/|share/taskwarrior/|g' \
${WRKSRC}/doc/man/task-color.5.in \
${WRKSRC}/doc/man/task-tutorial.5.in \
${WRKSRC}/doc/man/taskrc.5.in \
${WRKSRC}/src/Config.cpp
@perl -pi -e 's|share/doc/task-VERSION/|share/taskwarrior/|g' \
${WRKSRC}/scripts/vim/README
.include <bsd.port.mk>