aboutsummaryrefslogtreecommitdiffstats
path: root/devel/omniNotify/Makefile
blob: c489fc0f891a35020be0bfe449fff0d5b443a125 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Sergey Matveychuk <sem@FreeBSD.org>
# $FreeBSD$

PORTNAME=   omniNotify
PORTVERSION=    2.1.01
#It' snapshot of development version actually
PORTREVISION=   1
CATEGORIES= devel python
MASTER_SITES=   http://www.stasyan.com/devel/distfiles/
DISTNAME=   omniNotify-2-latest

MAINTAINER= ports@FreeBSD.org
COMMENT=    CORBA Notification Service (CosNotification) for omniORB

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libomniORB4.so:devel/omniORB-4.1
# parts of omniORB4-4.1 source tree is required to build
BUILD_DEPENDS=  ${NONEXISTENT}:devel/omniORB-4.1:patch

WRKSRC=     ${WRKDIR}/${PORTNAME}
CONFIGURE_WRKSRC=   ${WRKSRC}/build
BUILD_WRKSRC=   ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
OMNIORB_WRKSRC= `cd ${PORTSDIR}/devel/omniORB-4.1 && ${MAKE} -V WRKSRC`

USES=       gmake python
GNU_CONFIGURE=  yes
MAKEFILE=   GNUmakefile
USE_LDCONFIG=   yes

CONFIGURE_SCRIPT=   ../configure
CONFIGURE_ENV+= PYTHON=${PYTHON_CMD}
CONFIGURE_ARGS= --with-omniorb=${LOCALBASE}
OPTIONS_DEFINE= EXAMPLES

.include <bsd.port.options.mk>

pre-configure:
    ${REINPLACE_CMD} -Ee 's|-O2|${CFLAGS}|' \
        ${WRKSRC}/mk/beforeauto.mk.in
    ${MKDIR} ${CONFIGURE_WRKSRC}
    cd ${OMNIORB_WRKSRC} && ${FIND} idl | ${CPIO} --quiet -pdum ${WRKSRC}

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/notifd \
        ${STAGEDIR}${PREFIX}/lib/lib*.so
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! ( -name \.cvsignore -o -name *\.orig )"
.endif

.include <bsd.port.mk>