Lines 2-24
Link Here
|
2 |
# $FreeBSD: head/editors/wordgrinder/Makefile 377876 2015-01-25 09:47:55Z riggs $ |
2 |
# $FreeBSD: head/editors/wordgrinder/Makefile 377876 2015-01-25 09:47:55Z riggs $ |
3 |
|
3 |
|
4 |
PORTNAME= wordgrinder |
4 |
PORTNAME= wordgrinder |
5 |
PORTVERSION= 0.5.2 |
5 |
PORTVERSION= 0.6 |
6 |
CATEGORIES= editors |
6 |
CATEGORIES= editors |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME} |
|
|
8 |
|
7 |
|
9 |
MAINTAINER= vmagerya@gmail.com |
8 |
MAINTAINER= vmagerya@gmail.com |
10 |
COMMENT= Simple Unicode-aware console-based word processor |
9 |
COMMENT= Simple Unicode-aware console- and X11-based word processor |
11 |
|
|
|
12 |
LICENSE= MIT |
13 |
|
10 |
|
14 |
RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem |
11 |
RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem |
15 |
|
12 |
|
16 |
USES= lua:52 tar:bzip2 gmake |
13 |
USE_GITHUB= yes |
|
|
14 |
GH_ACCOUNT= davidgiven |
15 |
|
16 |
OPTIONS_DEFINE= X11 |
17 |
X11_DESC= Support running in an X window in addition to console |
18 |
|
19 |
OPTIONS_DEFAULT=X11 |
20 |
|
21 |
USES= gmake lua:52 |
17 |
|
22 |
|
18 |
PLIST_FILES= bin/wordgrinder \ |
23 |
PLIST_FILES= bin/wordgrinder \ |
19 |
share/doc/wordgrinder/README.wg \ |
24 |
share/doc/wordgrinder/README.wg \ |
20 |
man/man1/wordgrinder.1.gz |
25 |
man/man1/wordgrinder.1.gz |
21 |
|
26 |
|
|
|
27 |
X11_PLIST_FILES=bin/xwordgrinder |
28 |
X11_USE= pkgconfig xorg=x11,xft |
29 |
|
30 |
X11_ALL_TARGET_OFF=unix |
31 |
|
32 |
.include <bsd.port.options.mk> |
33 |
|
22 |
post-patch: |
34 |
post-patch: |
23 |
${REINPLACE_CMD} \ |
35 |
${REINPLACE_CMD} \ |
24 |
-e '/hide = /s/@//' \ |
36 |
-e '/hide = /s/@//' \ |
Lines 29-42
Link Here
|
29 |
-e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \ |
41 |
-e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \ |
30 |
-e '/PREFIX = /d' \ |
42 |
-e '/PREFIX = /d' \ |
31 |
-e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \ |
43 |
-e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \ |
32 |
-e '/install /s|-D||' \ |
|
|
33 |
-e '/install /s|share/man/man1|man/man1|' \ |
44 |
-e '/install /s|share/man/man1|man/man1|' \ |
|
|
45 |
-e '/NCURSES_CFLAGS :=/s|=.*|=|' \ |
46 |
-e '/NCURSES_LIB :=/s|=.*|= -lncursesw|' \ |
47 |
-e '/X11_CFLAGS :=/s|=.*|= $$(shell pkg-config --cflags x11 xft)|' \ |
48 |
-e '/X11_LIB :=/s|=.*|= $$(shell pkg-config --libs x11 xft)|' \ |
34 |
${WRKSRC}/Makefile |
49 |
${WRKSRC}/Makefile |
35 |
|
50 |
${REINPLACE_CMD} \ |
36 |
pre-install: |
51 |
-e '/#include <Xft/s|<|<X11/|' \ |
37 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/wordgrinder |
52 |
${WRKSRC}/src/c/arch/unix/x11/x11.h |
|
|
53 |
.if ! ${PORT_OPTIONS:MX11} |
54 |
# This is not strictly speaking required, but it cuts |
55 |
# down on some unnecessary work and error messages. |
56 |
${REINPLACE_CMD} \ |
57 |
-e '/$$(eval $$(build-wordgrinder-x11))/d' \ |
58 |
${WRKSRC}/Makefile |
59 |
.endif |
38 |
|
60 |
|
39 |
post-install: |
61 |
post-install: |
40 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder |
62 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder |
|
|
63 |
.if ${PORT_OPTIONS:MX11} |
64 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/xwordgrinder ${STAGEDIR}${PREFIX}/bin/ |
65 |
.endif |
41 |
|
66 |
|
42 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.mk> |