2012-12-01 00:52:21 +01:00
|
|
|
# Created by: Sergey Matveychuk <sem@ciam.ru>
|
2004-01-05 20:32:03 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ace
|
2013-10-10 09:19:48 +02:00
|
|
|
PORTVERSION= 6.2.2
|
2006-03-15 12:24:06 +01:00
|
|
|
CATEGORIES= devel
|
2009-01-31 00:51:34 +01:00
|
|
|
MASTER_SITES= ftp://download.dre.vanderbilt.edu/previous_versions/ \
|
|
|
|
http://download.dre.vanderbilt.edu/previous_versions/
|
2012-12-01 00:52:21 +01:00
|
|
|
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
|
2006-03-15 12:24:06 +01:00
|
|
|
|
2008-12-22 17:09:23 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-02-07 15:23:11 +01:00
|
|
|
COMMENT= Adaptive Communication Environment for C++
|
2004-01-05 20:32:03 +01:00
|
|
|
|
2004-01-16 18:59:46 +01:00
|
|
|
CONFLICTS= ace+tao-5*
|
2004-01-05 20:32:03 +01:00
|
|
|
|
2012-02-07 05:29:35 +01:00
|
|
|
WRKSRC= ${WRKDIR}/ACE_wrappers
|
|
|
|
|
2006-03-15 12:24:06 +01:00
|
|
|
USE_BZIP2= yes
|
2013-10-10 09:19:48 +02:00
|
|
|
USES= gmake perl5 pkgconfig
|
2013-08-03 15:44:00 +02:00
|
|
|
USE_PERL5= build
|
2012-02-07 05:29:35 +01:00
|
|
|
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/lib" ACE_ROOT="${WRKSRC}" \
|
|
|
|
CROSS-COMPILE=1
|
|
|
|
MAKEFILE= GNUmakefile
|
2007-01-28 15:46:35 +01:00
|
|
|
USE_LDCONFIG= yes
|
2006-03-15 12:24:06 +01:00
|
|
|
|
2012-02-07 05:29:35 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-03-15 12:24:06 +01:00
|
|
|
|
2012-02-07 05:29:35 +01:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
2006-03-15 12:24:06 +01:00
|
|
|
|
2013-10-10 09:19:48 +02:00
|
|
|
OPTIONS_DEFINE= FLTK QT4 SSL TK TRIO X11
|
|
|
|
OPTIONS_DEFAULT= SSL
|
|
|
|
OPTIONS_SUB= yes
|
2009-04-10 19:41:53 +02:00
|
|
|
|
2013-10-10 09:19:48 +02:00
|
|
|
FLTK_DESC= FLTK GUI toolkit
|
|
|
|
FLTK_LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
FLTK_MAKE_ENV= fl=1
|
2006-04-23 22:35:15 +02:00
|
|
|
|
2013-10-10 09:19:48 +02:00
|
|
|
QT4_USE= QT4=corelib gui moc_build
|
|
|
|
QT4_MAKE_ENV= qt=1 qt4=1 QTDIR="${QT_PREFIX}"
|
|
|
|
QT4_CPPFLAGS= -I${QT_INCDIR}
|
|
|
|
QT4_LDFLAGS= -L${QT_LIBDIR}
|
2004-01-05 20:32:03 +01:00
|
|
|
|
2013-10-10 09:19:48 +02:00
|
|
|
SSL_USE= OPENSSL=yes
|
|
|
|
SSL_MAKE_ENV= ssl=1
|
2012-02-07 05:29:35 +01:00
|
|
|
|
2013-10-10 09:19:48 +02:00
|
|
|
TK_USES= tk
|
|
|
|
TK_MAKE_ENV= tk=1
|
2007-01-30 21:23:16 +01:00
|
|
|
|
2013-10-10 09:19:48 +02:00
|
|
|
TRIO_DESC= Trio portable string functions
|
|
|
|
TRIO_BUILD_DEPENDS= trio>=0:${PORTSDIR}/devel/trio
|
|
|
|
TRIO_MAKE_ENV= trio=1
|
2012-02-07 05:29:35 +01:00
|
|
|
|
2013-10-10 09:19:48 +02:00
|
|
|
X11_USE= XORG=xt
|
|
|
|
X11_MAKE_ENV= xt=1
|
2012-02-07 05:29:35 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-05-27 08:47:44 +02:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ia64, powerpc, or sparc64
|
|
|
|
.endif
|
|
|
|
|
2012-02-07 05:29:35 +01:00
|
|
|
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 ; \
|
2012-12-01 00:52:21 +01:00
|
|
|
s|bin/moc,|bin/moc-qt4,|g' ${WRKSRC}/ace/QtReactor/GNUmakefile.ACE_Qt4Reactor_moc
|
2012-02-07 05:29:35 +01:00
|
|
|
|
2006-03-15 12:24:06 +01:00
|
|
|
do-configure:
|
2012-02-07 05:29:35 +01:00
|
|
|
@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 \
|
2013-03-24 16:59:45 +01:00
|
|
|
&& ${ECHO_CMD} "INSTALL_PREFIX= ${PREFIX}" >> platform_macros.GNU \
|
|
|
|
&& ${ECHO_CMD} "PLATFORM_TK_CPPFLAGS= \$$(shell . ${TK_LIBDIR}/tkConfig.sh && ${ECHO_CMD} -n \$$\$$TK_INCLUDE_SPEC)" >> platform_macros.GNU \
|
|
|
|
&& ${ECHO_CMD} "PLATFORM_TK_LIBS= \$$(shell . ${TK_LIBDIR}/tkConfig.sh && ${ECHO_CMD} -n \$$\$$TK_LIB_FLAG)" >> platform_macros.GNU \
|
|
|
|
&& ${ECHO_CMD} "PLATFORM_TCL_CPPFLAGS= \$$(shell . ${TCL_LIBDIR}/tclConfig.sh && ${ECHO_CMD} -n \$$\$$TCL_INCLUDE_SPEC)" >> platform_macros.GNU \
|
|
|
|
&& ${ECHO_CMD} "PLATFORM_TCL_LIBS= \$$(shell . ${TCL_LIBDIR}/tclConfig.sh && ${ECHO_CMD} -n \$$\$$TCL_LIB_FLAG)" >> platform_macros.GNU
|
2007-01-30 21:23:16 +01:00
|
|
|
|
|
|
|
post-install:
|
2012-02-07 05:29:35 +01:00
|
|
|
@for f in `${LS} -d \
|
2013-10-10 09:19:48 +02:00
|
|
|
${STAGEDIR}${PREFIX}/lib/libACE*.so.${PORTVERSION} \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/libJAWS.so.${PORTVERSION} \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/libKokyu.so.${PORTVERSION} \
|
2012-02-07 05:29:35 +01:00
|
|
|
| ${XARGS} ${BASENAME}`; do \
|
|
|
|
n=`echo $${f}|sed -e 's/.so.${PORTVERSION}/.so/'`; \
|
2013-10-10 09:19:48 +02:00
|
|
|
${LN} -sf $${n}.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/$${n}.6; \
|
2007-01-30 21:23:16 +01:00
|
|
|
done
|
2004-01-05 20:32:03 +01:00
|
|
|
|
2006-03-15 12:24:06 +01:00
|
|
|
.include <bsd.port.post.mk>
|