diff options
Diffstat (limited to 'devel/ace/Makefile')
-rw-r--r-- | devel/ace/Makefile | 131 |
1 files changed, 92 insertions, 39 deletions
diff --git a/devel/ace/Makefile b/devel/ace/Makefile index bf0a7b87ee57..ef41bdf930d9 100644 --- a/devel/ace/Makefile +++ b/devel/ace/Makefile @@ -6,8 +6,7 @@ # PORTNAME= ace -PORTVERSION= 5.5.2 -PORTREVISION= 3 +PORTVERSION= 6.0.8 CATEGORIES= devel MASTER_SITES= ftp://download.dre.vanderbilt.edu/previous_versions/ \ http://download.dre.vanderbilt.edu/previous_versions/ @@ -16,61 +15,115 @@ DISTNAME= ACE-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= The Adaptive Communication Environment for C++ +OPTIONS= OPENSSL "Build with OpenSSL support " on \ + TRIO "Build with trio support" off \ + X11 "Build with X11 support" off \ + FLTK "Build with FLTK support" off \ + TK "Build with Tcl/Tk support" off \ + QT "Build with Qt support" off \ + CONFLICTS= ace+tao-5* -USE_AUTOTOOLS= libtool +NOT_FOR_ARCHS= sparc64 + +WRKSRC= ${WRKDIR}/ACE_wrappers + USE_BZIP2= yes +USE_GNOME= pkgconfig +USE_PERL5_BUILD=yes USE_GMAKE= yes +MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/lib" ACE_ROOT="${WRKSRC}" \ + CROSS-COMPILE=1 +MAKEFILE= GNUmakefile USE_LDCONFIG= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--program-transform-name s,^,ace-, -USE_GNOME= pkgconfig - -WRKSRC= ${WRKDIR}/ACE_wrappers -BUILD_WRKSRC= ${WRKSRC}/objdir -INSTALL_WRKSRC= ${BUILD_WRKSRC} -NOT_FOR_ARCHS= sparc64 MAKE_JOBS_SAFE= yes -MAN1= ace-gperf.1 +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -.include <bsd.port.pre.mk> +PLIST_SUB= VERSION="${PORTVERSION}" -EXTRA_PATCHES+= ${FILESDIR}/extra-ace-OS_NS_netdb.inl +.include <bsd.port.options.mk> -.if ${OSVERSION} < 800000 -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ace-OS_NS_Thread.h +.if !defined(WITHOUT_OPENSSL) +USE_OPENSSL= yes +MAKE_ENV+= ssl=1 +PLIST_SUB+= OPENSSL="" +.else +PLIST_SUB+= OPENSSL="@comment " .endif -post-extract: - @${MKDIR} ${BUILD_WRKSRC} +.if defined(WITH_TRIO) +BUILD_DEPENDS+= trio>=0:${PORTSDIR}/devel/trio +MAKE_ENV+= trio=1 +.endif -post-patch: - @${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \ - 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g' -.if (${OSVERSION} < 800000) || ${OSVERSION} >= 800024 - @${REINPLACE_CMD} -e 's|cpu_set_t|cpuset_t|g' ${WRKSRC}/ace/OS_NS_Thread.cpp \ - ${WRKSRC}/ace/OS_NS_Thread.h +.if defined(WITH_X11) +USE_XORG= xt +MAKE_ENV+= xt=1 +PLIST_SUB+= X11="" +.else +PLIST_SUB+= X11="@comment " +.endif + +.if defined(WITH_FLTK) +LIB_DEPENDS+= fltk:${PORTSDIR}/x11-toolkits/fltk +MAKE_ENV+= fl=1 +PLIST_SUB+= FLTK="" +.else +PLIST_SUB+= FLTK="@comment " .endif +.if defined(WITH_TK) +USE_TK_BUILD= yes +USE_TK= yes +MAKE_ENV+= tk=1 +PLIST_SUB+= TK="" +.else +PLIST_SUB+= TK="@comment " +.endif + +.if defined(WITH_QT) +USE_QT_VER= 4 +QT_COMPONENTS= corelib gui moc_build +MAKE_ENV+= qt=1 qt4=1 QTDIR="${QT_PREFIX}" +CPPFLAGS+= -I${QT_INCDIR} +LDFLAGS+= -L${QT_LIBDIR} +PLIST_SUB+= QT="" +.else +PLIST_SUB+= QT="@comment " +.endif + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} -e \ + 's|/$$libdir/pkgconfig|/libdata/pkgconfig|g' ${WRKSRC}/bin/ace_install_pkgconfig.pl + @${REINPLACE_CMD} -e \ + 's|bin/moc)|bin/moc-qt4)|g ; \ + s|bin/moc,|bin/moc-qt4,|'g ${WRKSRC}/ace/QtReactor/GNUmakefile.ACE_Qt4Reactor_moc + do-configure: - @(cd ${BUILD_WRKSRC} && \ - if ! ${SETENV} CC="${CC}" CXX="${CXX}" \ - CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ - INSTALL="/usr/bin/install -c ${_BINOWNGRP}" \ - INSTALL_DATA="${INSTALL_DATA}" \ - INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ - INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ - ${CONFIGURE_ENV} ../${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \ - ${ECHO_CMD} "===> Script \"${CONFIGURE_SCRIPT}\" failed unexpectedly."; \ - (${ECHO_CMD} ${CONFIGURE_FAIL_MESSAGE}) | ${FMT} 75 79 ; \ - ${FALSE}; \ - fi) + @cd ${WRKSRC}/ace \ + && ${ECHO_CMD} "#include <ace/config-${OPSYS:L}.h>" >> config.h + @cd ${WRKSRC}/include/makeinclude \ + && ${ECHO_CMD} "include \$$(ACE_ROOT)/include/makeinclude/platform_${OPSYS:L}.GNU" >> platform_macros.GNU \ + && ${ECHO_CMD} "CC= ${CC}" >> platform_macros.GNU \ + && ${ECHO_CMD} "CXX= ${CXX}" >> platform_macros.GNU \ + && ${ECHO_CMD} "CPPFLAGS= ${CPPFLAGS}" >> platform_macros.GNU \ + && ${ECHO_CMD} "LDFLAGS= ${LDFLAGS}" >> platform_macros.GNU \ + && ${ECHO_CMD} "DCFLAGS=" >> platform_macros.GNU \ + && ${ECHO_CMD} "OCFLAGS= ${CFLAGS}" >> platform_macros.GNU \ + && ${ECHO_CMD} "INSTALL_PREFIX= ${PREFIX}" >> platform_macros.GNU post-install: - @for f in `${GREP} "${PORTVERSION}.*\.so$$" ${PLIST}`; do \ - n=`echo $${f}|sed -e 's/-${PORTVERSION}//'`; \ - ${LN} -fs ${PREFIX}/$$f ${PREFIX}/$${n}.5; \ + @for f in `${LS} -d \ + ${PREFIX}/lib/libACE*.so.${PORTVERSION} \ + ${PREFIX}/lib/libJAWS.so.${PORTVERSION} \ + ${PREFIX}/lib/libKokyu.so.${PORTVERSION} \ + | ${XARGS} ${BASENAME}`; do \ + n=`echo $${f}|sed -e 's/.so.${PORTVERSION}/.so/'`; \ + ${LN} -sf $${n}.${PORTVERSION} ${PREFIX}/lib/$${n}.6; \ done .include <bsd.port.post.mk> |