diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-04-11 01:41:53 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-04-11 01:41:53 +0800 |
commit | 778675807155659726646fb2d3cd3de7e9ee5c49 (patch) | |
tree | c807608d70fbad597cfe64bac03420055cd150da /devel/ace | |
parent | 8b136a9b9f0b13b0180fba44d0f3cea361101653 (diff) | |
download | freebsd-ports-graphics-778675807155659726646fb2d3cd3de7e9ee5c49.tar.gz freebsd-ports-graphics-778675807155659726646fb2d3cd3de7e9ee5c49.tar.zst freebsd-ports-graphics-778675807155659726646fb2d3cd3de7e9ee5c49.zip |
- Fix build on 7.x
Reported by: pointyhat via erwin
Diffstat (limited to 'devel/ace')
-rw-r--r-- | devel/ace/Makefile | 11 | ||||
-rw-r--r-- | devel/ace/files/extra-patch-ace-OS_NS_Thread.h | 11 |
2 files changed, 19 insertions, 3 deletions
diff --git a/devel/ace/Makefile b/devel/ace/Makefile index ac2daf834c3..cd133331338 100644 --- a/devel/ace/Makefile +++ b/devel/ace/Makefile @@ -30,13 +30,18 @@ WRKSRC= ${WRKDIR}/ACE_wrappers BUILD_WRKSRC= ${WRKSRC}/objdir INSTALL_WRKSRC= ${BUILD_WRKSRC} NOT_FOR_ARCHS= sparc64 +MAKE_JOBS_SAFE= yes MAN1= ace-gperf.1 .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 700015 || (${OSVERSION} < 700000 && ${OSVERSION} >= 601103) -EXTRA_PATCHES= ${FILESDIR}/extra-ace-OS_NS_netdb.inl +.if (${OSVERSION} >= 601103 && ${OSVERSION} < 700000) || ${OSVERSION} >= 700015 +EXTRA_PATCHES+= ${FILESDIR}/extra-ace-OS_NS_netdb.inl +.endif + +.if ${OSVERSION} >= 700110 && ${OSVERSION} < 800000 +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ace-OS_NS_Thread.h .endif post-extract: @@ -45,7 +50,7 @@ post-extract: post-patch: @${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \ 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g' -.if ${OSVERSION} >= 800024 +.if (${OSVERSION} >= 700110 && ${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 .endif diff --git a/devel/ace/files/extra-patch-ace-OS_NS_Thread.h b/devel/ace/files/extra-patch-ace-OS_NS_Thread.h new file mode 100644 index 00000000000..df23d873279 --- /dev/null +++ b/devel/ace/files/extra-patch-ace-OS_NS_Thread.h @@ -0,0 +1,11 @@ +--- ace/OS_NS_Thread.h.orig 2006-05-30 17:15:25.000000000 +0400 ++++ ace/OS_NS_Thread.h 2009-04-10 17:59:13.000000000 +0400 +@@ -38,6 +38,8 @@ + # include "ace/ACE_export.h" + # include "ace/Object_Manager_Base.h" + ++# include <sys/cpuset.h> ++ + # if defined (ACE_EXPORT_MACRO) + # undef ACE_EXPORT_MACRO + # endif |