mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add ports/devel/openthreads, which is a dependency of ports/graphics/osg
PR: 58121 Submitted by: yinjieh@csie.nctu.edu.tw
This commit is contained in:
parent
2d118bfc87
commit
bef333e562
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93238
8 changed files with 121 additions and 0 deletions
|
@ -479,6 +479,7 @@
|
||||||
SUBDIR += ocamlweb
|
SUBDIR += ocamlweb
|
||||||
SUBDIR += omniORB
|
SUBDIR += omniORB
|
||||||
SUBDIR += oniguruma
|
SUBDIR += oniguruma
|
||||||
|
SUBDIR += openthreads
|
||||||
SUBDIR += openzz
|
SUBDIR += openzz
|
||||||
SUBDIR += orbitcpp
|
SUBDIR += orbitcpp
|
||||||
SUBDIR += ossp-al
|
SUBDIR += ossp-al
|
||||||
|
|
32
devel/openthreads/Makefile
Normal file
32
devel/openthreads/Makefile
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# New ports collection makefile for: openthreads
|
||||||
|
# Date created: 16 October 2003
|
||||||
|
# Whom: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= openthreads
|
||||||
|
PORTVERSION= 1.2d3
|
||||||
|
CATEGORIES= devel
|
||||||
|
MASTER_SITES= http://www.csie.nctu.edu.tw/~yinjieh/
|
||||||
|
DISTNAME= OpenThreads-v1.2dev3-osg0.9.6
|
||||||
|
|
||||||
|
MAINTAINER= yinjieh@csie.nctu.edu.tw
|
||||||
|
COMMENT= A library which provides OO thread interface for C++ programmers
|
||||||
|
|
||||||
|
USE_GMAKE= yes
|
||||||
|
USE_REINPLACE= yes
|
||||||
|
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
|
||||||
|
ONLY_FOR_ARCHS= i386
|
||||||
|
|
||||||
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||||
|
MAKEFILE= GNUmakefile
|
||||||
|
|
||||||
|
# opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default
|
||||||
|
ALL_TARGET= opt
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e 's,%%CXXFLAGS%%,${CXXFLAGS},g' \
|
||||||
|
${WRKSRC}/Make/makedefs
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
devel/openthreads/distinfo
Normal file
1
devel/openthreads/distinfo
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MD5 (OpenThreads-v1.2dev3-osg0.9.6.tar.gz) = 15c8b9658d509e18a043c1ba0ef212ef
|
29
devel/openthreads/files/patch-Make::makedefs
Normal file
29
devel/openthreads/files/patch-Make::makedefs
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
--- Make/makedefs.orig Thu Oct 16 19:33:14 2003
|
||||||
|
+++ Make/makedefs Thu Oct 16 19:38:33 2003
|
||||||
|
@@ -252,15 +252,22 @@
|
||||||
|
CXX = g++
|
||||||
|
endif
|
||||||
|
DEPARG = -MM
|
||||||
|
- INC += -I/usr/local/include -I/usr/X11R6/include
|
||||||
|
+ INC += -I${LOCALBASE}/include -I${X11BASE}/include
|
||||||
|
DEF += -W -Wall
|
||||||
|
- OPTF = -O2
|
||||||
|
+ OPTF = %%CXXFLAGS%%
|
||||||
|
DBGF = -g
|
||||||
|
SHARED = -shared
|
||||||
|
ARCH = 32
|
||||||
|
ARCHARGS =
|
||||||
|
- INST_LOCATION = /opt/X11R6
|
||||||
|
- INST_SHARE = /usr/share/OpenThreads
|
||||||
|
+ INST_SYS_PREFIX = $(PREFIX)
|
||||||
|
+ INST_SHARE_PREFIX = $(DATADIR)
|
||||||
|
+ LINKARGS = -L${X11BASE}/lib -L${LOCALBASE}/lib -rpath ${LOCALBASE}/lib -rpath ${X11BASE}/lib
|
||||||
|
+ INST_LOCATION = $(INST_SYS_PREFIX)
|
||||||
|
+ INST_SHARE = $(INST_SHARE_PREFIX)
|
||||||
|
+ INST_DEMOS = $(EXAMPLESDIR)/bin
|
||||||
|
+ INST_SRC = $(EXAMPLESDIR)/src
|
||||||
|
+ INST_DOC = $(DOCSDIR)
|
||||||
|
+ INST_DATA = $(DATADIR)
|
||||||
|
endif
|
||||||
|
|
||||||
|
#### MacOS X specific definitions
|
20
devel/openthreads/files/patch-Make::makerules
Normal file
20
devel/openthreads/files/patch-Make::makerules
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- Make/makerules.orig Thu Oct 16 19:39:35 2003
|
||||||
|
+++ Make/makerules Thu Oct 16 19:40:50 2003
|
||||||
|
@@ -89,7 +89,7 @@
|
||||||
|
$(EXEC:=.opt) :
|
||||||
|
@[ -d $(OPTDIR) ] || mkdir $(OPTDIR)
|
||||||
|
@cd $(OPTDIR); \
|
||||||
|
- $(MAKE) -f ../GNUmakefile DOF=$(OPTF) TOPDIR=../${TOPDIR} \
|
||||||
|
+ $(MAKE) -f ../GNUmakefile "DOF=$(OPTF)" TOPDIR=../${TOPDIR} \
|
||||||
|
THISDIR=../$(THISDIR)\
|
||||||
|
MAKEDEPEND=Makedepend $(EXEC)
|
||||||
|
@$(MAKE) LNSRC=$(OPTDIR)/$(EXEC) LNDEST=$(BININST)/$(OS)$(ARCH)/$(EXEC) __link
|
||||||
|
@@ -98,7 +98,7 @@
|
||||||
|
$(LIB:=.opt) :
|
||||||
|
@[ -d $(OPTDIR) ] || mkdir $(OPTDIR)
|
||||||
|
@cd $(OPTDIR);\
|
||||||
|
- $(MAKE) -f ../$(MAKEFILE) DOF=$(OPTF) TOPDIR=../${TOPDIR} \
|
||||||
|
+ $(MAKE) -f ../$(MAKEFILE) "DOF=$(OPTF)" TOPDIR=../${TOPDIR} \
|
||||||
|
THISDIR=../$(THISDIR)\
|
||||||
|
MAKEDEPEND=Makedepend $(LIB)
|
||||||
|
@$(MAKE) LNSRC=$(OPTDIR)/$(LIB).$(LIB_EXT) LNDEST=$(LIBINST)/$(OS)$(ARCH)/$(LIB).$(LIB_EXT) __link
|
13
devel/openthreads/files/patch-pthread_src::GNUmakefile
Normal file
13
devel/openthreads/files/patch-pthread_src::GNUmakefile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
--- pthread_src/GNUmakefile.orig Thu Oct 16 19:43:25 2003
|
||||||
|
+++ pthread_src/GNUmakefile Thu Oct 16 19:43:56 2003
|
||||||
|
@@ -15,6 +15,10 @@
|
||||||
|
LIBS += -lpthread
|
||||||
|
endif
|
||||||
|
|
||||||
|
+ifeq ($(OS),FreeBSD)
|
||||||
|
+LIBS += $(PTHREAD_LIBS)
|
||||||
|
+endif
|
||||||
|
+
|
||||||
|
ifeq ($(OS),SunOS)
|
||||||
|
LIBS += -lpthread -lposix4
|
||||||
|
endif
|
17
devel/openthreads/pkg-descr
Normal file
17
devel/openthreads/pkg-descr
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
From the 'overview' section of the official site:
|
||||||
|
|
||||||
|
Open Producer (or simply Producer) is a cross-platform C++/OpenGL library
|
||||||
|
that is focused on Camera control. Producer's Camera provides projection 1,
|
||||||
|
field of view, viewpoint control, and frame control. Further, Producer can
|
||||||
|
be used in a multi-tasking environment to allow multiple Camera's to run in
|
||||||
|
parallel supporting hardware configurations with multiple display subsystems.
|
||||||
|
Threading, Camera synchronization and frame rate control are simplified in
|
||||||
|
the Producer programming interface.
|
||||||
|
|
||||||
|
Producer provides a simple, yet powerfully scalable approach for real-time 3D
|
||||||
|
applications wishing to run within a single window to large, multidisplay
|
||||||
|
systems.
|
||||||
|
|
||||||
|
WWW: http://www.andesengineering.com/Producer/
|
||||||
|
|
||||||
|
Maintainer: "Ying-Chieh Chen" <yinjieh@csie.nctu.edu.tw>
|
8
devel/openthreads/pkg-plist
Normal file
8
devel/openthreads/pkg-plist
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
include/OpenThreads/Barrier
|
||||||
|
include/OpenThreads/Mutex
|
||||||
|
include/OpenThreads/Thread
|
||||||
|
include/OpenThreads/ScopedLock
|
||||||
|
include/OpenThreads/Exports
|
||||||
|
include/OpenThreads/Condition
|
||||||
|
lib/libOpenThreads.so
|
||||||
|
@dirrm include/OpenThreads
|
Loading…
Add table
Reference in a new issue