x11-wm/nscde: fix packaging when uname -m != uname -p
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-wm/nscde/work/stage/usr/local/lib/NsCDE/FreeBSD_powerpc64/XOverrideFontCursor.so:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/x11-wm/nscde/work/stage/usr/local/libexec/NsCDE/FreeBSD_powerpc64/colorpicker:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/x11-wm/nscde/work/stage/usr/local/libexec/NsCDE/FreeBSD_powerpc64/fpclock:No such file or directory
This commit is contained in:
parent
86fc8096f5
commit
4ae82fd2ee
@ -65,7 +65,6 @@ SUB_LIST= EXAMPLESDIR=${EXAMPLESDIR} \
|
||||
PREFIX=${PREFIX}
|
||||
|
||||
WRKSRC= ${WRKDIR}/NsCDE-${DISTVERSION}
|
||||
PLIST_SUB= ARCH=${ARCH}
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
OPTIONS_DEFAULT= DOCS EXAMPLES KSH2020 SUDO
|
||||
@ -86,6 +85,11 @@ SUDO_RUN_DEPENDS= sudo:security/sudo
|
||||
|
||||
_SUDOFILES= data/fvwm/Functions.fvwmconf.in lib/scripts/SysActionDialog
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
UNAME_M!= ${UNAME} -m
|
||||
PLIST_SUB+= ARCH=${UNAME_M}
|
||||
|
||||
post-patch-DOAS-on:
|
||||
( for SUDOF in ${_SUDOFILES}; do ${REINPLACE_CMD} -e "s@sudo \\-n@doas@g" ${WRKSRC}/$${SUDOF}; done )
|
||||
|
||||
@ -96,4 +100,4 @@ post-install-EXAMPLES-on:
|
||||
post-install-EXAMPLES-off:
|
||||
${RM} -fr ${STAGEDIR}/${PREFIX}/share/doc/nscde/examples/*
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user