diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/openthreads/Makefile | 32 | ||||
-rw-r--r-- | devel/openthreads/distinfo | 1 | ||||
-rw-r--r-- | devel/openthreads/files/patch-Make::makedefs | 29 | ||||
-rw-r--r-- | devel/openthreads/files/patch-Make::makerules | 20 | ||||
-rw-r--r-- | devel/openthreads/files/patch-pthread_src::GNUmakefile | 13 | ||||
-rw-r--r-- | devel/openthreads/pkg-descr | 17 | ||||
-rw-r--r-- | devel/openthreads/pkg-plist | 8 |
8 files changed, 121 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 0391ba564ce6..83bdfc49415f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -479,6 +479,7 @@ SUBDIR += ocamlweb SUBDIR += omniORB SUBDIR += oniguruma + SUBDIR += openthreads SUBDIR += openzz SUBDIR += orbitcpp SUBDIR += ossp-al diff --git a/devel/openthreads/Makefile b/devel/openthreads/Makefile new file mode 100644 index 000000000000..3d9eb6421c08 --- /dev/null +++ b/devel/openthreads/Makefile @@ -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> diff --git a/devel/openthreads/distinfo b/devel/openthreads/distinfo new file mode 100644 index 000000000000..2d4d918890ae --- /dev/null +++ b/devel/openthreads/distinfo @@ -0,0 +1 @@ +MD5 (OpenThreads-v1.2dev3-osg0.9.6.tar.gz) = 15c8b9658d509e18a043c1ba0ef212ef diff --git a/devel/openthreads/files/patch-Make::makedefs b/devel/openthreads/files/patch-Make::makedefs new file mode 100644 index 000000000000..f5b166baef88 --- /dev/null +++ b/devel/openthreads/files/patch-Make::makedefs @@ -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 diff --git a/devel/openthreads/files/patch-Make::makerules b/devel/openthreads/files/patch-Make::makerules new file mode 100644 index 000000000000..2bee63d69776 --- /dev/null +++ b/devel/openthreads/files/patch-Make::makerules @@ -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 diff --git a/devel/openthreads/files/patch-pthread_src::GNUmakefile b/devel/openthreads/files/patch-pthread_src::GNUmakefile new file mode 100644 index 000000000000..485cc9f42414 --- /dev/null +++ b/devel/openthreads/files/patch-pthread_src::GNUmakefile @@ -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 diff --git a/devel/openthreads/pkg-descr b/devel/openthreads/pkg-descr new file mode 100644 index 000000000000..c45e0428d374 --- /dev/null +++ b/devel/openthreads/pkg-descr @@ -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> diff --git a/devel/openthreads/pkg-plist b/devel/openthreads/pkg-plist new file mode 100644 index 000000000000..36998cbf84a9 --- /dev/null +++ b/devel/openthreads/pkg-plist @@ -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 |