Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2003 22:01:00 +0800 (CST)
From:      "Ying-Chieh Chen" <yinjieh@csie.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/58121: [new-port] Add ports/devel/openthreads
Message-ID:  <200310161401.h9GE108s052924@net04.cs.ccu.edu.tw>
Resent-Message-ID: <200310161410.h9GEAH8w071176@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         58121
>Category:       ports
>Synopsis:       [new-port] Add ports/devel/openthreads
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 16 07:10:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Charlie &
>Release:        FreeBSD 4.8-RELEASE-p13 i386
>Organization:
MANA lab in CS/CCU
>Environment:
System: FreeBSD net04.cs.ccu.edu.tw 4.8-RELEASE-p13 FreeBSD 4.8-RELEASE-p13 #0: Mon Oct 6 23:47:41 CST 2003 root@net04.cs.ccu.edu.tw:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:

	Add ports/devel/openthreads, which is a dependency of ports/graphics/osg
	Please commit it, thanks!

>How-To-Repeat:

	N/A

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	openthreads
#	openthreads/Makefile
#	openthreads/distinfo
#	openthreads/pkg-descr
#	openthreads/pkg-plist
#	openthreads/files
#	openthreads/files/patch-Make::makedefs
#	openthreads/files/patch-Make::makerules
#	openthreads/files/patch-pthread_src::GNUmakefile
#
echo c - openthreads
mkdir -p openthreads > /dev/null 2>&1
echo x - openthreads/Makefile
sed 's/^X//' >openthreads/Makefile << 'END-of-openthreads/Makefile'
X# New ports collection makefile for:	openthreads
X# Date created:		16 October 2003
X# Whom:			Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	openthreads
XPORTVERSION=	1.2d3
XCATEGORIES=	devel
XMASTER_SITES=	http://www.csie.nctu.edu.tw/~yinjieh/
XDISTNAME=	OpenThreads-v1.2dev3-osg0.9.6
X
XMAINTAINER=	yinjieh@csie.nctu.edu.tw
XCOMMENT=	A library which provides Object-Oriented (OO) thread interface for C++ programmers
X
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XMAKE_ENV=	PTHREAD_LIBS=${PTHREAD_LIBS}
XONLY_FOR_ARCHS=         i386
X
XWRKSRC=		${WRKDIR}/${DISTNAME}
XMAKEFILE=	GNUmakefile
X
X# opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default
XALL_TARGET=	opt
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's,%%CXXFLAGS%%,${CXXFLAGS},g' \
X	${WRKSRC}/Make/makedefs
X
X.include <bsd.port.mk>
END-of-openthreads/Makefile
echo x - openthreads/distinfo
sed 's/^X//' >openthreads/distinfo << 'END-of-openthreads/distinfo'
XMD5 (OpenThreads-v1.2dev3-osg0.9.6.tar.gz) = 15c8b9658d509e18a043c1ba0ef212ef
END-of-openthreads/distinfo
echo x - openthreads/pkg-descr
sed 's/^X//' >openthreads/pkg-descr << 'END-of-openthreads/pkg-descr'
XFrom the 'overview' section of the official site:
X
XOpen Producer (or simply Producer) is a cross-platform C++/OpenGL library
Xthat is focused on Camera control. Producer's Camera provides projection 1,
Xfield of view, viewpoint control, and frame control. Further, Producer can
Xbe used in a multi-tasking environment to allow multiple Camera's to run in
Xparallel supporting hardware configurations with multiple display subsystems.
XThreading, Camera synchronization and frame rate control are simplified in
Xthe Producer programming interface. 
X
XProducer provides a simple, yet powerfully scalable approach for real-time 3D
Xapplications wishing to run within a single window to large, multidisplay
Xsystems. 
X
XWWW: http://www.andesengineering.com/Producer/
X
XMaintainer: "Ying-Chieh Chen" <yinjieh@csie.nctu.edu.tw>
END-of-openthreads/pkg-descr
echo x - openthreads/pkg-plist
sed 's/^X//' >openthreads/pkg-plist << 'END-of-openthreads/pkg-plist'
Xinclude/OpenThreads/Barrier
Xinclude/OpenThreads/Mutex
Xinclude/OpenThreads/Thread
Xinclude/OpenThreads/ScopedLock
Xinclude/OpenThreads/Exports
Xinclude/OpenThreads/Condition
Xlib/libOpenThreads.so
X@dirrm include/OpenThreads
END-of-openthreads/pkg-plist
echo c - openthreads/files
mkdir -p openthreads/files > /dev/null 2>&1
echo x - openthreads/files/patch-Make::makedefs
sed 's/^X//' >openthreads/files/patch-Make::makedefs << 'END-of-openthreads/files/patch-Make::makedefs'
X--- Make/makedefs.orig	Thu Oct 16 19:33:14 2003
X+++ Make/makedefs	Thu Oct 16 19:38:33 2003
X@@ -252,15 +252,22 @@
X       CXX               = g++
X     endif
X   DEPARG            = -MM
X-  INC               +=  -I/usr/local/include -I/usr/X11R6/include
X+  INC               +=  -I${LOCALBASE}/include -I${X11BASE}/include
X   DEF               += -W -Wall
X-  OPTF              = -O2 
X+  OPTF              = %%CXXFLAGS%%
X   DBGF              = -g 
X   SHARED            = -shared
X   ARCH              = 32
X   ARCHARGS          = 
X-  INST_LOCATION   = /opt/X11R6
X-  INST_SHARE = /usr/share/OpenThreads
X+  INST_SYS_PREFIX   = $(PREFIX)
X+  INST_SHARE_PREFIX = $(DATADIR)
X+  LINKARGS          = -L${X11BASE}/lib -L${LOCALBASE}/lib -rpath ${LOCALBASE}/lib -rpath ${X11BASE}/lib
X+  INST_LOCATION     = $(INST_SYS_PREFIX)
X+  INST_SHARE        = $(INST_SHARE_PREFIX)
X+  INST_DEMOS        = $(EXAMPLESDIR)/bin
X+  INST_SRC          = $(EXAMPLESDIR)/src
X+  INST_DOC          = $(DOCSDIR)
X+  INST_DATA         = $(DATADIR)
X endif
X 
X #### MacOS X specific definitions
END-of-openthreads/files/patch-Make::makedefs
echo x - openthreads/files/patch-Make::makerules
sed 's/^X//' >openthreads/files/patch-Make::makerules << 'END-of-openthreads/files/patch-Make::makerules'
X--- Make/makerules.orig	Thu Oct 16 19:39:35 2003
X+++ Make/makerules	Thu Oct 16 19:40:50 2003
X@@ -89,7 +89,7 @@
X $(EXEC:=.opt) :
X 	@[ -d $(OPTDIR) ] || mkdir $(OPTDIR)
X 	@cd $(OPTDIR); \
X-      $(MAKE) -f ../GNUmakefile DOF=$(OPTF)  TOPDIR=../${TOPDIR} \
X+      $(MAKE) -f ../GNUmakefile "DOF=$(OPTF)"  TOPDIR=../${TOPDIR} \
X           THISDIR=../$(THISDIR)\
X           MAKEDEPEND=Makedepend $(EXEC)
X 	@$(MAKE) LNSRC=$(OPTDIR)/$(EXEC) LNDEST=$(BININST)/$(OS)$(ARCH)/$(EXEC) __link
X@@ -98,7 +98,7 @@
X $(LIB:=.opt) : 
X 	@[ -d $(OPTDIR) ] || mkdir $(OPTDIR)
X 	@cd $(OPTDIR);\
X-	  $(MAKE) -f ../$(MAKEFILE) DOF=$(OPTF) TOPDIR=../${TOPDIR} \
X+	  $(MAKE) -f ../$(MAKEFILE) "DOF=$(OPTF)" TOPDIR=../${TOPDIR} \
X 	        THISDIR=../$(THISDIR)\
X 	        MAKEDEPEND=Makedepend $(LIB)
X 	@$(MAKE) LNSRC=$(OPTDIR)/$(LIB).$(LIB_EXT) LNDEST=$(LIBINST)/$(OS)$(ARCH)/$(LIB).$(LIB_EXT) __link
END-of-openthreads/files/patch-Make::makerules
echo x - openthreads/files/patch-pthread_src::GNUmakefile
sed 's/^X//' >openthreads/files/patch-pthread_src::GNUmakefile << 'END-of-openthreads/files/patch-pthread_src::GNUmakefile'
X--- pthread_src/GNUmakefile.orig	Thu Oct 16 19:43:25 2003
X+++ pthread_src/GNUmakefile	Thu Oct 16 19:43:56 2003
X@@ -15,6 +15,10 @@
X LIBS += -lpthread
X endif 
X 
X+ifeq ($(OS),FreeBSD) 
X+LIBS += $(PTHREAD_LIBS)
X+endif 
X+
X ifeq ($(OS),SunOS)
X LIBS +=  -lpthread -lposix4
X endif
END-of-openthreads/files/patch-pthread_src::GNUmakefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310161401.h9GE108s052924>