diff --git a/x11/nfy/Makefile b/x11/nfy/Makefile new file mode 100644 index 000000000000..bf3fd1f3bda2 --- /dev/null +++ b/x11/nfy/Makefile @@ -0,0 +1,52 @@ +PORTNAME= nfy +DISTVERSION= 0.1 +CATEGORIES= x11 +MASTER_SITES= https://ftp.christosmarg.xyz/${PORTNAME}/ + +MAINTAINER= christos@christosmarg.xyz +COMMENT= Minimal and daemonless notification program for X + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig +#TEST_DEPENDS= ${LOCALBASE}/libexec/atf-check:devel/kyua + +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} "Build nfy with your own config.h using the NFY_CONF option:" + @${ECHO_MSG} "make NFY_CONF=/path/to/nfy/config.h install clean" + +.if exists(${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 + +do-test: + ${LOCALBASE}/libexec/atf-check -s exit:1 -e match:"nfy-${PORTVERSION}" \ + ${STAGEDIR}${PREFIX}/bin/nfy -v + +.include diff --git a/x11/nfy/distinfo b/x11/nfy/distinfo new file mode 100644 index 000000000000..bcf28975ebe7 --- /dev/null +++ b/x11/nfy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621877677 +SHA256 (nfy-0.1.tar.gz) = 84c264c039d450ad6759a7d23e0e06d1cd36293a74e9de8da99125631a18607e +SIZE (nfy-0.1.tar.gz) = 4479 diff --git a/x11/nfy/pkg-descr b/x11/nfy/pkg-descr new file mode 100644 index 000000000000..4df6db58b025 --- /dev/null +++ b/x11/nfy/pkg-descr @@ -0,0 +1,4 @@ +nfy is a minimal and daemonless notification program for X. Configuration +is done by editing a config.h file. + +WWW: https://git.christosmarg.xyz/nfy/files.html