Index: Makefile =================================================================== --- Makefile (révision 369769) +++ Makefile (copie de travail) @@ -60,7 +60,12 @@ # Config files with references to "Linux" LINUX_CONFIG= groups.conf services.conf hosts/localhost.conf -.include +MYSQL_USE= mysql=yes +PGSQL_USES= pgsql + +OPTIONS_SUB= yes + +.include .if ${OSVERSION} < 1000033 BUILD_DEPENDS+= flex>=2.5.31:${PORTSDIR}/textproc/flex CMAKE_ARGS+= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex @@ -67,22 +72,7 @@ CXXFLAGS+= -I${LOCALBASE}/include/flex .endif -.include -.if ${PORT_OPTIONS:MMYSQL} -USE_MYSQL= yes -PLIST_SUB+= MYSQL="" -.else -PLIST_SUB+= MYSQL="@comment " -.endif - -.if ${PORT_OPTIONS:MPGSQL} -USES+= pgsql -PLIST_SUB+= PGSQL="" -.else -PLIST_SUB+= PGSQL="@comment " -.endif - post-patch: ${REINPLACE_CMD} -e '/^add_subdirectory(initsystem)/d' \ -e '/logrotate\.d/d' ${WRKSRC}/etc/CMakeLists.txt @@ -104,4 +94,4 @@ .endfor .endif -.include +.include