mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
21e18d8230
- Don't default to '-O2' when compiling the cdparanoia-lib but respect CFLAGS, this should work around the generation of broken code with GCC and an optimazation-level greater than 1. - Fix a bug in the cdparanoia-lib that can cause problems on some !386. - Remove the unneeded usage of what seems to be an extension of G++, i.e. arguments to the constructor when allocating an array of objects with new, fixes compilation with compilers stricter obeying the standards. - Always symlink ${MACHINE_ARCH}-freebsd-cc.rul to the i386-version on !i386 in the RULES-directory of scglib to be consistent with sysutils/cdrtools, cdrdao also should compile and work on any platform with the fixes above. - hier(7) the location of the global cdrdao.etc to LOCALBASE/etc/cdrdao.conf. - Make the gcdmaster gnome-frontend compile with GCC3, use HAVE_GOME-magic to build it. - Clean up some stuff. NOTE: Gcdmaster has a very obvious bug, if one creates a new audio-CD by "New Audio CD project" -> "Edit" -> "Append Track" (select audio-file) it will get the length of the track wrong, display a garbage waveform and play nothing when hitting the play-button, same for further added tracks. This can be worked around by saving the project and re-opening it, now appending further tracks also works and the burnt CD is fine. This is _not_ a bug of this port but a bug in gcdmaster itself and is totally reproducable on Linux, therefore please don't mail the maintainer of this port about it expect you have a fix, thanks. Submitted by: maintainer
134 lines
4.0 KiB
Makefile
134 lines
4.0 KiB
Makefile
# New ports collection makefile for: cdrdao
|
|
# Date created: 7 April 1999
|
|
# Whom: futatuki
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cdrdao
|
|
PORTVERSION= 1.1.7
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
EXTRACT_SUFX= .src.tar.gz
|
|
|
|
MAINTAINER= marius@alchemy.franken.de
|
|
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOMENG= yes
|
|
WANT_GNOME= yes
|
|
|
|
MAN1= cdrdao.1
|
|
|
|
MAKE_ENV= COPTX="-DBSD_SCSI_SENSE_BUG"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_TOC2MP3)
|
|
LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame
|
|
.endif
|
|
|
|
.if ${HAVE_GNOME:Mgnomelibs} != ""
|
|
USE_GNOME= gnomelibs
|
|
LIB_DEPENDS+= gtkmm.2:${PORTSDIR}/x11-toolkits/gtk--
|
|
LIB_DEPENDS+= gnomemm.9:${PORTSDIR}/x11-toolkits/gnome--
|
|
CONFIGURE_ARGS= --with-gtkmm-prefix=${X11BASE}
|
|
PKGNAMESUFFIX?= -gnome
|
|
PLIST_SUB= GNOME=""
|
|
MAN1+= gcdmaster.1
|
|
.else
|
|
CONFIGURE_ARGS= --with-gtkmm-prefix=${NONEXISTENT}
|
|
PLIST_SUB= GNOME="@comment "
|
|
_WITHOUT_GNOME= yes
|
|
.endif
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.if exists(${LOCALBASE}/bin/antlr) && exists(${LOCALBASE}/bin/dlg)
|
|
CONFIGURE_ARGS+= --with-pcctsbin=${LOCALBASE}/bin \
|
|
--with-pcctsinc=${LOCALBASE}/include/pccts
|
|
.endif
|
|
|
|
.if defined(WITHOUT_SCGLIB) && ${OSVERSION} > 300000
|
|
CONFIGURE_ARGS+= --without-scglib
|
|
.endif
|
|
|
|
.if ${OSVERSION} <= 320000 || !defined(WITH_PTHREADS)
|
|
CONFIGURE_ARGS+= --without-posix-threads
|
|
.endif
|
|
|
|
.if defined(WITH_TOC2MP3)
|
|
CONFIGURE_ARGS+= --with-lame-include=${LOCALBASE}/include \
|
|
--with-lame-lib=${LOCALBASE}/lib
|
|
PLIST_SUB+= TOC2MP3=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-lame
|
|
PLIST_SUB+= TOC2MP3="@comment "
|
|
.endif
|
|
|
|
pre-everything:
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "You may use the following build options:"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "WITHOUT_SCGLIB=yes builds without Joerg Schilling's SCSI library"
|
|
@${ECHO_MSG} "WITH_PTHREADS=yes enables usage of POSIX threads for the ring buffers"
|
|
@${ECHO_MSG} " (not recommended, increases risk of buffer-underruns)"
|
|
@${ECHO_MSG} "WITH_TOC2MP3=yes builds toc2mp3 (requires audio/lame)"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "This port builds the gcdmaster frontend if x11/gnomelibs is installed (also"
|
|
@${ECHO_MSG} "requires x11-toolkits/gtk-- and x11-toolkits/gnome--)."
|
|
@${ECHO_MSG} ""
|
|
|
|
post-extract:
|
|
.if ${MACHINE_ARCH} != "i386"
|
|
@(cd ${WRKSRC}/scsilib/RULES; \
|
|
${LN} -sf i386-freebsd-cc.rul ${MACHINE_ARCH}-freebsd-cc.rul)
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g; \
|
|
s|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
.for i in cdrdao.man main.cc
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/dao/${i}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/dao/cdrdao ${PREFIX}/bin
|
|
@${INSTALL_MAN} ${WRKSRC}/dao/cdrdao.man ${PREFIX}/man/man1/cdrdao.1
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2cue ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/dao/cdrdao.drivers ${DATADIR}/drivers
|
|
.if defined(WITH_TOC2MP3)
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2mp3 ${PREFIX}/bin
|
|
.endif
|
|
.if !defined(_WITHOUT_GNOME)
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/xdao/gcdmaster ${PREFIX}/bin
|
|
@${INSTALL_MAN} ${WRKSRC}/xdao/xcdrdao.man \
|
|
${PREFIX}/man/man1/gcdmaster.1
|
|
@${INSTALL_DATA} ${WRKSRC}/xdao/gcdmaster.desktop \
|
|
${X11BASE}/share/gnome/apps/Applications
|
|
@${MKDIR} ${X11BASE}/share/gnome/pixmaps/gcdmaster
|
|
.for i in gcdmaster.png pixmap_audiocd.png pixmap_copycd.png \
|
|
pixmap_cursor-tool.xpm pixmap_datacd.png pixmap_dumpcd.png \
|
|
pixmap_help.png pixmap_mixedcd.png pixmap_open.png \
|
|
pixmap_play-pause.xpm pixmap_play-start.xpm pixmap_play-stop.xpm \
|
|
pixmap_zoom-fit.xpm pixmap_zoom-in.xpm pixmap_zoom-out.xpm \
|
|
pixmap_zoom-selection.xpm pixmap_zoom-tool.xpm
|
|
@${INSTALL_DATA} ${WRKSRC}/xdao/${i} \
|
|
${X11BASE}/share/gnome/pixmaps/gcdmaster
|
|
.endfor
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in CREDITS INSTALL README README.PlexDAE \
|
|
Release-1.1.0 Release-1.1.2 Release-1.1.3 Release-1.1.4 \
|
|
Release-1.1.5 Release-1.1.6 Release-1.1.7
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|