CDIrip allows you to extract the proprietary DoscJugglar format for use
in open source burning software. I’m porting 0.6.2 and not the latest
0.6.4 because 0.6.3 and above broke big endian.

With this software, I’ve been able to burn a bootable home brew CD-R
for an unmodified Sega Dreamcast with a Mac mini G4 running just OpenBSD.

This port has been only tested on macppc current, I’d really
appreciate if someone could verify that it works fine on i386 and amd64
as I have access to neither at the moment. 

If I did anything wrong, let me know as this is my first port. Thanks!

Index: sysutils/cdirip/pkg/DESCR
===================================================================
RCS file: sysutils/cdirip/pkg/DESCR
diff -N sysutils/cdirip/pkg/DESCR
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ sysutils/cdirip/pkg/DESCR   3 Jun 2020 22:15:14 -0000
@@ -0,0 +1 @@
+Extract DiscJugglar .cdi files for use with other burning software.

Index: sysutils/cdirip/distinfo
===================================================================
RCS file: sysutils/cdirip/distinfo
diff -N sysutils/cdirip/distinfo
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ sysutils/cdirip/distinfo    3 Jun 2020 22:11:58 -0000
@@ -0,0 +1,2 @@
+SHA256 (cdirip-0.6.2) = hzbUgwGzzXkXD8IU+19cMlTR74nMqzSHoDJElmk8c+A=
+SIZE (cdirip-0.6.2) = 11425

Index: sysutils/cdirip/Makefile
===================================================================
RCS file: sysutils/cdirip/Makefile
diff -N sysutils/cdirip/Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ sysutils/cdirip/Makefile    3 Jun 2020 22:08:54 -0000
@@ -0,0 +1,32 @@
+# $OpenBSD: Makefile,v 1.0 2020/06/02 01:32:48 alexfree Exp $
+
+COMMENT=       maniplulate and extract .cdi files
+ONLY_FOR_ARCHS =       i386 amd64 macppc
+
+PKGNAME =      cdirip-0.6.2
+
+CATEGORIES =   sysutils
+
+HOMEPAGE =     https://github.com/jozip/cdirip/
+
+MAINTAINER =           Alex Free <ale...@mail.com>
+
+PERMIT_PACKAGE =       No | not explicitly permitted
+PERMIT_DISTFILES =     No | not explicitly permitted
+
+MASTER_SITES =         https://home.macintosh.garden/~alexfree/distfiles/
+
+DISTFILES =            cdirip-0.6.2
+
+COMPILER =             base-clang ports-gcc base-gcc
+
+BUILD_DEPENDS =        devel/gmake
+
+USE_GMAKE =            Yes
+
+MAKE_FILE =            Makefile.linux
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/cdirip ${PREFIX}/bin/cdirip
+
+.include <bsd.port.mk>

Index: sysutils/cdirip/patches/patch-Makefile_linux
===================================================================
RCS file: sysutils/cdirip/patches/patch-Makefile_linux
diff -N sysutils/cdirip/patches/patch-Makefile_linux
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ sysutils/cdirip/patches/patch-Makefile_linux        3 Jun 2020 22:13:47 
-0000
@@ -0,0 +1,23 @@
+$OpenBSD$
+
+Index: Makefile.linux
+--- Makefile.linux.orig
++++ Makefile.linux
+@@ -7,7 +7,7 @@
+ 
+ 
+ # Compiler
+-CC=gcc
++CC=cc
+ # Parameters given to the compiler
+ CFLAGS=-s -O1  -I/usr/include -I/include    
+ # Output filename (*.exe)
+@@ -22,7 +22,7 @@ OBJS=cdirip.o buffer.o cdi.o common.o audio.o
+ 
+ all: compile_res
+       $(CC) -c $(SRCS) $(CFLAGS)
+-      $(CC) -o $(OUTPUT) $(OBJS) $(CFLAGS)
++      $(CC) -o $(OUTPUT) $(OBJS) -lm $(CFLAGS)
+ 
+ compile_res:
+ 

Index: sysutils/cdirip/pkg/PLIST
===================================================================
RCS file: sysutils/cdirip/pkg/PLIST
diff -N sysutils/cdirip/pkg/PLIST
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ sysutils/cdirip/pkg/PLIST   3 Jun 2020 22:15:39 -0000
@@ -0,0 +1,2 @@
+@comment $OpenBSD: PLIST,v$
+@bin bin/cdirip

Reply via email to