diff --git a/databases/zabbix3-libzbxpgsql/Makefile b/databases/zabbix3-libzbxpgsql/Makefile index 62d1eaeca0b9..9929dc60cec7 100644 --- a/databases/zabbix3-libzbxpgsql/Makefile +++ b/databases/zabbix3-libzbxpgsql/Makefile @@ -25,7 +25,7 @@ USE_GITHUB= yes GH_ACCOUNT= cavaliercoder GNU_CONFIGURE= yes -GET_ZBX_WRKSRC= cd ${.CURDIR:H:H}/net-mgmt/zabbix3-agent && make -V WRKSRC +GET_ZBX_WRKSRC= cd ${.CURDIR:H:H}/net-mgmt/${PKGNAMEPREFIX}agent && make -V WRKSRC CONFIGURE_ARGS= --with-zabbix=$$(${GET_ZBX_WRKSRC}) USE_LDCONFIG= yes