freebsd-ports/editors/wordgrinder/Makefile
Baptiste Daroussin e742d91d59 WordGrinder is a simple, Unicode-aware word processor that runs on the
console. It's designed to get the hell out of your way and let you write;
it does very little, but what it does it does well.

It supports basic paragraph styles, basic character styles, basic screen
markup, a menu interface that means you don't have to remember complex
key sequences, HTML import and export, and some other useful features.

WordGrinder does not require X. It runs in a terminal.

WWW: http://wordgrinder.sf.net

PR:		ports/149696
Submitted by:	Vitaly Magerya <vmagerya at gmail.com>
Approved by:	tabthorpe (co-mentor)
2010-08-20 12:06:27 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: wordgrinder
# Date created: 15 August 2010
# Whom: Vitaly Magerya <vmagerya@gmail.com>
#
# $FreeBSD$
#
PORTNAME= wordgrinder
PORTVERSION= 0.3.3
CATEGORIES= editors
MASTER_SITES= SF
MAINTAINER= vmagerya@gmail.com
COMMENT= A simple Unicode-aware console-based word processor
RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem
USE_LUA= 5.1+
USE_BZIP2= yes
LICENSE= MIT
MAN1= wordgrinder.1
PLIST_DIRS= share/doc/wordgrinder
PLIST_FILES= bin/wordgrinder share/doc/wordgrinder/README.wg
post-patch:
${REINPLACE_CMD} -e 's,^PREFIX =.*$$,PREFIX = "${PREFIX}",' \
-e 's,/usr/include/lua5.1,${LUA_INCDIR},' \
-e 's,command = "lua ,command = "${LUA_CMD} ,' \
-e '/curses_exe =/s,$$,\
CLINKFLAGS = {PARENT\, "-L${LUA_LIBDIR}"}\,,' \
-e 's,lua5.1,lua,' \
-e 's,install -D,install,' \
${WRKSRC}/pmfile
${REINPLACE_CMD} 's,^LUACOMPILER =.*$$,LUACOMPILER = "${LUAC_CMD}",' \
${WRKSRC}/tools/lua.pm
do-build:
(cd ${WRKSRC}; ./pm)
do-install:
${MKDIR} ${PREFIX}/bin ${PREFIX}/man/man1
${MKDIR} ${PREFIX}/share/doc/wordgrinder
(cd ${WRKSRC}; ./pm install)
${STRIP_CMD} ${PREFIX}/bin/wordgrinder
.include <bsd.port.mk>