svn commit: r344634 - in head/math: . plplot-ada plplot-ada/files
John Marino
marino at FreeBSD.org
Sun Feb 16 22:01:02 UTC 2014
Author: marino
Date: Sun Feb 16 22:01:00 2014
New Revision: 344634
URL: http://svnweb.freebsd.org/changeset/ports/344634
QAT: https://qat.redports.org/buildarchive/r344634/
Log:
Add new port math/plplot-ada: Ada bindings to plplot library
Added:
head/math/plplot-ada/
head/math/plplot-ada/Makefile (contents, props changed)
head/math/plplot-ada/files/
head/math/plplot-ada/files/Makefile (contents, props changed)
head/math/plplot-ada/files/build_plplot.gpr (contents, props changed)
head/math/plplot-ada/files/plplot.gpr.in (contents, props changed)
head/math/plplot-ada/pkg-descr (contents, props changed)
head/math/plplot-ada/pkg-plist (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Sun Feb 16 21:17:15 2014 (r344633)
+++ head/math/Makefile Sun Feb 16 22:01:00 2014 (r344634)
@@ -535,6 +535,7 @@
SUBDIR += ploticus
SUBDIR += ploticus-nox11
SUBDIR += plplot
+ SUBDIR += plplot-ada
SUBDIR += polymake
SUBDIR += primegen
SUBDIR += prng
Added: head/math/plplot-ada/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/plplot-ada/Makefile Sun Feb 16 22:01:00 2014 (r344634)
@@ -0,0 +1,30 @@
+# Created by: John Marino <marino at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= plplot
+PORTVERSION= ${RELEASE}
+CATEGORIES= math
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20Source
+PKGNAMESUFFIX= -ada
+
+MAINTAINER= marino at FreeBSD.org
+COMMENT= Ada bindings for PLplot
+
+LICENSE= LGPL3
+
+LIB_DEPENDS= libplplotd.so:${PORTSDIR}/math/plplot
+
+USES= ada
+
+DISTINFO_FILE= ${.CURDIR}/../plplot/distinfo
+RELEASE!= awk '/SHA/ {split($$2,a,"."); print substr(a[1], 9) "." a[2] "." a[3];}' ${DISTINFO_FILE}
+BUILD_WRKSRC= ${WRKSRC}/bindings
+INSTALL_WRKSRC= ${WRKSRC}/bindings
+
+post-extract:
+ ${CP} ${FILESDIR}/build_plplot.gpr ${FILESDIR}/Makefile \
+ ${BUILD_WRKSRC}
+ ${CAT} ${FILESDIR}/plplot.gpr.in | ${SED} -e "s|@PREFIX@|${PREFIX}|g" > \
+ ${BUILD_WRKSRC}/plplot.gpr
+
+.include <bsd.port.mk>
Added: head/math/plplot-ada/files/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/plplot-ada/files/Makefile Sun Feb 16 22:01:00 2014 (r344634)
@@ -0,0 +1,17 @@
+all: build
+
+build:
+ gnatmake -p -P build_plplot
+
+install:
+ mkdir -p ${DESTDIR}${PREFIX}/lib/gnat \
+ ${DESTDIR}${PREFIX}/lib/plplotada \
+ ${DESTDIR}${PREFIX}/include/plplotada
+ ${BSD_INSTALL_LIB} ada/build/lib/libplplotada.a \
+ ${DESTDIR}${PREFIX}/lib/plplotada
+ ${BSD_INSTALL_DATA} ada/build/lib/*.ali \
+ ${DESTDIR}${PREFIX}/lib/plplotada
+ ${BSD_INSTALL_DATA} plplot.gpr \
+ ${DESTDIR}${PREFIX}/lib/gnat
+ ${BSD_INSTALL_DATA} ada/*.ad[bs] \
+ ${DESTDIR}${PREFIX}/include/plplotada
Added: head/math/plplot-ada/files/build_plplot.gpr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/plplot-ada/files/build_plplot.gpr Sun Feb 16 22:01:00 2014 (r344634)
@@ -0,0 +1,15 @@
+project BUILD_PLPLOT is
+
+ for Languages use ("Ada");
+
+ for Source_Dirs use ("ada");
+ for Object_Dir use "ada/build";
+ for Library_Dir use "ada/build/lib";
+ for Library_Name use "plplotada";
+ for Library_Kind use "static";
+
+ package compiler is
+ for switches ("Ada") use ("-O2", "-gnatn");
+ end compiler;
+
+end BUILD_PLPLOT ;
Added: head/math/plplot-ada/files/plplot.gpr.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/plplot-ada/files/plplot.gpr.in Sun Feb 16 22:01:00 2014 (r344634)
@@ -0,0 +1,15 @@
+library project PLPLOT is
+
+ for Languages use ("Ada");
+
+ for Source_Dirs use ("../../include/plplotada");
+ for Library_Dir use "../../lib/plplotada";
+ for Library_Name use "plplotada";
+ for Library_Kind use "static";
+ for Externally_Built use "True";
+
+ package Linker is
+ for switches ("Ada") use ("-L at PREFIX@/lib", "-lplplotd");
+ end Linker;
+
+end PLPLOT;
Added: head/math/plplot-ada/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/plplot-ada/pkg-descr Sun Feb 16 22:01:00 2014 (r344634)
@@ -0,0 +1,4 @@
+These are the Ada bindings for math/plplot, a cross-platform software
+package for creating scientific plots.
+
+WWW: http://plplot.sourceforge.net
Added: head/math/plplot-ada/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/plplot-ada/pkg-plist Sun Feb 16 22:01:00 2014 (r344634)
@@ -0,0 +1,17 @@
+include/plplotada/plplot.adb
+include/plplotada/plplot.ads
+include/plplotada/plplot_auxiliary.adb
+include/plplotada/plplot_auxiliary.ads
+include/plplotada/plplot_thin.adb
+include/plplotada/plplot_thin.ads
+include/plplotada/plplot_traditional.adb
+include/plplotada/plplot_traditional.ads
+lib/gnat/plplot.gpr
+lib/plplotada/libplplotada.a
+lib/plplotada/plplot.ali
+lib/plplotada/plplot_auxiliary.ali
+lib/plplotada/plplot_thin.ali
+lib/plplotada/plplot_traditional.ali
+ at dirrm lib/plplotada
+ at dirrmtry lib/gnat
+ at dirrm include/plplotada
More information about the svn-ports-all
mailing list