Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/pmacct/Makefile
Show All 31 Lines | |||||
# Requires legacy mongo-c-driver version 0.8 which is not available | # Requires legacy mongo-c-driver version 0.8 which is not available | ||||
# MONGO_DESC= Enable MongoDB support | # MONGO_DESC= Enable MongoDB support | ||||
PLABEL_DESC= Enable IP prefix labels | PLABEL_DESC= Enable IP prefix labels | ||||
RABBITMQ_DESC= Enable RabbitMQ/AMQP support | RABBITMQ_DESC= Enable RabbitMQ/AMQP support | ||||
SQLITE3_DESC= Enable SQLite3 support | SQLITE3_DESC= Enable SQLite3 support | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
_BUILDSQL= 0 | |||||
.if ${PORT_OPTIONS:MMYSQL} | .if ${PORT_OPTIONS:MMYSQL} | ||||
USES+= mysql | USES+= mysql | ||||
tcberner: why not
```MYSQL_USES=mysql
MYSQL_CONFIGURE_ENABLE=mysql``` | |||||
CONFIGURE_ARGS+=--enable-mysql | CONFIGURE_ARGS+=--enable-mysql | ||||
PLIST_SUB+= WITH_MYSQL="" | PLIST_SUB+= WITH_MYSQL="" | ||||
PLIST_SUB+= SQLDOC="" | _BUILDSQL= 1 | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-mysql | CONFIGURE_ARGS+=--disable-mysql | ||||
PLIST_SUB+= WITH_MYSQL="@comment " | PLIST_SUB+= WITH_MYSQL="@comment " | ||||
PLIST_SUB+= SQLDOC="@comment " | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MPGSQL} | .if ${PORT_OPTIONS:MPGSQL} | ||||
USES+= pgsql | USES+= pgsql | ||||
WANT_PGSQL= client | WANT_PGSQL= client | ||||
CONFIGURE_ARGS+=--enable-pgsql | CONFIGURE_ARGS+=--enable-pgsql | ||||
PLIST_SUB+= WITH_PGSQL="" | PLIST_SUB+= WITH_PGSQL="" | ||||
PLIST_SUB+= SQLDOC="" | _BUILDSQL= 1 | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-pgsql | CONFIGURE_ARGS+=--disable-pgsql | ||||
PLIST_SUB+= WITH_PGSQL="@comment " | PLIST_SUB+= WITH_PGSQL="@comment " | ||||
PLIST_SUB+= SQLDOC="@comment " | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSQLITE3} | .if ${PORT_OPTIONS:MSQLITE3} | ||||
USES+= pkgconfig sqlite | USES+= pkgconfig sqlite | ||||
CONFIGURE_ARGS+=--enable-sqlite3 \ | CONFIGURE_ARGS+=--enable-sqlite3 \ | ||||
--with-sqlite3-includes=${LOCALBASE}/include | --with-sqlite3-includes=${LOCALBASE}/include | ||||
PLIST_SUB+= WITH_SQLITE3="" | PLIST_SUB+= WITH_SQLITE3="" | ||||
PLIST_SUB+= SQLDOC="" | _BUILDSQL= 1 | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-sqlite3 | CONFIGURE_ARGS+=--disable-sqlite3 | ||||
PLIST_SUB+= WITH_SQLITE3="@comment " | PLIST_SUB+= WITH_SQLITE3="@comment " | ||||
.endif | |||||
.if _BUILDSQL | |||||
PLIST_SUB+= SQLDOC="" | |||||
.else | |||||
PLIST_SUB+= SQLDOC="@comment " | PLIST_SUB+= SQLDOC="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MLAYER2} | .if ${PORT_OPTIONS:MLAYER2} | ||||
Done Inline ActionsMLAYER2_CONFIGURE_ENABLE=... tcberner: ```
MLAYER2_CONFIGURE_ENABLE=...
``` | |||||
Done Inline ActionsWIthout leading M. otis: WIthout leading M. | |||||
CONFIGURE_ARGS+=--enable-l2 | CONFIGURE_ARGS+=--enable-l2 | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-l2 | CONFIGURE_ARGS+=--disable-l2 | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MIPV6} | .if ${PORT_OPTIONS:MIPV6} | ||||
CONFIGURE_ARGS+=--enable-ipv6 | CONFIGURE_ARGS+=--enable-ipv6 | ||||
.else | .else | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |
why not