From owner-svn-ports-all@FreeBSD.ORG Sun Oct 12 08:32:27 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C6FF5D5; Sun, 12 Oct 2014 08:32:27 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D3468C4; Sun, 12 Oct 2014 08:32:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9C8WQGJ012746; Sun, 12 Oct 2014 08:32:26 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9C8WPkm012740; Sun, 12 Oct 2014 08:32:25 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <201410120832.s9C8WPkm012740@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Sun, 12 Oct 2014 08:32:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370687 - in head/math: . libproj4 libproj4/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2014 08:32:27 -0000 Author: thierry Date: Sun Oct 12 08:32:24 2014 New Revision: 370687 URL: https://svnweb.freebsd.org/changeset/ports/370687 QAT: https://qat.redports.org/buildarchive/r370687/ Log: Add libproj4, a cartographic projections C library. Added: head/math/libproj4/ head/math/libproj4/Makefile (contents, props changed) head/math/libproj4/distinfo (contents, props changed) head/math/libproj4/files/ head/math/libproj4/files/patch-Makefile (contents, props changed) head/math/libproj4/pkg-descr (contents, props changed) head/math/libproj4/pkg-plist (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Sun Oct 12 08:00:29 2014 (r370686) +++ head/math/Makefile Sun Oct 12 08:32:24 2014 (r370687) @@ -220,6 +220,7 @@ SUBDIR += libneural SUBDIR += libocas SUBDIR += liborigin + SUBDIR += libproj4 SUBDIR += libqalculate SUBDIR += libranlip SUBDIR += libtommath Added: head/math/libproj4/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libproj4/Makefile Sun Oct 12 08:32:24 2014 (r370687) @@ -0,0 +1,41 @@ +# Created by: thierry@pompo.net +# $FreeBSD$ + +PORTNAME= libproj4 +DISTVERSION= 3_20081120 +CATEGORIES= math geography +MASTER_SITES= http://home.comcast.net/~gevenden56/proj/ +DISTFILES= ${PORTNAME}.${DISTVERSION}${EXTRACT_SUFX} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= C language procedures related to cartographic processes + +LIB_DEPENDS= libgsl.so:${PORTSDIR}/math/gsl + +USES= gmake tar:bzip2 +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +ALL_TARGET= libproj4 lproj +MAKE_JOBS_UNSAFE=yes +USE_LDCONFIG= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} + +.include + +.if ${PORT_OPTIONS:MDOCS} +DISTFILES+= manual.pdf +EXTRACT_ONLY= ${PORTNAME}.${DISTVERSION}${EXTRACT_SUFX} +.endif + +pre-configure: + ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/${MAKEFILE} + +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${_DISTDIR}/manual.pdf ${STAGEDIR}${DOCSDIR} +.endif + +.include Added: head/math/libproj4/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libproj4/distinfo Sun Oct 12 08:32:24 2014 (r370687) @@ -0,0 +1,4 @@ +SHA256 (libproj4/libproj4.3_20081120.tar.bz2) = 5948cbc825ddc481f4dbcb6a33389fa7838a9a499148c9e4cc560644d3e9d2b1 +SIZE (libproj4/libproj4.3_20081120.tar.bz2) = 73360 +SHA256 (libproj4/manual.pdf) = 35ba85a86ed87effd3303c41066ff565dc3c0a53f941e6aa1d7d9c8cfe6cfbd6 +SIZE (libproj4/manual.pdf) = 2292932 Added: head/math/libproj4/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libproj4/files/patch-Makefile Sun Oct 12 08:32:24 2014 (r370687) @@ -0,0 +1,59 @@ +--- Makefile.orig 2008-11-20 18:40:28.000000000 +0100 ++++ Makefile 2014-10-11 18:03:23.000000000 +0200 +@@ -31,7 +31,7 @@ + + #prefix = /usr/local + #prefix = /usr +-prefix = $(HOME) ++prefix = $(PREFIX) + + # edit to reflect directory where system defaults and inits are located + LIB = $(prefix)/lib +@@ -45,7 +45,7 @@ + THREADS=1 + + # select local compiler to use +-CC = gcc ++#CC = gcc + + # normally set on runline when debugging or testing file + T = +@@ -134,18 +134,20 @@ + thrf = -DPROJ_HAVE_THREADS=1 + endif + +-CFLAGS = -g -O -I./ $(gslf) $(thrf) ++CFLAGS+= -fPIC -I./ $(gslf) $(thrf) + #CFLAGS = -g -I./ $(gslf) $(thrf) + +-LDFLAGS = -L./ -lproj4 $(gsll) $(thrl) -lm ++LDFLAGS+= -L./ -lproj4 $(gsll) $(thrl) -lm + + lproj: lproj.o $T $L +- $(CC) -o lproj -I./ lproj.o $T -L./ -lproj4 $(gsll) $(thrl) -lm ++ $(CC) -o lproj -I./ lproj.o $T -L./ -lproj4 $(LDFLAGS) + + lproj.o: lib_proj.h + + libproj4: $(RLIB) + if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib $L ; fi ++ $(CC) -shared $(LDFLAGS) -o libproj4.so.0 *.o ++ ln -sf libproj4.so.0 libproj4.so + + $(RLIB): lib_proj.h + +@@ -154,9 +156,11 @@ + all: libproj4 + + install: +- install -D libproj4.a $(LIB)/libproj4.a +- install -D lproj $(BIN)/lproj +- install -D lib_proj.h $(INC)/lib_proj.h ++ install libproj4.a $(DESTDIR)$(LIB)/libproj4.a ++ install libproj4.so $(DESTDIR)$(LIB)/libproj4.so ++ install libproj4.so.0 $(DESTDIR)$(LIB)/libproj4.so.0 ++ install -s lproj $(DESTDIR)$(BIN)/lproj ++ install lib_proj.h $(DESTDIR)$(INC)/lib_proj.h + + clean: + /bin/rm -f core *.o Added: head/math/libproj4/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libproj4/pkg-descr Sun Oct 12 08:32:24 2014 (r370687) @@ -0,0 +1,6 @@ +The general purpose of this library is to provide C language procedures related +to cartographic processes. Procedures for each of the processes will be strictly +categorized and although they may share common subfunctions they will not +intersect in scope. + +WWW: http://home.comcast.net/~gevenden56/proj/ Added: head/math/libproj4/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libproj4/pkg-plist Sun Oct 12 08:32:24 2014 (r370687) @@ -0,0 +1,6 @@ +bin/lproj +include/lib_proj.h +lib/libproj4.a +lib/libproj4.so +lib/libproj4.so.0 +%%PORTDOCS%%%%DOCSDIR%%/manual.pdf