Tweak net-mgmt/icingaweb2-module-businessprocess version 2.2.0_2
[dports.git] / net-mgmt / netmagis-common / Makefile
1 PORTNAME?=      netmagis
2 PORTVERSION?=   2.3.4
3 PORTREVISION=   2
4 CATEGORIES?=    net-mgmt
5 MASTER_SITES=   http://netmagis.org/files/
6 PKGNAMESUFFIX?= -common
7
8 MAINTAINER?=    pdagog@gmail.com
9 COMMENT?=       Netmagis common infrastructure
10 WWW=            http://www.netmagis.org/
11
12 LICENSE=        CECILL-B
13 LICENSE_NAME=   CeCILL-B Free Software License Agreement
14 LICENSE_FILE=   ${WRKSRC}/LICENSE
15 LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
16
17 RUN_DEPENDS+=   dtplite:devel/tcllib
18
19 NO_ARCH?=       yes
20 USES+=          pgsql:9.1+ tcl
21 WANT_PGSQL+=    pgtcl
22
23 SLAVEDIRS=      net-mgmt/netmagis-common \
24         net-mgmt/netmagis-database \
25         net-mgmt/netmagis-detecteq \
26         net-mgmt/netmagis-metro \
27         net-mgmt/netmagis-servers \
28         net-mgmt/netmagis-topo \
29         net-mgmt/netmagis-utils \
30         net-mgmt/netmagis-www
31
32 # Variables used in netmagis Makefiles
33 MAKE_ARGS+=     DESTDIR=${STAGEDIR}${DESTDIR} PREFIX=${PREFIX}
34 MAKE_ARGS+=     TCLSH=${TCLSH} TCLCONF=${TCL_LIBDIR}/tclConfig.sh
35
36 .if ${PKGNAMESUFFIX} == -topo || ${PKGNAMESUFFIX} == -www
37 ALL_TARGET=build${PKGNAMESUFFIX?=}
38 .else
39 ALL_TARGET=nothing
40 .endif
41
42 INSTALL_TARGET= install${PKGNAMESUFFIX}
43
44 # Change "cd foo; make" into "$(MAKE) -C foo" to unbreak parallel builds
45 post-patch:
46         @${FIND} ${WRKSRC} -type f -name Makefile -print0 | ${XARGS} -0 \
47                 ${REINPLACE_CMD} -E 's,cd(.+) (;|&&) make,$$(MAKE) -C\1,'
48         @${REINPLACE_CMD} -E 's,cd (.+) ; (ln -s en ),\2\1/,' \
49                 ${WRKSRC}/www/Makefile
50         ${REINPLACE_CMD} '/NMVARDIR/s/$$(PREFIX)//' ${WRKSRC}/Makefile
51
52 .include <bsd.port.mk>