freebsd-ports/editors/wordgrinder/Makefile
Antoine Brodin 4fc87504a1 - Update to 0.5.1
- Stage support

PR:		ports/190514
Submitted by:	maintainer
2014-08-01 21:47:41 +00:00

43 lines
1 KiB
Makefile

# Created by: Vitaly Magerya <vmagerya@gmail.com>
# $FreeBSD$
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 <bsd.port.mk>