blob: 2c8fd46ea4cc2c765ba2e0f381788a6bcf634ffb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
PORTNAME= wvkbd
DISTVERSIONPREFIX= v
DISTVERSION= 0.10
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= On-screen keyboard for wlroots
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto
LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
libwayland-client.so:graphics/wayland
USES= gmake gnome pkgconfig
USE_GITHUB= yes
USE_GNOME= cairo pango
GH_ACCOUNT= jjsullivan5196
MAKE_ARGS= VERSION="${DISTVERSIONFULL}"
PLIST_FILES= bin/${PORTNAME}-mobintl \
share/man/man1/${PORTNAME}.1.gz
LDFLAGS+= -Wl,--as-needed # pango deps
pre-everything::
@${ECHO_MSG} "To build ${PORTNAME} with your own config.h set ${PORTNAME:tu}_CONF variable"
@${ECHO_MSG} "either in ${.CURDIR:T}/Makefile.local, make.conf(5), environ(7) or command line e.g.,"
@${ECHO_MSG} "\$$ make install clean ${PORTNAME:tu}_CONF=/path/to/${PORTNAME}/config.h"
post-extract:
# .if exists(...) before bsd.port.mk ignores *_CONF in make.conf(5) and Makefile.local
@if [ -e "${${PORTNAME:tu}_CONF}" ]; then \
${ECHO_MSG} "Creating symlink: config.h -> ${${PORTNAME:tu}_CONF}"; \
${LN} -fs "${${PORTNAME:tu}_CONF}" ${WRKSRC}/config.h; \
fi
post-patch:
@${REINPLACE_CMD} -e '/^PKGS/s/$$/ epoll-shim/' \
-e 's/ xkbcommon//' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^PREFIX/s/=/?=/' \
-e '/^CFLAGS/s/=/+=/' \
${WRKSRC}/config.mk
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}*
.include <bsd.port.mk>
|