View | Details | Raw Unified | Return to bug 256126
Collapse All | Expand All

(-)b/x11/nfy/Makefile (+52 lines)
Added Link Here
1
PORTNAME=	nfy
2
DISTVERSION=	0.1
3
CATEGORIES=	x11
4
MASTER_SITES=	https://ftp.christosmarg.xyz/${PORTNAME}/
5
6
MAINTAINER=	christos@christosmarg.xyz
7
COMMENT=	Minimal and daemonless notification program for X
8
9
LICENSE=	MIT
10
LICENSE_FILE=	${WRKSRC}/LICENSE
11
12
LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig
13
#TEST_DEPENDS=	${LOCALBASE}/libexec/atf-check:devel/kyua
14
15
USES=		xorg
16
USE_XORG=	x11 xft xrandr
17
18
MAKE_ARGS=	CC="${CC}" \
19
		FREETYPEINC="${LOCALBASE}/include/freetype2" \
20
		PREFIX="${PREFIX}" \
21
		VERSION="${PORTVERSION}" \
22
		X11INC="${LOCALBASE}/include" \
23
		X11LIB="${LOCALBASE}/lib"
24
25
PLIST_FILES=	bin/nfy \
26
		share/man/man1/nfy.1.gz
27
28
pre-everything:
29
	@${ECHO_MSG} "Build nfy with your own config.h using the NFY_CONF option:"
30
	@${ECHO_MSG} "make NFY_CONF=/path/to/nfy/config.h install clean"
31
32
.if exists(${NFY_CONF})
33
post-extract:
34
	@${ECHO_MSG} "Creating symlink: config.h -> ${NFY_CONF}"
35
	${LN} -fs "${NFY_CONF}" ${WRKSRC}/config.h
36
.endif
37
38
post-configure:
39
	@${REINPLACE_CMD} -E \
40
		-e "s|(CFLAGS[[:space:]]*)= |\1+= |" \
41
		-e "s|(CPPFLAGS[[:space:]]*)= |\1+= |" \
42
		-e "s|(LDFLAGS[[:space:]]*)= |\1+= |" \
43
		${WRKSRC}/config.mk
44
45
post-install:
46
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nfy
47
48
do-test:
49
	${LOCALBASE}/libexec/atf-check -s exit:1 -e match:"nfy-${PORTVERSION}" \
50
		${STAGEDIR}${PREFIX}/bin/nfy -v
51
52
.include <bsd.port.mk>
(-)b/x11/nfy/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1621877677
2
SHA256 (nfy-0.1.tar.gz) = 84c264c039d450ad6759a7d23e0e06d1cd36293a74e9de8da99125631a18607e
3
SIZE (nfy-0.1.tar.gz) = 4479
(-)b/x11/nfy/pkg-descr (+4 lines)
Added Link Here
1
nfy is a minimal and daemonless notification program for X. Configuration
2
is done by editing a config.h file.
3
4
WWW: https://git.christosmarg.xyz/nfy/files.html

Return to bug 256126