diff --git a/devel/libosmocore/Makefile b/devel/libosmocore/Makefile index 3880eb8e0ae7..6375b9c973b2 100644 --- a/devel/libosmocore/Makefile +++ b/devel/libosmocore/Makefile @@ -31,6 +31,9 @@ BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \ .endif post-patch: +.if ${PORT_OPTIONS:MDOCS} + ${CP} ${WRKSRC}/Makefile.am.orig ${WRKSRC}/Makefile.am +.endif ${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \ ${WRKSRC}/Makefile.am ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version