blob: 21bc5b5230298aa81965ceba20735c2ad0274dd3 (
plain)
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= nfy
DISTVERSION= 0.2
CATEGORIES= x11
MASTER_SITES= https://ftp.margiolis.net/${PORTNAME}/
MAINTAINER= christos@freebsd.org
COMMENT= Minimal and daemonless notification program for X
WWW= https://margiolis.net/w/nfy-a-daemonless-notification-program.html
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig
USES= xorg
USE_XORG= x11 xft xrandr
MAKE_ARGS= CC="${CC}" \
FREETYPEINC="${LOCALBASE}/include/freetype2" \
PREFIX="${PREFIX}" \
VERSION="${PORTVERSION}" \
X11INC="${LOCALBASE}/include" \
X11LIB="${LOCALBASE}/lib"
PLIST_FILES= bin/nfy \
share/man/man1/nfy.1.gz
pre-everything:
@${ECHO_MSG} "To build nfy with your own config.h use the NFY_CONF make variable:"
@${ECHO_MSG} "make NFY_CONF=/path/to/nfy/config.h install clean"
.if defined(NFY_CONF)
post-extract:
@${ECHO_MSG} "Creating symlink: config.h -> ${NFY_CONF}"
${LN} -fs "${NFY_CONF}" ${WRKSRC}/config.h
.endif
post-configure:
@${REINPLACE_CMD} -E \
-e "s|(CFLAGS[[:space:]]*)= |\1+= |" \
-e "s|(CPPFLAGS[[:space:]]*)= |\1+= |" \
-e "s|(LDFLAGS[[:space:]]*)= |\1+= |" \
${WRKSRC}/config.mk
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nfy
.include <bsd.port.mk>
|