ports/77070: port update for qcl
Brad Huntting
huntting at glarp.com
Thu Feb 3 17:00:44 UTC 2005
>Number: 77070
>Category: ports
>Synopsis: port update for qcl
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 03 17:00:43 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Brad Huntting
>Release: FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hunkular.glarp.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
update for the `qcl' port, which is currently in emulators/qcl, but should be moved to
science/qcl.
>How-To-Repeat:
>Fix:
Ok, let's try this again. Here is a 'diff -Nru'. Note however
that the file qcl/scripts/configure has been deleted, another patch
file has been added, and the entire port has been moved from
'emulators' to 'science'.
brad
diff -Nru /usr/ports/emulators/qcl/Makefile qcl/Makefile
--- /usr/ports/emulators/qcl/Makefile Wed Sep 24 03:37:05 2003
+++ qcl/Makefile Tue Feb 1 11:18:35 2005
@@ -1,14 +1,14 @@
# ports collection makefile for: qcl
-# Date created: 23 May 2001
-# Whom: Brad Huntting <huntting at glarp.com>
+# Date created: 2005-02-01
+# Whom: Brad Huntting <huntting at glarp.com>
#
# $FreeBSD: ports/emulators/qcl/Makefile,v 1.6 2003/09/24 09:37:05 osa Exp $
#
PORTNAME= qcl
-PORTVERSION= 0.4.1
+PORTVERSION= 0.6.1
PORTREVISION= 1
-CATEGORIES= emulators math
+CATEGORIES= science math
MASTER_SITES= http://tph.tuwien.ac.at/~oemer/tgz/
EXTRACT_SUFX= .tgz
@@ -19,11 +19,12 @@
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
+.if ${OSVERSION} < 500000
+USE_GCC= 3.3
.endif
-post-install:
- ${STRIP_CMD} ${PREFIX}/bin/qcl
+do-configure:
+ echo 'PREFIX=${PREFIX}' >>${WRKSRC}/Makefile
+ cd ${WRKSRC} && make dep
.include <bsd.port.post.mk>
diff -Nru /usr/ports/emulators/qcl/distinfo qcl/distinfo
--- /usr/ports/emulators/qcl/distinfo Tue Mar 30 20:07:43 2004
+++ qcl/distinfo Tue Feb 1 01:45:31 2005
@@ -1,2 +1,2 @@
-MD5 (qcl-0.4.1.tgz) = 0ff6cdb3c29cc3c533f3b27018662a57
-SIZE (qcl-0.4.1.tgz) = 97862
+MD5 (qcl-0.6.1.tgz) = ec5def302a468f95370a4ccc9f8aa35a
+SIZE (qcl-0.6.1.tgz) = 130922
diff -Nru /usr/ports/emulators/qcl/files/patch-aa qcl/files/patch-aa
--- /usr/ports/emulators/qcl/files/patch-aa Sun Jul 13 20:36:27 2003
+++ qcl/files/patch-aa Tue Feb 1 02:08:00 2005
@@ -1,6 +1,6 @@
---- Makefile.orig Wed Jan 17 13:17:06 2001
-+++ Makefile Thu May 24 15:51:01 2001
-@@ -14,29 +14,25 @@
+--- Makefile.orig Mon Mar 29 15:24:31 2004
++++ Makefile Tue Feb 1 01:37:09 2005
+@@ -14,25 +14,25 @@
# Directory for Standard .qcl files
@@ -14,56 +14,71 @@
# Debugging options
--DEBUG = -g -DQCL_DEBUG -DQC_DEBUG
--#DEBUG = -O2
-+DEBUG =
+ #DEBUG = -g -pg -DQCL_DEBUG -DQC_DEBUG
+ #DEBUG = -g -DQCL_DEBUG -DQC_DEBUG
+-DEBUG = -O2 -g -DQCL_DEBUG -DQC_DEBUG
++DEBUG = -DQCL_DEBUG -DQC_DEBUG
+ #DEBUG = -O2
+
+ # Plotting support
+ #
+ # Comment out if you don't have GNU libplotter and X
+
+-PLOPT = -DQCL_PLOT
+-PLLIB = -L/usr/X11/lib -lplotter -lXaw -lXmu -lXt -lXext -lXpm -lSM -lICE -lX11
++#PLOPT = -DQCL_PLOT
++#PLLIB = -L/usr/X11/lib -lplotter -lXaw -lXmu -lXt -lXext -lXpm -lSM -lICE -lX11
+ #PLLIB = -L/usr/X11/lib -lplotter -lXaw -lXmu -lXt -lXext -lX11
+ #PLLIB = -L/usr/X11/lib -lplotter -lXaw -lXmu -Xt -lSM -ICE -lXext -lX11
- # Comment out if you don't have GNU readline on your system
+@@ -42,8 +42,8 @@
# explicit linking against libtermcap or libncurses may be required
RLOPT = -DQCL_USE_READLINE
-#RLLIB = -lreadline
-RLLIB = -lreadline -lncurses
+RLLIB = -lreadline
++#RLLIB = -lreadline -lncurses
- # Replace with lex and yacc on non-GNU systems (untested)
+ # Interrupt support
+ #
+@@ -51,12 +51,6 @@
+ IRQOPT = -DQCL_IRQ
+
+-# Replace with lex and yacc on non-GNU systems (untested)
+-
-LEX = flex
--YACC = bison
+-YACC = bison
-INSTALL = install
-+INSTALL = install -c
-
+-
##### You shouldn't have to edit the stuff below #####
-@@ -44,13 +40,15 @@
+ DATE = `date +"%y.%m.%d-%H%M"`
+@@ -65,13 +59,11 @@
QCLIB = $(QCDIR)/libqc.a
QCLINC = lib
-CC = g++
-CPP = $(CC) -E
--CFLAGS = -c -Wall $(DEBUG) $(RLOPT) -I$(QCDIR) -DDEF_INCLUDE_PATH="\"$(QCLDIR)\""
--LFLAGS = -L$(QCDIR) $(DEBUG) -lm -lfl -lqc $(RLLIB)
-+CXXFLAGS += -Wall $(DEBUG) $(RLOPT) -I$(QCDIR) -I${PREFIX}/include -DDEF_INCLUDE_PATH="\"$(QCLDIR)\""
-+LDFLAGS += -L$(QCDIR) $(DEBUG) -L${PREFIX}/lib -lgnugetopt -lm -lfl -lqc $(RLLIB)
-+
-+FILESCC = debug.cc error.cc eval.cc exec.cc extern.cc lex.cc \
-+ options.cc parse.cc print.cc qcl.cc quheap.cc symbols.cc \
-+ syntax.cc typcheck.cc types.cc yacc.cc
-+FILESH = debug.h error.h extern.h options.h parse.h quheap.h \
-+ symbols.h syntax.h types.h yacc.h
+-CFLAGS = -c -Wall $(DEBUG) $(PLOPT) $(RLOPT) $(IRQOPT) -I$(QCDIR) -DDEF_INCLUDE_PATH="\"$(QCLDIR)\""
+-LFLAGS = -L$(QCDIR) $(DEBUG) $(PLLIB) -lm -lfl -lqc $(RLLIB)
++CXXFLAGS += $(DEBUG) $(PLOPT) $(RLOPT) $(IRQOPT) -I$(QCDIR) -DDEF_INCLUDE_PATH="\"$(QCLDIR)\""
++LDFLAGS += -L$(QCDIR) $(DEBUG) $(PLLIB) -lm -lfl -lqc $(RLLIB)
-FILESCC = $(wildcard *.cc)
-FILESH = $(wildcard *.h)
++FILESCC = *.cc
++FILESH = *.h
SOURCE = $(FILESCC) $(FILESH) qcl.lex qcl.y Makefile
-@@ -58,23 +56,11 @@
+@@ -79,23 +71,11 @@
lex.o yacc.o print.o quheap.o extern.o eval.o exec.o \
- parse.o options.o debug.o
+ parse.o options.o debug.o cond.o dump.o plot.o format.o
-all: do-it-all
+all: build
-+
-ifeq (.depend,$(wildcard .depend))
-include .depend
@@ -80,17 +95,18 @@
- $(CPP) -I$(QCDIR) -MM $$i; \
- echo -e '\t$(CC) $(CFLAGS)' $$i '\n'; \
- done > .depend
-+dep: $(FILESCC) $(FILESH)
-+ $(CXX) -M $(CXXFLAGS) $(FILESCC) >.depend
++
++dep:
++ mkdep ${CXXFLAGS} ${FILESCC}
lex.cc: qcl.lex
$(LEX) -olex.cc qcl.lex
-@@ -86,24 +72,24 @@
- mv yacc.cc.h yacc.h
+@@ -107,26 +87,26 @@
+ mv yacc.*?h yacc.h
$(QCLIB):
- cd $(QCDIR) && make libqc.a
-+ cd $(QCDIR) && $(MAKE) $(MAKEFLAGS) libqc.a
++ +cd ${QCDIR} && ${MAKE} ${MAKEFLAGS} libqc.a
#### Rules for build
@@ -110,15 +126,11 @@
install: build
- $(INSTALL) -m 0755 -d $(QCLBIN) $(QCLDIR)
+- $(INSTALL) -m 0755 ./qcl $(QCLBIN)
+- $(INSTALL) -m 0644 ./lib/*.qcl $(QCLDIR)
+ umask 022; mkdir -p $(QCLDIR); chmod 0755 $(QCLDIR)
- $(INSTALL) -m 0755 ./qcl $(QCLBIN)
- $(INSTALL) -m 0644 ./lib/default.qcl $(QCLDIR)
- $(INSTALL) -m 0644 ./lib/dft.qcl $(QCLDIR)
-@@ -115,6 +101,7 @@
- $(INSTALL) -m 0644 ./lib/roulette.qcl $(QCLDIR)
- $(INSTALL) -m 0644 ./lib/shor.qcl $(QCLDIR)
- $(INSTALL) -m 0644 ./lib/swap.qcl $(QCLDIR)
-+ $(INSTALL) -m 0644 ./lib/grover.qcl $(QCLDIR)
-
- #### Other Functions
++ ${INSTALL} -m 0755 ./qcl $(QCLBIN)
++ ${INSTALL} -m 0644 ./lib/*.qcl $(QCLDIR)
+ uninstall:
+ rm -f $(QCLBIN)
diff -Nru /usr/ports/emulators/qcl/files/patch-bb qcl/files/patch-bb
--- /usr/ports/emulators/qcl/files/patch-bb Wed Dec 31 17:00:00 1969
+++ qcl/files/patch-bb Tue Feb 1 02:08:07 2005
@@ -0,0 +1,49 @@
+--- qc/Makefile.orig Mon Mar 29 15:24:31 2004
++++ qc/Makefile Tue Feb 1 01:27:33 2005
+@@ -12,7 +12,7 @@
+
+ # Debugging options
+
+-DEBUG = -g -O2 -DQC_DEBUG
++DEBUG = -DQC_DEBUG
+ #DEBUG = -g -pg -DQC_DEBUG
+ #DEBUG = -O2
+
+@@ -21,10 +21,8 @@
+
+ #PRGOPT = -DQC_USE_RAND48
+
+-CC = g++
+-CFLAGS = -c -pedantic -Wall $(DEBUG) $(PRGOPT)
+-
+-LNKOPT = -L. -lm -lqc
++CXXFLAGS += $(DEBUG) $(PRGOPT)
++LDFLAGS += -L. -lm -lqc
+
+ FILESCC = bitvec.cc terms.cc qustates.cc operator.cc
+ FILESH = bitvec.h terms.h qustates.h operator.h qc.h
+@@ -36,23 +34,9 @@
+ ar rc libqc.a bitvec.o terms.o qustates.o operator.o
+ ranlib libqc.a
+
+-bitvec.o: bitvec.cc bitvec.h
+- $(CC) bitvec.cc -o bitvec.o $(CFLAGS)
+-
+-terms.o: terms.cc terms.h bitvec.h
+- $(CC) terms.cc -o terms.o $(CFLAGS)
+-
+-qustates.o: qustates.cc qustates.h terms.h bitvec.h
+- $(CC) qustates.cc -o qustates.o $(CFLAGS)
+-
+-operator.o: operator.cc operator.h qustates.h terms.h bitvec.h
+- $(CC) operator.cc -o operator.o $(CFLAGS)
+-
+-shor.o: shor.cc qustates.h terms.h bitvec.h
+- $(CC) shor.cc -o shor.o $(CFLAGS)
+
+ shor: shor.o libqc.a
+- $(CC) shor.o -o shor $(LNKOPT)
++ $(CXX) shor.o -o shor $(LDFLAGS)
+
+ # Other Functions
+
diff -Nru /usr/ports/emulators/qcl/pkg-plist qcl/pkg-plist
--- /usr/ports/emulators/qcl/pkg-plist Tue May 29 10:55:48 2001
+++ qcl/pkg-plist Tue Feb 1 01:44:33 2005
@@ -1,13 +1,12 @@
bin/qcl
share/qcl/default.qcl
+share/qcl/deutsch.qcl
share/qcl/dft.qcl
-share/qcl/expmod.qcl
-share/qcl/fanout.qcl
-share/qcl/functions.qcl
+share/qcl/examples.qcl
+share/qcl/grover.qcl
+share/qcl/linalg.qcl
share/qcl/modarith.qcl
-share/qcl/qufunct.qcl
-share/qcl/roulette.qcl
+share/qcl/primes.qcl
share/qcl/shor.qcl
-share/qcl/swap.qcl
-share/qcl/grover.qcl
+share/qcl/test.qcl
@dirrm share/qcl
diff -Nru /usr/ports/emulators/qcl/scripts/configure qcl/scripts/configure
--- /usr/ports/emulators/qcl/scripts/configure Tue May 29 10:56:08 2001
+++ qcl/scripts/configure Wed Dec 31 17:00:00 1969
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-cd $WRKSRC
-rm -f .depend
-make dep
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list