svn commit: r332159 - in head/science/qcl: . files
Pawel Pekala
pawel at FreeBSD.org
Wed Oct 30 17:57:34 UTC 2013
Author: pawel
Date: Wed Oct 30 17:57:33 2013
New Revision: 332159
URL: http://svnweb.freebsd.org/changeset/ports/332159
Log:
- Update to version 0.6.3
- Add PLOTUTILS option
- Support staging
PR: ports/182800
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Added:
head/science/qcl/files/patch-options.cc (contents, props changed)
Deleted:
head/science/qcl/files/patch-aa
head/science/qcl/files/patch-qc-Makefile
head/science/qcl/pkg-plist
Modified:
head/science/qcl/Makefile
head/science/qcl/distinfo (contents, props changed)
Modified: head/science/qcl/Makefile
==============================================================================
--- head/science/qcl/Makefile Wed Oct 30 17:47:48 2013 (r332158)
+++ head/science/qcl/Makefile Wed Oct 30 17:57:33 2013 (r332159)
@@ -2,17 +2,51 @@
# $FreeBSD$
PORTNAME= qcl
-PORTVERSION= 0.6.1
+PORTVERSION= 0.6.3
CATEGORIES= science math
MASTER_SITES= http://tph.tuwien.ac.at/~oemer/tgz/
EXTRACT_SUFX= .tgz
MAINTAINER= ports at FreeBSD.org
-COMMENT= A quantum computer simulator
+COMMENT= Quantum computer simulator
-NO_STAGE= yes
-do-configure:
- echo 'PREFIX=${PREFIX}' >>${WRKSRC}/Makefile
- cd ${WRKSRC} && make dep
+LICENSE= GPLv2 # (or later)
+
+OPTIONS_DEFINE= PLOTUTILS
+PLOTUTILS_DESC= Plotting support via plotutils
+
+USES= bison gmake readline
+USE_GCC= any
+
+PLIST_FILES= bin/qcl \
+ %%DATADIR%%/default.qcl %%DATADIR%%/deutsch.qcl \
+ %%DATADIR%%/dft.qcl %%DATADIR%%/examples.qcl \
+ %%DATADIR%%/grover.qcl %%DATADIR%%/linalg.qcl \
+ %%DATADIR%%/modarith.qcl %%DATADIR%%/primes.qcl \
+ %%DATADIR%%/shor.qcl %%DATADIR%%/test.qcl
+PLIST_DIRS= %%DATADIR%%
+
+PLOTUTILS_LIB_DEPENDS= libplotter.so:${PORTSDIR}/graphics/plotutils
+PLOTUTILS_CXXFLAGS= -I${LOCALBASE}/include -DQCL_PLOT
+PLOTUTILS_LDFLAGS= -L${LOCALBASE}/lib -lplotter
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/usr/local|${PREFIX}| ; \
+ s|lib/qcl|share/qcl| ; \
+ s|-O2 -g|| ; \
+ s|^PLOPT|#PLOPT| ; \
+ s|^PLLIB|#PLLIB| ; \
+ /^CXXFLAGS/s| =| +=| ; \
+ /^LDFLAGS/s| =| +=|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e \
+ 's|-g -O2|| ; \
+ /^CXXFLAGS/s| =| +=| ; \
+ /^LDFLAGS/s| =| +=|' ${WRKSRC}/qc/Makefile
+
+do-install:
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} qcl ${STAGEDIR}${PREFIX}/bin)
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/lib && ${INSTALL_DATA} *.qcl ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>
Modified: head/science/qcl/distinfo
==============================================================================
--- head/science/qcl/distinfo Wed Oct 30 17:47:48 2013 (r332158)
+++ head/science/qcl/distinfo Wed Oct 30 17:57:33 2013 (r332159)
@@ -1,2 +1,2 @@
-SHA256 (qcl-0.6.1.tgz) = 3e7195fd0a2a65aed5868d40d4dfeccbc0151674682a68d4214332f65ee4338c
-SIZE (qcl-0.6.1.tgz) = 130922
+SHA256 (qcl-0.6.3.tgz) = c9f459b265ca181fdd4023cfb0d41a93a245eb5d47948a4002263384658d7cbb
+SIZE (qcl-0.6.3.tgz) = 133786
Added: head/science/qcl/files/patch-options.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/science/qcl/files/patch-options.cc Wed Oct 30 17:57:33 2013 (r332159)
@@ -0,0 +1,14 @@
+--- options.cc.orig
++++ options.cc
+@@ -13,8 +13,9 @@
+ ************************************************************************/
+
+
+-#include <stdio.h>
+-#include <time.h>
++#include <cstdio>
++#include <cstring>
++#include <ctime>
+
+ #include "options.h"
+ #include "error.h"
More information about the svn-ports-head
mailing list