ports/143624: [NEW PORT]math/libranlip

bf bf1783 at gmail.com
Sun Feb 7 03:00:14 UTC 2010


>Number:         143624
>Category:       ports
>Synopsis:       [NEW PORT]math/libranlip
>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:   Sun Feb 07 03:00:13 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        9-CURRENT amd64
>Organization:
-
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	libranlip
#	libranlip/Makefile
#	libranlip/pkg-descr
#	libranlip/distinfo
#	libranlip/files
#	libranlip/files/patch-examples__makefile
#
echo c - libranlip
mkdir -p libranlip > /dev/null 2>&1
echo x - libranlip/Makefile
sed 's/^X//' >libranlip/Makefile << 'b8a6664d7f3fcce084936b4fc98eb999'
X# New ports collection makefile for:	libranlip
X# Date created:		6 Feb 2010
X# Whom:			bf <bf1783 at gmail.com>
X# $FreeBSD$
X
XPORTNAME=	libranlip
XDISTVERSION=	1.0
XCATEGORIES=	math
XMASTER_SITES=	http://www.deakin.edu.au/~gleb/
X
XMAINTAINER=	bf1783 at gmail.com
XCOMMENT=	A random variate generator for Lipschitz-continuous densities
X
XGNU_CONFIGURE=	yes
XUSE_LDCONFIG=	yes
X
XINFO=	ranlip
XPLIST_FILES=	include/ranlip.h include/ranlipdist.h include/ranlipproc.h lib/libranlip.so.${PORTVERSION} \
X		lib/libranlip.so.${PORTVERSION:R} lib/libranlip.la lib/libranlip.a
XPORTDOCS=	ranlip.ps
XPORTEXAMPLES=	makefile ranliptest.cpp ranliptestproc.cpp
XTESTPROGS=	static_example static_example2 static_example3 shared_example
X
Xpost-install:
X	${LN} -s ${PREFIX}/lib/libranlip.so.${PORTVERSION} ${PREFIX}/lib/libranlip.so.${PORTVERSION:R}
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/docs/ranlip.ps ${DOCSDIR}
X.endif
X.if !defined(NOPORTEXAMPLES)
X	${MKDIR} ${EXAMPLESDIR}
X.for _file in ${PORTEXAMPLES}
X	${INSTALL_DATA} ${WRKSRC}/examples/${_file} ${EXAMPLESDIR}
X.endfor
X.endif
X
Xtest: build
X	@(cd ${WRKSRC}/examples; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all)
X.for _prog in ${TESTPROGS}
X	@(cd ${WRKSRC}/examples && ./${_prog})
X.endfor
X
X.include <bsd.port.mk>
b8a6664d7f3fcce084936b4fc98eb999
echo x - libranlip/pkg-descr
sed 's/^X//' >libranlip/pkg-descr << '955f3027b288ca610d3c3c6dd5bbb06d'
Xlibranlip is a C++ library created by G. Beliakin, which generates random
Xvariates with arbitrary Lipschitz-continuous densities via the acceptance /
Xrejection method. The density should have a dimension of no more than about
Xfive. The user needs to supply the density function using a simple syntax, and
Xthen call the methods of construction and generation provided in libranlip.
X
XWWW: http://www.deakin.edu.au/~gleb/ranlip.html
955f3027b288ca610d3c3c6dd5bbb06d
echo x - libranlip/distinfo
sed 's/^X//' >libranlip/distinfo << '48203e2d2a3ba31851eb9393c03c2d2b'
XMD5 (libranlip-1.0.tar.gz) = fc56eb62531549304600941cc65a18e8
XSHA256 (libranlip-1.0.tar.gz) = 885ad15711a6eddc2af4ded3a7bc4a3ca864e3b4ba2952f3e0c988961a05222a
XSIZE (libranlip-1.0.tar.gz) = 477069
48203e2d2a3ba31851eb9393c03c2d2b
echo c - libranlip/files
mkdir -p libranlip/files > /dev/null 2>&1
echo x - libranlip/files/patch-examples__makefile
sed 's/^X//' >libranlip/files/patch-examples__makefile << '540c583fbda1e37d7cd66161ecefd586'
X--- examples/makefile.orig	2004-05-19 05:53:57.000000000 -0400
X+++ examples/makefile	2010-02-06 20:58:35.000000000 -0500
X@@ -11,7 +11,7 @@
X # distribution of RANLIP assuming different installations of the library. this
X # include the following examples for both static and shared linking.
X #
X-# shared_example and staic_example:	
X+# shared_example and static_example:	
X #
X #			shows how to compile and link library when install
X #			in the library search path used to load libraries
X@@ -20,16 +20,13 @@
X #			shows how to compile and link by implicitly telling
X #			the linker where to look for the library
X #
X-# static_example3: s	
X+# static_example3:
X #			hows how to compile and link procedural C conde.
X #
X ############################################################################
X 
X-# compiler
X-CC = g++
X-
X # Some options probably not needed: -g (which enables the debugger options).
X-FLAGS = -g -O -Wno-deprecated
X+FLAGS = ${CXXFLAGS}
X 
X # Object file fo the example
X OBJ = ranliptest.o
X@@ -38,68 +35,68 @@
X 
X # LIB_PATH used to store the path in which the library files were installed.
X # The commented out assignment is for when the library is installed into the
X-# users home directory. NOTE: $(HOME) referes to env varialble HOME.
X+# user's home directory. NOTE: $(HOME) refers to env variable HOME.
X 
X #LIB_PATH = $(HOME)/ranlip/lib/
X-LIB_PATH = /usr/local/lib/
X+LIB_PATH = ../src/.libs
X 
X # INCLUDE_PATH used to store the path in which the *.h files have been
X-# placed. The commented out assignment is for when the *.h files are placed
X-# in the users home directory.
X+# placed. The commented-out assignment is for when the *.h files are placed
X+# in the user's home directory.
X 
X #INCLUDE_PATH = $(HOME)/ranlip/include/
X-INCLUDE_PATH = /usr/local/include/
X+INCLUDE_PATH = ../src
X 
X all:	static_example2 static_example3 shared_example static_example 
X 
X #################################################################################
X # linking ranliptest.o . If you have succesfully installed lip library and have
X-# LIB_PATH to /etc/ld.soconf Or you have added LIB_PATH TO LD_LIBRARY_PATH
X-# then compiling is as eassy as this.  
X+# LIB_PATH to /etc/ld.so.conf Or you have added LIB_PATH TO LD_LIBRARY_PATH
X+# then compiling is as easy as this.  
X 
X # shared_example target links ranliptest.o to the lip shared library. To make
X # up shared_example executable.
X 
X shared_example:	$(OBJ)
X-		$(CC) -o shared_example $(OBJ) $(FLAGS) -lranlip -lm
X+		$(CXX) -o shared_example $(OBJ) $(FLAGS) -L${LIB_PATH} -lranlip -lm
X 
X # static_example target links ranliptest.o to the lip static library. To make
X # up static_example executable.
X 
X static_example: $(OBJ)
X-		$(CC) -o static_example -static  $(OBJ) $(FLAGS)  -lranlip -lm
X+		$(CXX) -o static_example -static  $(OBJ) $(FLAGS) -L${LIB_PATH} -lranlip -lm
X 
X 
X #################################################################################
X # linking ranliptest.o . 
X 
X # static_example target links ranliptest.o to the lip static library. To make
X-# up static_example executable.
X+# up static_example2 executable.
X 
X static_example2:$(OBJ2)
X-		$(CC) -o static_example2  $(OBJ2) $(FLAGS) $(LIB_PATH)libranlip.a -lm
X+		$(CXX) -o static_example2  $(OBJ2) $(FLAGS) $(LIB_PATH)/libranlip.a -lm
X 
X 
X #################################################################################
X # linking ranlipporc.o
X 
X # static_example target links ranliptestproc.o to the lip static library. To make
X-# up static_example executable.
X+# up static_example3 executable.
X 
X static_example3:$(OBJ3)
X-		$(CC) -o static_example3 -static $(OBJ3) $(FLAGS) $(LIB_PATH)libranlip.a -lm
X+		$(CXX) -o static_example3 -static $(OBJ3) $(FLAGS) $(LIB_PATH)/libranlip.a -lm
X 
X 
X #################################################################################
X # compiling examples to objectfiles.
X 
X ranliptest.o:			ranliptest.cpp
X-				$(CC) -c ranliptest.cpp $(FLAGS) -I$(INCLUDE_PATH)
X+				$(CXX) -c ranliptest.cpp $(FLAGS) -I$(INCLUDE_PATH)
X 
X-# compiling proccedual example using C compiler
X+# compiling procedural example using C compiler
X #
X ranliptestproc.o:		ranliptestproc.cpp
X-				gcc -c ranliptestproc.cpp $(FLAGS) -I$(INCLUDE_PATH)
X+				${CC} -c ranliptestproc.cpp $(FLAGS) -I$(INCLUDE_PATH)
X 
X .PHONY: clean all
X 
540c583fbda1e37d7cd66161ecefd586
exit



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



More information about the freebsd-ports-bugs mailing list