x11/somebar: add hook for out-of-tree patches

https://git.sr.ht/~raphi/somebar/tree/master/item/contrib
This commit is contained in:
Jan Beich 2023-06-10 21:49:53 +00:00
parent 26aa9aef0d
commit d3d5a8705b

View file

@ -16,6 +16,7 @@ LIB_DEPENDS= libwayland-client.so:graphics/wayland
USES= compiler:c++17-lang gnome meson pkgconfig
USE_GNOME= cairo pango
EXTRA_PATCHES= ${${PORTNAME:tu}_PATCHES}
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
@ -23,6 +24,11 @@ pre-everything::
@${ECHO_MSG} "To build ${PORTNAME} with your own config.hpp 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.hpp"
@${ECHO_MSG}
@${ECHO_MSG} "To apply your own patches set ${PORTNAME:tu}_PATCHES (like ${PORTNAME:tu}_CONF)"
@${ECHO_MSG} "to a list of files separated by space with optional -pX suffix e.g.,"
@${ECHO_MSG} -n "\$$ make install clean ${PORTNAME:tu}_PATCHES='\$${WRKSRC}/contrib/foo.patch:-p1"
@${ECHO_MSG} " /path/to/bar.patch'"
post-extract:
@${ECHO_MSG} "Creating symlink: config.hpp -> ${${PORTNAME:tu}_CONF:Uconfig.def.hpp}"