From owner-freebsd-ports Wed Jul 14 11:10:23 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A3D1B15414 for ; Wed, 14 Jul 1999 11:10:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA63966; Wed, 14 Jul 1999 11:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [134.102.38.17]) by hub.freebsd.org (Postfix) with ESMTP id 4384B153CF for ; Wed, 14 Jul 1999 11:00:45 -0700 (PDT) (envelope-from nox@saturn.kn-bremen.de) Received: from saturn.kn-bremen.de (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id TAA17176 for FreeBSD-gnats-submit@freebsd.org; Wed, 14 Jul 1999 19:57:31 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.9.3/8.8.5) id TAA33262; Wed, 14 Jul 1999 19:31:41 +0200 (MET DST) Message-Id: <199907141731.TAA33262@saturn.kn-bremen.de> Date: Wed, 14 Jul 1999 19:31:41 +0200 (MET DST) From: Juergen Lock Reply-To: nox@jelal.kn-bremen.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/12642: audio/cdrdao: port doesn't build xcdrdao Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 +.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