diff --git a/misc/mc/Makefile b/misc/mc/Makefile index 9cba3415ef32..45329cbe272e 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -33,4 +33,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ MAN1= midc.1 MAN8= mcserv.8 +post-patch: + ${PERL} -i -p -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/vfs/extfs/uzip.in + .include diff --git a/misc/mc/files/patch-ai b/misc/mc/files/patch-ai index 9ab65e350498..928ae75deb6d 100644 --- a/misc/mc/files/patch-ai +++ b/misc/mc/files/patch-ai @@ -5,7 +5,7 @@ # -DZIP=/usr/bin -+DZIP=/usr/local/bin ++DZIP=%%PREFIX%%/bin XZIP="$DZIP/zip -g" XDZIP="$DZIP/zip -d" XUNZIP="$DZIP/unzip"