mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
Add a compilation of several programs for working with Rubik's cubes, used
by SageMath.
This commit is contained in:
parent
144fe8e134
commit
07aa776589
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536314
@ -862,6 +862,7 @@
|
||||
SUBDIR += rngstreams
|
||||
SUBDIR += rocs
|
||||
SUBDIR += rpcalc
|
||||
SUBDIR += rubiks
|
||||
SUBDIR += rubygem-algebra
|
||||
SUBDIR += rubygem-enumerable-statistics
|
||||
SUBDIR += rubygem-expression_parser
|
||||
|
36
math/rubiks/Makefile
Normal file
36
math/rubiks/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# Created by: thierry@pompo.net
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= rubiks
|
||||
PORTVERSION= 20070912
|
||||
CATEGORIES= math games
|
||||
MASTER_SITES= http://www.cecm.sfu.ca/sage/spkg/upstream/rubiks/ \
|
||||
https://mirrors.xmission.com/sage/spkg/upstream/rubiks/ \
|
||||
https://www-ftp.lip6.fr/pub/math/sagemath/spkg/upstream/rubiks/ \
|
||||
ftp://www-ftp.lip6.fr/pub/math/sagemath/spkg/upstream/rubiks/ \
|
||||
https://mirrors.mit.edu/sage/spkg/upstream/rubiks/ \
|
||||
http://files.sagemath.org/spkg/upstream/rubiks/
|
||||
|
||||
MAINTAINER= thierry@FreeBSD.org
|
||||
COMMENT= Several programs for working with Rubik's cubes
|
||||
|
||||
LICENSE= BSD2CLAUSE GPLv2
|
||||
LICENSE_COMB= multi
|
||||
|
||||
USES= dos2unix tar:bz2
|
||||
DOS2UNIX_GLOB= *.c *.cpp *.h *.txt Makefile
|
||||
|
||||
CFLAGS+= -DLARGE_MEM -DVERBOSE
|
||||
.if !defined(WITH_DEBUG)
|
||||
LDFLAGS+= -s
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
${FIND} ${WRKSRC} -iname makefile | ${XARGS} ${REINPLACE_CMD} \
|
||||
-e 's|PREFIX=|#PREFIX=|;s|^CC=|#CC=|;s|^CPP=.*|CPP=${CXX}|; \
|
||||
s|^LINK=.*|LINK=${CXX}|;s|^CFLAGS|#CFLAGS|;s|^LFLAGS=|#LFLAGS=|'
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/size222
|
||||
|
||||
.include <bsd.port.mk>
|
3
math/rubiks/distinfo
Normal file
3
math/rubiks/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1590240032
|
||||
SHA256 (rubiks-20070912.tar.bz2) = d8f9f1bcf7a1c7e152eb0df429d391b1a723c614eb7fad6fbbdacf20c19ab57d
|
||||
SIZE (rubiks-20070912.tar.bz2) = 99028
|
11
math/rubiks/files/patch-dietz_cu2_Makefile
Normal file
11
math/rubiks/files/patch-dietz_cu2_Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- dietz/cu2/Makefile.orig 2020-05-23 15:31:49 UTC
|
||||
+++ dietz/cu2/Makefile
|
||||
@@ -19,7 +19,7 @@ all: build
|
||||
debug: build-debug
|
||||
|
||||
build: $(OBJS)
|
||||
- $(LINK) $(LFLAGS) -o cu2 $(OBJS) $(LIBS)
|
||||
+ $(LINK) $(LFLAGS) -o cu2 $(OBJS) $(LIBS) $(LDFLAGS)
|
||||
|
||||
build-debug: $(DBGOBJS)
|
||||
$(LINK) $(DBGLFLAGS) -o cu2 $(OBJS) $(DBGLIBS)
|
11
math/rubiks/files/patch-dietz_mcube_Makefile
Normal file
11
math/rubiks/files/patch-dietz_mcube_Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- dietz/mcube/Makefile.orig 2020-05-23 15:31:49 UTC
|
||||
+++ dietz/mcube/Makefile
|
||||
@@ -19,7 +19,7 @@ all: build
|
||||
debug: build-debug
|
||||
|
||||
build: $(OBJS)
|
||||
- $(LINK) $(LFLAGS) -o mcube $(OBJS) $(LIBS)
|
||||
+ $(LINK) $(LFLAGS) -o mcube $(OBJS) $(LIBS) $(LDFLAGS)
|
||||
|
||||
build-debug: $(DBGOBJS)
|
||||
$(LINK) $(DBGLFLAGS) -o mcube $(OBJS) $(DBGLIBS)
|
11
math/rubiks/files/patch-dietz_solver_Makefile
Normal file
11
math/rubiks/files/patch-dietz_solver_Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- dietz/solver/Makefile.orig 2020-05-23 15:31:49 UTC
|
||||
+++ dietz/solver/Makefile
|
||||
@@ -10,7 +10,7 @@ RM=/bin/rm -f
|
||||
all: build
|
||||
|
||||
build: $(OBJS)
|
||||
- $(LINK) $(LFLAGS) -o cubex $(OBJS)
|
||||
+ $(LINK) $(LFLAGS) -o cubex $(OBJS) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS)
|
11
math/rubiks/files/patch-dik_makefile
Normal file
11
math/rubiks/files/patch-dik_makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- dik/makefile.orig 2008-03-21 12:39:35 UTC
|
||||
+++ dik/makefile
|
||||
@@ -9,7 +9,7 @@ OBJS = cube.o \
|
||||
globals.o
|
||||
|
||||
cube: $(OBJS)
|
||||
- $(CC) $(CFLAGS) -o dikcube $(OBJS)
|
||||
+ $(CC) $(CFLAGS) -o dikcube $(OBJS) $(LDFLAGS)
|
||||
size dikcube
|
||||
|
||||
size222: size222.o
|
4
math/rubiks/pkg-descr
Normal file
4
math/rubiks/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
There are several programs for working with Rubik's cubes, by three
|
||||
different people. These are required by SageMath.
|
||||
|
||||
WWW: https://www.sagemath.org/
|
6
math/rubiks/pkg-plist
Normal file
6
math/rubiks/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
bin/cu2
|
||||
bin/cubex
|
||||
bin/dikcube
|
||||
bin/mcube
|
||||
bin/optimal
|
||||
bin/size222
|
Loading…
Reference in New Issue
Block a user