summaryrefslogtreecommitdiff
path: root/sysutils/syslog-ng/Makefile.module
blob: 5df5861edc37c1ec29871f7870f558cda99834cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $NetBSD: Makefile.module,v 1.2 2016/08/21 20:18:30 fhajny Exp $
# used by sysutils/py-syslog-ng/Makefile
# used by sysutils/syslog-ng-amqp/Makefile
# used by sysutils/syslog-ng-curl/Makefile
# used by sysutils/syslog-ng-geoip/Makefile
# used by sysutils/syslog-ng-json/Makefile
# used by sysutils/syslog-ng-mongodb/Makefile
# used by sysutils/syslog-ng-redis/Makefile
# used by sysutils/syslog-ng-smtp/Makefile
# used by sysutils/syslog-ng-sql/Makefile

.include "../../sysutils/syslog-ng/Makefile.common"

PKGNAME?=	${DISTNAME:S/ng/ng-${SYSLOG_MOD}/}

DEPENDS+=	syslog-ng-${PKGVERSION_NOREV}{nb*,}:../../sysutils/syslog-ng

CONFIGURE_ARGS+=	--enable-${SYSLOG_MOD}

SYSLOG_MOD_DIR?=	${SYSLOG_MOD}
SYSLOG_MOD_TARGET?=	${SYSLOG_MOD_DIR}
BUILD_TARGET?=		modules/${SYSLOG_MOD_DIR}/lib${SYSLOG_MOD_TARGET}.la

INSTALL_TARGET=		install-moduleLTLIBRARIES
INSTALL_MAKE_FLAGS+=	module_LTLIBRARIES=${BUILD_TARGET}

INSTALLATION_DIRS=	lib/syslog-ng