diff options
author | marius <marius@FreeBSD.org> | 2015-12-29 08:33:00 +0800 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2015-12-29 08:33:00 +0800 |
commit | e2d04af751239b5e0aee64720a9f8f850ee51c68 (patch) | |
tree | 2d307861813f377c610aee9d6dd19b55dc7833ff /sysutils | |
parent | a1c0f7b92750dcddf7ec496cca552d7b8f3c86fb (diff) | |
download | freebsd-ports-gnome-e2d04af751239b5e0aee64720a9f8f850ee51c68.tar.gz freebsd-ports-gnome-e2d04af751239b5e0aee64720a9f8f850ee51c68.tar.zst freebsd-ports-gnome-e2d04af751239b5e0aee64720a9f8f850ee51c68.zip |
- Update to 3.01
- Fix build when `uname -m` != `uname -p` [1]
PR: 191424, 197794 [1]
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/cdrtools/Makefile | 25 | ||||
-rw-r--r-- | sysutils/cdrtools/distinfo | 4 | ||||
-rw-r--r-- | sysutils/cdrtools/files/patch-DEFAULTS__Defaults.freebsd | 30 | ||||
-rw-r--r-- | sysutils/cdrtools/files/patch-RULES__cc-gcc.rul | 68 | ||||
-rw-r--r-- | sysutils/cdrtools/files/patch-include__schily__sha2.h | 9 | ||||
-rw-r--r-- | sysutils/cdrtools/files/patch-readcd__readcd.1 | 6 | ||||
-rw-r--r-- | sysutils/cdrtools/pkg-descr | 2 |
7 files changed, 95 insertions, 49 deletions
diff --git a/sysutils/cdrtools/Makefile b/sysutils/cdrtools/Makefile index a16722a131c0..28474acfb7c4 100644 --- a/sysutils/cdrtools/Makefile +++ b/sysutils/cdrtools/Makefile @@ -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; \ diff --git a/sysutils/cdrtools/distinfo b/sysutils/cdrtools/distinfo index c7c94e65f5ba..c388a67869c2 100644 --- a/sysutils/cdrtools/distinfo +++ b/sysutils/cdrtools/distinfo @@ -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 diff --git a/sysutils/cdrtools/files/patch-DEFAULTS__Defaults.freebsd b/sysutils/cdrtools/files/patch-DEFAULTS__Defaults.freebsd new file mode 100644 index 000000000000..5e08bb8ff554 --- /dev/null +++ b/sysutils/cdrtools/files/patch-DEFAULTS__Defaults.freebsd @@ -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 + + ########################################################################### diff --git a/sysutils/cdrtools/files/patch-RULES__cc-gcc.rul b/sysutils/cdrtools/files/patch-RULES__cc-gcc.rul index ead64aaf1330..549d244d4e4d 100644 --- a/sysutils/cdrtools/files/patch-RULES__cc-gcc.rul +++ b/sysutils/cdrtools/files/patch-RULES__cc-gcc.rul @@ -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= diff --git a/sysutils/cdrtools/files/patch-include__schily__sha2.h b/sysutils/cdrtools/files/patch-include__schily__sha2.h index 90d22a32b4da..5d526453cdb6 100644 --- a/sysutils/cdrtools/files/patch-include__schily__sha2.h +++ b/sysutils/cdrtools/files/patch-include__schily__sha2.h @@ -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 *)); diff --git a/sysutils/cdrtools/files/patch-readcd__readcd.1 b/sysutils/cdrtools/files/patch-readcd__readcd.1 index ebd5ae8842c3..f643d7dacbc4 100644 --- a/sysutils/cdrtools/files/patch-readcd__readcd.1 +++ b/sysutils/cdrtools/files/patch-readcd__readcd.1 @@ -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). diff --git a/sysutils/cdrtools/pkg-descr b/sysutils/cdrtools/pkg-descr index 9cdfa04e80aa..5d82f883df49 100644 --- a/sysutils/cdrtools/pkg-descr +++ b/sysutils/cdrtools/pkg-descr @@ -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/ |