# Created by: Vitaly Magerya # $FreeBSD: head/editors/wordgrinder/Makefile 363765 2014-08-01 21:47:41Z antoine $ PORTNAME= wordgrinder PORTVERSION= 0.5.1 CATEGORIES= editors MASTER_SITES= SF/${PORTNAME}/${PORTNAME} MAINTAINER= vmagerya@gmail.com COMMENT= Simple Unicode-aware console-based word processor LICENSE= MIT RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem USES= lua:52 tar:bzip2 gmake PLIST_DIRS= share/doc/wordgrinder PLIST_FILES= bin/wordgrinder \ share/doc/wordgrinder/README.wg \ man/man1/wordgrinder.1.gz post-patch: ${REINPLACE_CMD} \ -e '/hide = /s/@//' \ -e '/cc := gcc/s|gcc|${CC}|' \ -e '/INCLUDES := /s|= .*|= -I${LUA_INCDIR}|' \ -e '/ldflags := /s|=|= -L${LUA_LIBDIR}|' \ -e 's|-llua5.2|-llua-${LUA_VER}|' \ -e 's|@lua|${LUA_CMD}|' \ -e '/PREFIX = /d' \ -e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \ -e '/install /s|-D||' \ -e '/install /s|share/man/man1|man/man1|' \ ${WRKSRC}/Makefile pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/wordgrinder post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder .include