1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/devel/mico/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

153 lines
3.9 KiB
Makefile

# New ports collection makefile for: mico
# Date created: 11 July 1998
# Whom: Marc G. Fournier <scrappy@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= mico
PORTVERSION= 2.3.11
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.mico.org/:src \
http://www.ciam.ru/~sem/FreeBSD/:docs
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:src \
doc-html.tar.gz:docs
MAINTAINER= sem@FreeBSD.org
COMMENT= Fully compliant implementation of CORBA2.4 with some CORBA3 features
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf:259
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
#CONFIGURE_ENV+= CC=${CC} CFLAGS="${CFLAGS}" CXX=${CXX} \
# CXXFLAGS="${CXXFLAGS}" CPP=${CPP}
OPTIONS= SERVICES "Build with all services, not only ORB" on \
SSL "Build with SSL" on \
X11 "Build with X11 support" off \
QT "Build with QT support" off \
GTK "Build with GTK support" off \
SYSTEM_GCC "Build with system gcc. (Only for 4.x)" off \
DEBUG "Build debug version" off
# stolen from bsd.port.mk (for OPTIONS works)
PORT_DBDIR?= /var/db/ports
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
.if exists(${OPTIONSFILE}) && !make(rmconfig)
.include "${OPTIONSFILE}"
.endif
.if exists(${OPTIONSFILE}.local)
.include "${OPTIONSFILE}.local"
.endif
# ================
.if !defined(WITH_SYSTEM_GCC)
USE_GCC= 3.4
.endif
CONFIGURE_ARGS= --enable-cd --disable-mini-stl --enable-threads
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
.if !defined(WITHOUT_SERVICES)
CONFIGURE_ARGS+= --enable-ccm --enable-life --enable-externalize
.else
CONFIGURE_ARGS+= --disable-coss
MICO_SERVICE= "@comment "
.endif
CONFIGURE_ENV+= CXXFLAGS="${CPPFLAGS} -Wno-unused"
.if defined(WITH_X11)
USE_XLIB= yes
CONFIGURE_ARGS+= --with-x
.else
CONFIGURE_ARGS+= --without-x
MICO_X11= "@comment "
.endif
.if defined(WITH_QT)
USE_QT_VER= 3
CONFIGURE_ARGS+= --with-qt=${LOCALBASE}
QTCPPFLAGS+= ${CPPFLAGS}
.else
MICO_QT= "@comment "
.endif
.if defined(WITH_GTK)
USE_GNOME= gtk12
CONFIGURE_ARGS+= --with-gtk=${LOCALBASE}
.else
MICO_GTK= "@comment "
.endif
.if defined(WITH_TCL)
LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83
CONFIGURE_ARGS+= --with-tcl
CPPFLAGS+= -I${LOCALBASE}/include/tcl8.3
CONFIGURE_ENV+= CPPFLAGS=${CPPFLAGS}
.else
MICO_TCL= "@comment "
.endif
.if defined(WITHOUT_SSL) || defined(WITHOUT_SERVICES)
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} FLEX=${FLEX}
MAN1= idl.1 imr.1 nsadmin.1
MAN5= micorc.5
MAN8= ird.8 micod.8 nsd.8
.include <bsd.port.pre.mk>
# Does not build on alpha 4.x
.if ${OSVERSION} < 500000
NOT_FOR_ARCHS= alpha
.endif
post-extract:
@${TAR} xzf ${DISTDIR}/doc-html.tar.gz -C ${WRKDIR}
post-patch:
@${REINPLACE_CMD} -e "s#\"-O2\"#\"${CFLAGS}\"#;s#\"-pthread#\"${PTHREAD_LIBS}#" ${WRKSRC}/configure.in
.if ${OSVERSION} < 500035
@${LN} -s /usr/include/g++/FlexLexer.h ${WRKSRC}/include
FLEX= ""
.else
FLEX= "@comment "
.endif
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 !defined(NOPORTDOCS)
${GMAKE} -C ${WRKSRC} install-doc
${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKDIR}/doc/doc/* ${DOCSDIR}/html
.endif
.include <bsd.port.post.mk>