diff --git a/emulators/advancemame/Makefile b/emulators/advancemame/Makefile index 214cad405c22..8c2fe900442a 100644 --- a/emulators/advancemame/Makefile +++ b/emulators/advancemame/Makefile @@ -52,7 +52,7 @@ CONFIGURE_ARGS+=--disable-slang post-patch: @${REINPLACE_CMD} -Ee 's|^(pkg.*)/advance|\1/${PORTNAME}|' \ ${WRKSRC}/advance/advance.mak -.if ${PORT_OPTIONS:MDOCS} +.if empty(PORT_OPTIONS:MDOCS) @${REINPLACE_CMD} -e '/pkgdocdir/d' ${WRKSRC}/advance/advance.mak .endif