aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2003-11-17 10:11:20 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2003-11-17 10:11:20 +0000
commit8b437c819ac8a17237bc38a7f3492ca857d75f91 (patch)
tree7d0b0942d1900c6cf856f075c3d4db55cfa84ed1 /sysutils
parent071cdddc084764d16cb88ed0f9bd97669fa04bd4 (diff)
downloadports-8b437c819ac8a17237bc38a7f3492ca857d75f91.tar.gz
ports-8b437c819ac8a17237bc38a7f3492ca857d75f91.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/cdrtools-devel/Makefile26
-rw-r--r--sysutils/cdrtools-devel/distinfo1
-rw-r--r--sysutils/cdrtools-devel/files/extra-patch-drv_mmc.c37
-rw-r--r--sysutils/cdrtools-devel/files/patch-conf::configure13
4 files changed, 69 insertions, 8 deletions
diff --git a/sysutils/cdrtools-devel/Makefile b/sysutils/cdrtools-devel/Makefile
index 3fe2752ea728..a0660dcda7e1 100644
--- a/sysutils/cdrtools-devel/Makefile
+++ b/sysutils/cdrtools-devel/Makefile
@@ -7,13 +7,20 @@
PORTNAME?= cdrtools
PORTVERSION?= 2.01a19
-PORTREVISION?= 0
+#PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES?= sysutils audio
MASTER_SITES= ftp://ftp.berlios.de/pub/cdrecord/alpha/ \
ftp://ftp.cs.tu-berlin.de/pub/misc/cdrecord/alpha/
-PKGNAMESUFFIX= -devel
DISTNAME= cdrtools-2.01a19
+.if defined(WITH_DVDHACK) && !defined(MKISOFS)
+PATCH_SITES= http://people.mandrakesoft.com/~warly/files/cdrtools/archives/
+PATCHFILES= cdrtools-2.01a16-dvd.patch.bz2
+PATCH_DIST_STRIP= -p1
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-drv_mmc.c
+.endif
+
MAINTAINER= marius@alchemy.franken.de
COMMENT?= Cdrecord and other programs to extract and record CDs/CD-R[W]s
@@ -49,13 +56,18 @@ PKGMESSAGE= ""
.else
DOCSSRC= ${WRKSRC}
PKGMESSAGE= ${WRKDIR}/pkg-message
+.if defined(WITH_DVDHACK)
+_DVDSUFFIX= -dvd
+.endif
.if defined(WITH_RSCSI)
PKGINSTALL= ${PKGDIR}/pkg-install.rscsi
PLIST_SUB= RSCSI=""
+_RSCSISUFFIX= -rscsi
.else
PLIST_SUB= RSCSI="@comment "
.endif
.endif
+PKGNAMESUFFIX= ${_DVDSUFFIX}${_RSCSISUFFIX}-devel
.include <bsd.port.pre.mk>
@@ -64,10 +76,12 @@ pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build option(s):"
@${ECHO_MSG} ""
- @${ECHO_MSG} "WITH_RSCSI=yes builds with rscsi which allows using SCSI-devices over the"
- @${ECHO_MSG} " network."
- @${ECHO_MSG} " BEWARE: The rscsi binary gets installed suid root as this is"
- @${ECHO_MSG} " the preferred method to set it up."
+ @${ECHO_MSG} "WITH_DVDHACK=yes builds with a third-party patch that enables recording"
+ @${ECHO_MSG} " of DVD-R[W]s."
+ @${ECHO_MSG} "WITH_RSCSI=yes builds with rscsi which allows using SCSI-devices over"
+ @${ECHO_MSG} " the network."
+ @${ECHO_MSG} " BEWARE: The rscsi binary gets installed suid root as"
+ @${ECHO_MSG} " this is the preferred method to set it up."
@${ECHO_MSG} ""
.endif
diff --git a/sysutils/cdrtools-devel/distinfo b/sysutils/cdrtools-devel/distinfo
index 9568c4b2a779..c51c18e7a347 100644
--- a/sysutils/cdrtools-devel/distinfo
+++ b/sysutils/cdrtools-devel/distinfo
@@ -1 +1,2 @@
MD5 (cdrtools-2.01a19.tar.bz2) = d35cbd5af1b2a375656db66e9bd79739
+MD5 (cdrtools-2.01a16-dvd.patch.bz2) = 01ad227cc3b700fd5f19a6a043c1b847
diff --git a/sysutils/cdrtools-devel/files/extra-patch-drv_mmc.c b/sysutils/cdrtools-devel/files/extra-patch-drv_mmc.c
new file mode 100644
index 000000000000..9dee2f41a62a
--- /dev/null
+++ b/sysutils/cdrtools-devel/files/extra-patch-drv_mmc.c
@@ -0,0 +1,37 @@
+--- cdrecord/drv_mmc.c.orig Thu Oct 9 01:10:41 2003
++++ cdrecord/drv_mmc.c Thu Oct 9 01:31:28 2003
+@@ -224,13 +224,13 @@
+ scsi_unload,
+ read_buff_cap,
+ cmd_dummy, /* recovery_needed */
+- (int(*)__PR((SCSI *, int)))cmd_dummy, /* recover */
++ (int(*)__PR((SCSI *, cdr_t *, int)))cmd_dummy, /* recover */
+ speed_select_mdvd,
+ select_secsize,
+ next_wr_addr_mdvd,
+ (int(*)__PR((SCSI *, Ulong)))cmd_ill, /* reserve_track */
+ scsi_cdr_write,
+- (int(*)__PR((SCSI *scgp, int, track_t *)))cmd_dummy, /* gen_cue */
++ (int(*)__PR((track_t *, void *, BOOL)))cmd_dummy, /* gen_cue */
+ (int(*)__PR((SCSI *scgp, cdr_t *, track_t *)))cmd_dummy, /* send_cue */
+ write_leadin_mmc,
+ open_track_mdvd,
+@@ -702,8 +702,7 @@
+ #endif
+ }
+ if (is_dvd) {
+- errmsgno(EX_BAD,
+- "Found DVD media: using cdr_mdvd.\n");
++ printf("Found DVD media: using cdr_mdvd.\n");
+ dp = &cdr_mdvd;
+ }
+ return (dp);
+@@ -1083,7 +1082,7 @@
+ return (0);
+ }
+
+-LOCAL int
++EXPORT int
+ check_writemodes_mdvd(scgp, dp)
+ SCSI *scgp;
+ cdr_t *dp;
diff --git a/sysutils/cdrtools-devel/files/patch-conf::configure b/sysutils/cdrtools-devel/files/patch-conf::configure
index eda23804083c..6cbcfc0b2002 100644
--- a/sysutils/cdrtools-devel/files/patch-conf::configure
+++ b/sysutils/cdrtools-devel/files/patch-conf::configure
@@ -1,10 +1,19 @@
--- conf/configure.orig Fri Sep 19 16:47:37 2003
+++ conf/configure Fri Sep 19 16:49:26 2003
-@@ -5567,6 +5567,7 @@
+@@ -5564,9 +5564,16 @@
+ extern int errno;
+ #endif
+
++#if defined (__FreeBSD__) && __FreeBSD__ >= 2
++#include <osreldate.h>
++#endif
++
int
main()
{
-+ exit(1);
++#if defined(__FreeBSD__) && __FreeBSD_version < 501113
++ exit(-1);
++#endif
if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) {
if (errno == EINVAL || errno == ENOMEM ||
errno == EPERM || errno == EACCES)