Update editors/libreoffice-is to version 5.0.3
[dports.git] / editors / wordgrinder / Makefile
1 # Created by: Vitaly Magerya <vmagerya@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       wordgrinder
5 PORTVERSION=    0.5.2
6 CATEGORIES=     editors
7 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}
8
9 MAINTAINER=     vmagerya@gmail.com
10 COMMENT=        Simple Unicode-aware console-based word processor
11
12 LICENSE=        MIT
13
14 RUN_DEPENDS=    ${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem
15
16 USES=           lua:52 tar:bzip2 gmake
17
18 PLIST_FILES=    bin/wordgrinder \
19                 share/doc/wordgrinder/README.wg \
20                 man/man1/wordgrinder.1.gz
21
22 post-patch:
23         ${REINPLACE_CMD} \
24                 -e '/hide = /s/@//' \
25                 -e '/cc := gcc/s|gcc|${CC}|' \
26                 -e '/LUA_INCLUDE := /s|= .*|= ${LUA_INCDIR}|' \
27                 -e '/ldflags := /s|=|= -L${LUA_LIBDIR}|' \
28                 -e 's|-llua5.2|-llua-${LUA_VER}|' \
29                 -e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \
30                 -e '/PREFIX = /d' \
31                 -e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \
32                 -e '/install /s|-D||' \
33                 -e '/install /s|share/man/man1|man/man1|' \
34                 ${WRKSRC}/Makefile
35
36 pre-install:
37         ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/wordgrinder
38
39 post-install:
40         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
41
42 .include <bsd.port.mk>