x11/somebar: add hook for out-of-tree patches
https://git.sr.ht/~raphi/somebar/tree/master/item/contrib
This commit is contained in:
parent
26aa9aef0d
commit
d3d5a8705b
1 changed files with 6 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue