Add USES=xorg and USES=gl to ports in categories starting with 'e' and 'g'. While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
# Created by: Vitaly Magerya <vmagerya@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wordgrinder
|
|
PORTVERSION= 0.6
|
|
CATEGORIES= editors
|
|
|
|
MAINTAINER= vmagerya@gmail.com
|
|
COMMENT= Simple Unicode-aware console and X11-based word processor
|
|
|
|
RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= davidgiven
|
|
|
|
USES= gmake lua:52 ncurses
|
|
|
|
PLIST_FILES= bin/wordgrinder \
|
|
share/doc/wordgrinder/README.wg \
|
|
man/man1/wordgrinder.1.gz
|
|
|
|
OPTIONS_DEFINE= X11
|
|
OPTIONS_DEFAULT=X11
|
|
|
|
X11_DESC= Support running in an X window in addition to console
|
|
X11_PLIST_FILES=bin/xwordgrinder
|
|
X11_USE= xorg=x11,xft
|
|
X11_USES= pkgconfig xorg
|
|
X11_ALL_TARGET_OFF=unix
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} \
|
|
-e '/hide = /s/@//' \
|
|
-e '/cc := gcc/s|gcc|${CC}|' \
|
|
-e '/LUA_INCLUDE := /s|= .*|= ${LUA_INCDIR}|' \
|
|
-e '/ldflags := /s|=|= -L${LUA_LIBDIR}|' \
|
|
-e 's|-llua5.2|-llua-${LUA_VER}|' \
|
|
-e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \
|
|
-e '/PREFIX = /d' \
|
|
-e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \
|
|
-e '/install /s|share/man/man1|man/man1|' \
|
|
-e '/NCURSES_CFLAGS :=/s|=.*|=|' \
|
|
-e '/NCURSES_LIB :=/s|=.*|= -lncursesw|' \
|
|
-e '/X11_CFLAGS :=/s|=.*|= $$(shell pkg-config --cflags x11 xft)|' \
|
|
-e '/X11_LIB :=/s|=.*|= $$(shell pkg-config --libs x11 xft)|' \
|
|
${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} \
|
|
-e '/#include <Xft/s|<|<X11/|' \
|
|
${WRKSRC}/src/c/arch/unix/x11/x11.h
|
|
|
|
# This is not strictly speaking required, but it cuts
|
|
# down on some unnecessary work and error messages.
|
|
post-patch-X11-off:
|
|
${REINPLACE_CMD} \
|
|
-e '/$$(eval $$(build-wordgrinder-x11))/d' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
|
|
|
|
post-install-X11-on:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/xwordgrinder ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|