1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

- Update to 3.01

- Fix build when `uname -m` != `uname -p` [1]

PR:		191424, 197794 [1]
This commit is contained in:
Marius Strobl 2015-12-29 00:33:00 +00:00
parent 110f6c1243
commit d264c45f16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404710
7 changed files with 95 additions and 49 deletions

View File

@ -19,8 +19,7 @@
###########################################################################
PORTNAME= cdrtools
PORTVERSION= 3.00
PORTREVISION= 2
PORTVERSION= 3.01
CATEGORIES= sysutils audio
MASTER_SITES= SF/${PORTNAME}
@ -85,11 +84,12 @@ PLIST_SUB+= RSCSI="@comment "
MAKE_ENV= CCOM=cc GMAKE_NOWARN=true INS_BASE=${LOCALBASE} \
INS_RBASE=${LOCALBASE}
CDRTLSTARGET= ${ARCH:S/powerpc64/powerpc/}-${OPSYS:tl}-cc
CDRTLSTARGET= ${ARCH}-${OPSYS:tl}-cc
CDRTLSXARCH!= ${UNAME} -m
.if exists(/usr/include/iconv.h) || exists(${LOCALBASE}/lib/libiconv.a) || \
exists(${LOCALBASE}/lib/libintl.a) || ${PORT_OPTIONS:MNLS}
MAKE_ENV+= OSDEFS=-I${LOCALBASE}/include
MAKE_ENV+= DEFOSINCDIRS=${LOCALBASE}/include LDPATH=-L${LOCALBASE}/lib
USES+= gettext iconv
.endif
@ -99,9 +99,9 @@ post-extract:
@${CP} -fp ${PORTSDIR}/Templates/${i} ${WRKSRC}/${j}
.endfor
.endfor
.if ${CDRTLSTARGET} != "i386-freebsd-cc"
.if ${CDRTLSXARCH} != "i386"
@${LN} -sf ${WRKSRC}/RULES/i386-freebsd-cc.rul \
${WRKSRC}/RULES/${CDRTLSTARGET}.rul
${WRKSRC}/RULES/${CDRTLSXARCH}-${OPSYS:tl}-cc.rul
.endif
post-patch:
@ -109,14 +109,11 @@ post-patch:
.if !${PORT_OPTIONS:MRSCSI}
@${RM} ${WRKSRC}/TARGETS/55rscsi
.endif
@${REINPLACE_CMD} -e 's|\/opt\/schily\/bin\/|${PREFIX}\/etc\/|g' \
${WRKSRC}/cdda2wav/cdda2ogg.1
.for i in DEFAULTS/Defaults.freebsd btcflash/btcflash.1 cdda2wav/cdda2mp3 \
cdda2wav/cdda2ogg cdda2wav/cdda2ogg.1 cdda2wav/cdda2wav.1 \
cdrecord/README.rscsi cdrecord/cdrecord.1 cdrecord/cdrecord.dfl \
include/schily/deflts.h libcdrdeflt/cdrdeflt.c librscg/scsi-remote.c \
readcd/readcd.1 rscsi/rscsi.1 rscsi/rscsi.c rscsi/rscsi.dfl \
scgcheck/scgcheck.1
.for i in btcflash/btcflash.1 cdda2wav/cdda2mp3 cdda2wav/cdda2ogg \
cdda2wav/cdda2ogg.1 cdda2wav/cdda2wav.1 cdrecord/README.rscsi \
cdrecord/cdrecord.1 cdrecord/cdrecord.dfl include/schily/deflts.h \
libcdrdeflt/cdrdeflt.c librscg/scsi-remote.c readcd/readcd.1 \
rscsi/rscsi.1 rscsi/rscsi.c rscsi/rscsi.dfl scgcheck/scgcheck.1
@${REINPLACE_CMD} -e 's|\/opt\/schily|${PREFIX}|g; \
s|\/usr\/local|${PREFIX}|g; s|\/etc\/default|${PREFIX}\/etc|g; \
s|\/var\/adm\/messages|\/var\/run\/dmesg.boot|g; \

View File

@ -1,2 +1,2 @@
SHA256 (cdrtools-3.00.tar.bz2) = 7f9cb64820055573b880f77b2f16662a512518336ba95ab49228a1617973423d
SIZE (cdrtools-3.00.tar.bz2) = 1978563
SHA256 (cdrtools-3.01.tar.bz2) = ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f
SIZE (cdrtools-3.01.tar.bz2) = 2087416

View File

@ -0,0 +1,30 @@
###########################################################################
# This patch was contributed by Marius Strobl.
###########################################################################
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# See the file CDDL.Schily.txt in this distribution for details.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file CDDL.Schily.txt from this distribution.
###########################################################################
# The file CDDL.Schily.txt can be found in the original cdrtools tarball,
# which is mirrored at ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/.
###########################################################################
--- DEFAULTS/Defaults.freebsd.orig 2013-11-04 21:58:20.000000000 +0100
+++ DEFAULTS/Defaults.freebsd 2014-02-03 01:16:19.000000000 +0100
@@ -29,8 +29,8 @@
CWARNOPTS=
DEFINCDIRS= $(SRCROOT)/include
-DEFOSINCDIRS= /usr/local/include
-LDPATH= -L/opt/schily/lib -L/usr/local/lib
+#DEFOSINCDIRS= /usr/local/include
+#LDPATH= -L/opt/schily/lib -L/usr/local/lib
#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work
###########################################################################

View File

@ -17,52 +17,72 @@
--- RULES/cc-gcc.rul.orig Thu Jul 6 12:59:44 2006
+++ RULES/cc-gcc.rul Sat Jul 22 03:55:52 2006
@@ -20,8 +20,9 @@
###########################################################################
@@ -24,11 +24,12 @@
GCC_OPT=
GCC_OPT32= -m32
GCC_OPT64= -m64
-GCC_OPTXX= $(GCC_OPT$(C_ARCH:gcc%=%))
+GCC_OPTXX=
CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX)
CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX) $(OSINCDIRS:%=-I%) $(OSDEFS) $(OSDEFSX)
-CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
-C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(G++OPTOPT) $(C++OPTX)
+XCFLAGS:= $(CFLAGS)
+CFLAGS= $(COPTS) $(CWARNOPTS) $(XCFLAGS) $(GCCOPTOPT) $(COPTX)
+C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(XCFLAGS) $(G++OPTOPT) $(C++OPTX)
+C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(CXXFLAGS) $(G++OPTOPT) $(C++OPTX)
CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS)
COPTS=
@@ -29,12 +30,10 @@
CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%)
COPTS= $(GCC_OPTXX)
@@ -36,12 +37,10 @@
CWOPTS= -Wall -Wtraditional
CWOPTS= -Wall -Wno-unknown-pragmas \
-Wshadow -Wmissing-prototypes -Wstrict-prototypes
-COPTOPT= -O
COPTDYN= -fpic
COPTGPROF= -pg
C++OPTS=
C++OPTS= $(GCC_OPTXX)
C++WOPTS= $(CWOPTS)
-C++OPTOPT= $(COPTOPT)
C++OPTDYN= -fpic
C++OPTGPROF= -pg
@@ -54,15 +53,15 @@
@@ -61,28 +60,18 @@
FLOAT_OPTIONS=
-CC= @echo " ==> COMPILING \"$@\""; gcc
-CC++ = @echo " ==> COMPILING \"$@\""; g++
-LDCC= @echo " ==> LINKING \"$@\""; gcc
-LDCC++ = @echo " ==> LINKING \"$@\""; g++
-DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
-DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; g++
-__CC_COM= $(_UNIQ)$(CC)
-___CC_COM= $(__CC_COM:$(_UNIQ)=$(CC_COM_DEF))
-CC_COM= $(___CC_COM:$(_UNIQ)%=%)
-
-__CC++_COM= $(_UNIQ)$(CCC)
-___CC++_COM= $(__CC++_COM:$(_UNIQ)=$(CC++_COM_DEF))
-CC++_COM= $(___CC++_COM:$(_UNIQ)%=%)
-
-CC_COM_DEF= gcc
-CC++_COM_DEF= g++
-CC= $(CC_COM_DEF)
-CCC= $(CC++_COM_DEF)
-
-CCCC= @echo " ==> COMPILING \"$@\""; $(CC_COM) $(GCC_OPTXX)
-CC++ = @echo " ==> COMPILING \"$@\""; $(CC++_COM) $(GCC_OPTXX)
-LDCC= @echo " ==> LINKING \"$@\""; $(CC_COM) $(GCC_OPTXX)
-LDCC++ = @echo " ==> LINKING \"$@\""; $(CC++_COM) $(GCC_OPTXX)
-DYNLD= @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) $(GCC_OPTXX)
-DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; $(CC++_COM) $(GCC_OPTXX)
+CC_COM= $(CC)
+CC++ = $(CXX)
+LDCC= $(CC)
+LDCC++ = $(CXX)
+DYNLD= $(CC)
+DYNLDC++ = $(CXX)
+CC++_COM= $(CXX)
+
+CCCC = $(CC_COM)
+CC++ = $(CC++_COM)
+LDCC= $(CC_COM)
+LDCC++ = $(CC++_COM)
+DYNLD= $(CC_COM)
+DYNLDC++ = $(CC++_COM)
RMDEP= :
-MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
+MKDEP= $(CC) -M
-MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); $(CC_COM) $(GCC_OPTXX) -M
+MKDEP= $(CC_COM) -M
MKDEP_OUT=
-MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); g++ -M
+MKC++DEP= $(CXX) -M
-MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); $(CC++_COM) $(GCC_OPTXX) -M
+MKC++DEP= $(CC++_COM) -M
MKC++DEP_OUT=

View File

@ -1,14 +1,15 @@
--- include/schily/sha2.h.orig 2009-08-09 14:29:59.000000000 +0200
+++ include/schily/sha2.h 2012-10-20 14:25:05.000000000 +0200
@@ -102,9 +102,11 @@
@@ -104,10 +104,12 @@
#ifdef HAVE_LONGLONG
extern void SHA384Init __PR((SHA2_CTX *));
+#ifndef HAVE_PRAGMA_WEAK
extern void SHA384Transform __PR((UInt64_t state[8], const UInt8_t [SHA384_BLOCK_LENGTH]));
extern void SHA384Transform __PR((UInt64_t state[8],
const UInt8_t [SHA384_BLOCK_LENGTH]));
extern void SHA384Update __PR((SHA2_CTX *, const UInt8_t *, size_t));
extern void SHA384Pad __PR((SHA2_CTX *));
+#endif
extern void SHA384Final __PR((UInt8_t [SHA384_DIGEST_LENGTH], SHA2_CTX *));
extern void SHA384Final __PR((UInt8_t [SHA384_DIGEST_LENGTH],
SHA2_CTX *));
extern char *SHA384End __PR((SHA2_CTX *, char *));
extern char *SHA384File __PR((const char *, char *));

View File

@ -17,14 +17,12 @@
--- readcd/readcd.1.orig Mon Sep 29 14:53:05 2003
+++ readcd/readcd.1 Mon Sep 29 15:10:06 2003
@@ -432,9 +432,7 @@
.SH FILES
@@ -604,8 +604,6 @@
.SH SEE ALSO
.BR cdrecord (1),
-.BR mkisofs (1),
.BR mkisofs (8),
-.BR scg (7),
-.BR fbk (7),
+.BR mkisofs (8),
.BR rcmd (3),
.BR ssh (1).

View File

@ -19,4 +19,4 @@ This package contains the following programs:
- scgcheck (checks and validates the ABI of libscg)
- rscsi (daemon providing access to local SCSI-devices over the network)
WWW: http://cdrecord.berlios.de/old/private/cdrecord.html
WWW: http://cdrecord.org/