diff options
author | James E. Housley <jeh@FreeBSD.org> | 2003-11-06 13:15:01 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2003-11-06 13:15:01 +0000 |
commit | bef333e56296d28ddbb81cd0b36e01b5627ed5fc (patch) | |
tree | 1dbea6f26f9656df6a2ac31df73e3dd22fb448d2 /devel/openthreads | |
parent | 2d118bfc876ed56e5a257e2ed73f9110508ebaf3 (diff) | |
download | ports-bef333e56296d28ddbb81cd0b36e01b5627ed5fc.tar.gz ports-bef333e56296d28ddbb81cd0b36e01b5627ed5fc.zip |
Notes
Diffstat (limited to 'devel/openthreads')
-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 |
7 files changed, 120 insertions, 0 deletions
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 |