1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/devel/mico/Makefile
Martin Wilke 1321e1e346 - Broken fails to build
[2361423366 - 0x8022041c0] address.cc:555: assertion failed
gmake[2]: *** [CosNaming.cc] Abort trap: 6 (core dumped)
gmake[2]: Leaving directory `/work/a/ports/devel/mico/work/mico/coss/naming'
gmake[1]: *** [idlcompile] Error 1
gmake[1]: Leaving directory `/work/a/ports/devel/mico/work/mico/coss'
gmake: *** [system] Error 1
*** Error code 1

Reported by:	pointyhat
2013-05-10 06:59:46 +00:00

118 lines
2.9 KiB
Makefile

# Created by: Marc G. Fournier <scrappy@freebsd.org>
# $FreeBSD$
PORTNAME= mico
PORTVERSION= 2.3.12
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20${PORTVERSION}/
PATCH_SITES= http://mico.org/errata/
PATCHFILES= mico-2.3.12-secfix1.diff
MAINTAINER= ports@FreeBSD.org
COMMENT= Secure, reliable, production-quality, standards-based CORBA middleware
BROKEN= fails to build
PATCH_DIST_STRIP= -p1
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf
CONFIGURE_ENV+= EGREP=`which egrep`
OPTIONS_DEFINE= SERVICES SSL X11 QT3 GTK1 DEBUG TCL DOCS
OPTIONS_DEFAULT= SSL SERVICES
SERVICES_DESC= With services, plain ORB
QT3_DESC= Build with QT3 support
GTK1_DESC= Build with GTK1 support
TCL_DESC= Build with TCL support
.include <bsd.port.options.mk>
NOT_FOR_ARCHS= sparc64
CONFIGURE_ARGS= --enable-cd --disable-mini-stl --enable-threads
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
.if ${PORT_OPTIONS:MSERVICES}
CONFIGURE_ARGS+= --enable-ccm
.else
CONFIGURE_ARGS+= --disable-coss
MICO_SERVICE= "@comment "
.endif
CXXFLAGS+= ${CPPFLAGS} -Wno-unused
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11
CONFIGURE_ARGS+= --with-x
.else
CONFIGURE_ARGS+= --without-x
MICO_X11= "@comment "
.endif
.if ${PORT_OPTIONS:MQT3}
USE_QT_VER= 3
CONFIGURE_ARGS+= --with-qt=${LOCALBASE}
QTCPPFLAGS+= ${CPPFLAGS}
.else
MICO_QT= "@comment "
.endif
.if ${PORT_OPTIONS:MGTK1}
USE_GNOME= gtk12
CONFIGURE_ARGS+= --with-gtk=${LOCALBASE}
.else
MICO_GTK= "@comment "
.endif
.if ${PORT_OPTIONS:MTCL}
USE_TCL= yes
CONFIGURE_ARGS+= --with-tcl
CPPFLAGS+= -I${TCL_INCLUDEDIR}
LDFLAGS+= -L${LOCALBASE}/lib
.else
MICO_TCL= "@comment "
.endif
.if empty(PORT_OPTIONS:MSSL) || empty(PORT_OPTIONS:MSERVICES)
MICO_SSL= "@comment "
.else
USE_OPENSSL= yes
CONFIGURE_ARGS+= --enable-ssl=${OPENSSLBASE}
CONFIGURE_ARGS+= --enable-csiv2 --enable-csl2
.endif
PLIST_SUB+= MICO_X11=${MICO_X11} MICO_QT=${MICO_QT} MICO_GTK=${MICO_GTK} \
MICO_TCL=${MICO_TCL} MICO_SSL=${MICO_SSL} \
MICO_SERVICE=${MICO_SERVICE}
MAN1= idl.1 imr.1 nsadmin.1
MAN5= micorc.5
MAN8= ird.8 micod.8 nsd.8
post-patch:
@${REINPLACE_CMD} -e "s#\"-O2\"#\"${CFLAGS}\"#" ${WRKSRC}/configure.in
post-configure:
@${FIND} ${WRKSRC}/demo -name Makefile | ${XARGS} \
${REINPLACE_CMD} -e "s#/doc/mico/examples#${EXAMPLESDIR:S#^${PREFIX}##}#"
@${REINPLACE_CMD} -e "s#/doc/mico/examples#${EXAMPLESDIR:S#^${PREFIX}##}#" ${WRKSRC}/demo/MakeVars
@${REINPLACE_CMD} -e "s#ministl##" ${WRKSRC}/include/Makefile
@${RM} -f ${WRKSRC}/include/mico/*.orig ${WRKSRC}/include/coss/*.orig
post-install:
@for i in `${GREP} '^lib/lib.*so$$' ${TMPPLIST}`; do \
${LN} -fs ${PREFIX}/$$i ${PREFIX}/$$i.1; \
done; \
for i in `${GREP} ^bin/ ${TMPPLIST}`; do \
(${STRIP_CMD} ${PREFIX}/$$i || ${TRUE}) 2> /dev/null; \
done
.if ${PORT_OPTIONS:MDOCS}
${GMAKE} -C ${WRKSRC} install-doc
.endif
.include <bsd.port.mk>