Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 1999 19:31:41 +0200 (MET DST)
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12642: audio/cdrdao: port doesn't build xcdrdao
Message-ID:  <199907141731.TAA33262@saturn.kn-bremen.de>

next in thread | raw e-mail | index | archive | help

>Number:         12642
>Category:       ports
>Synopsis:       audio/cdrdao: port doesn't build xcdrdao
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 14 11:10:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Juergen Lock
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
me?  organized?
>Environment:

	FreeBSD 3.2-STABLE i386

>Description:

	cdrdao port doesn't build xcdrdao

>How-To-Repeat:

	cd /usr/ports/audio/cdrdao; make

>Fix:
	
Index: Makefile
===================================================================
RCS file: /home/cvs/cvs/ports/audio/cdrdao/Makefile,v
retrieving revision 1.3
diff -u -u -r1.3 Makefile
--- Makefile	1999/07/10 19:36:38	1.3
+++ Makefile	1999/07/14 16:51:09
@@ -7,7 +7,8 @@
 #
 # If You don't want to use Joerg Schilling's SCSI library,
 # set DONT_USE_SCGLIB = yes
-# If You don't want to use pthead, set DONT_USE_PTHREAD = yes
+# If You don't want to use pthreads, set DONT_USE_PTHREAD = yes
+# If You want the graphical X toc file editor, set XCDRDAO = yes
 
 DISTNAME=		cdrdao-1.1.1.src
 PKGNAME=		cdrdao-1.1.1
@@ -22,12 +23,30 @@
 WRKSRC=         	${WRKDIR}/cdrdao-1.1.1
 
 GNU_CONFIGURE=		yes
+.if defined(XCDRDAO)
+LIB_DEPENDS+=		gtkmm-1.0.5:${PORTSDIR}/x11-toolkits/gtk--
+PLIST=          	${PKGDIR}/PLIST.xcdrdao
+.else
 CONFIGURE_ARGS= 	--disable-gtkmmtest
+.endif
 USE_GMAKE=	yes
 MAN1=		cdrdao.1
 
 .include <bsd.port.pre.mk>
 
+.if defined(XCDRDAO) && ${OSVERSION} < 400004
+BUILD_DEPENDS+=		eg++:${PORTSDIR}/lang/egcs
+CC=			egcc
+CXX=			eg++
+# no libgcc_r.a w egcs
+DONT_USE_PTHREAD=	yes
+.endif
+
+.if defined(XCDRDAO)
+# XXX turn some ANSI C++ violation errors into warnings
+CXXFLAGS+=		-fpermissive
+.endif
+
 .if defined(DONT_USE_SCGLIB) && ${OSVERSION} > 300000
 CONFIGURE_ARGS+= 	--without-scglib
 .endif
@@ -36,8 +55,19 @@
 CONFIGURE_ARGS+=	--without-posix-threads
 .endif
 
+pre-fetch:
+.if !defined(XCDRDAO)
+	@${ECHO_MSG} "To build the graphical X toc file editor, xcdrdao, type:"
+	@${ECHO_MSG} "    make XCDRDAO=yes"
+.else
+	@${ECHO_MSG} "Building with xcdrdao"
+.endif
+
 post-install:
 	strip $(PREFIX)/bin/cdrdao
+.if defined(XCDRDAO)
+	strip $(PREFIX)/bin/xcdrdao
+.endif
 	@${MKDIR} ${PREFIX}/share/doc/cdrdao
 .for i in COPYING INSTALL README README.FreeBSD README.PlexDAE
 	@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/cdrdao/
--- /dev/null	Wed Jul 14 18:19:34 1999
+++ pkg/PLIST.xcdrdao	Wed Jul 14 17:10:56 1999
@@ -0,0 +1,8 @@
+bin/cdrdao
+bin/xcdrdao
+share/doc/cdrdao/COPYING 
+share/doc/cdrdao/INSTALL 
+share/doc/cdrdao/README 
+share/doc/cdrdao/README.FreeBSD 
+share/doc/cdrdao/README.PlexDAE 
+@dirrm share/doc/cdrdao

 changed file: Makefile, new file: pkg/PLIST.xcdrdao

 I don't know if all egcs installations (-current's too?) lack
libgcc_r.a or if thats just mine (built from ports a while ago)?
I also don't know if gtk---1.0.0 is supposed to install its lib as
gtkmm-1.0.5 or if thats just my system where its somehow messed up...

 portlint:

OK: checking pkg/COMMENT.
OK: checking pkg/DESCR.
OK: checking Makefile.
WARN: "LIB_DEPENDS" has to appear earlier in Makefile.
WARN: "BUILD_DEPENDS" has to appear earlier in Makefile.
OK: checking files/md5.
0 fatal errors and 2 warnings found.

(dunno how to fix these when the dependencies are conditional...)

 TODO: use xdao/SoundIF-linux.cc for playback, should need little
changes but i don't have the hardware to test.

 Regards,
	Juergen

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907141731.TAA33262>