mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add new port math/plplot-ada: Ada bindings to plplot library
This commit is contained in:
parent
ec8d898909
commit
256a421761
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344634
@ -535,6 +535,7 @@
|
||||
SUBDIR += ploticus
|
||||
SUBDIR += ploticus-nox11
|
||||
SUBDIR += plplot
|
||||
SUBDIR += plplot-ada
|
||||
SUBDIR += polymake
|
||||
SUBDIR += primegen
|
||||
SUBDIR += prng
|
||||
|
30
math/plplot-ada/Makefile
Normal file
30
math/plplot-ada/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# Created by: John Marino <marino@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= plplot
|
||||
PORTVERSION= ${RELEASE}
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20Source
|
||||
PKGNAMESUFFIX= -ada
|
||||
|
||||
MAINTAINER= marino@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>
|
17
math/plplot-ada/files/Makefile
Normal file
17
math/plplot-ada/files/Makefile
Normal file
@ -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
|
15
math/plplot-ada/files/build_plplot.gpr
Normal file
15
math/plplot-ada/files/build_plplot.gpr
Normal file
@ -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 ;
|
15
math/plplot-ada/files/plplot.gpr.in
Normal file
15
math/plplot-ada/files/plplot.gpr.in
Normal file
@ -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@PREFIX@/lib", "-lplplotd");
|
||||
end Linker;
|
||||
|
||||
end PLPLOT;
|
4
math/plplot-ada/pkg-descr
Normal file
4
math/plplot-ada/pkg-descr
Normal file
@ -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
|
17
math/plplot-ada/pkg-plist
Normal file
17
math/plplot-ada/pkg-plist
Normal file
@ -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
|
||||
@dirrm lib/plplotada
|
||||
@dirrmtry lib/gnat
|
||||
@dirrm include/plplotada
|
Loading…
Reference in New Issue
Block a user