<snip> Cdrdao changes: - MMC-driver auto-detection. If no --driver option is specified, cdrdao will try to autodetect an MMC-compliant device and use the generic-mmc driver by default. (Denis Leroy) - Included scsilib upgraded from cdrtools 2.01a31 (Denis Leroy) - Added --eject option to the unlock command to eject the cd after unlocking. (Eric Benson) - New 'discid' command to display CDDB information. (Eric Benson, Denis Leroy). - Added --full-burn and --capacity options to extend lead-out to entire disc, beyond 80 mins limit. (Vladimir Petrov) GCDMaster changes (Denis Leroy) : - Some bug fixes (manual driver configurations were not being saved correctly). cue2toc changes: - Version 0.2 released. Complete rewrite, should now handle most of all CUE files. (Matthias Czapla) <snip> - Disable the use of mlockall(2) on FreeBSD 5, even after the last round of fixes there are still issues. - Add a workaround for problems with gmake and certain locales on FreeBSD 5. - Use MASTER_SITE_SOURCEFORGE_EXTENDED. - Use ARCH instead of MACHINE_ARCH to please portlint >= 2.5.9. Submitted by: marius On my TODO list since: June 7 :-(
119 lines
3.6 KiB
Makefile
119 lines
3.6 KiB
Makefile
# New ports collection makefile for: cdrdao
|
|
# Date created: 7 April 1999
|
|
# Whom: futatuki
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME?= cdrdao
|
|
PORTVERSION= 1.1.9
|
|
PORTREVISION?= 0
|
|
CATEGORIES= sysutils audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
|
MASTER_SITE_SUBDIR= cdrdao
|
|
DISTNAME= cdrdao-${PORTVERSION}
|
|
|
|
MAINTAINER= marius@FreeBSD.org
|
|
COMMENT?= Record CD-R[W]s in disk-at-once mode
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/antlr:${PORTSDIR}/devel/pccts \
|
|
${LOCALBASE}/bin/dlg:${PORTSDIR}/devel/pccts
|
|
|
|
USE_GMAKE= yes
|
|
USE_REINPLACE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
.if ${PORTNAME} == "gcdmaster"
|
|
USE_GNOME= gnomelibs pkgconfig
|
|
LIB_DEPENDS= gnomeuimm-2.0:${PORTSDIR}/x11-toolkits/libgnomeuimm
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/cdrdao:${PORTSDIR}/sysutils/cdrdao
|
|
MAN1= gcdmaster.1
|
|
CONFIGURE_ARGS= --without-lame
|
|
.else
|
|
MAN1= cdrdao.1 cue2toc.1
|
|
CONFIGURE_ARGS= --without-xdao
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
.if defined(WITH_TOC2MP3)
|
|
LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame
|
|
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
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --with-pcctsbin=${LOCALBASE}/bin \
|
|
--with-pcctsinc=${LOCALBASE}/include/pccts \
|
|
--without-posix-threads
|
|
#CONFIGURE_ARGS+= --without-scglib
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
MAKE_ENV= CCOM=${CC} LANG=C
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-everything::
|
|
.if ${PORTNAME} != "gcdmaster" && !defined(WITH_TOC2MP3)
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "You may use the following build option(s):"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "WITH_TOC2MP3=yes builds with toc2mp3 (requires audio/lame)"
|
|
@${ECHO_MSG} ""
|
|
.endif
|
|
|
|
post-extract:
|
|
.if ${ARCH} != "i386" || ${CC} != "cc"
|
|
@${LN} -sf ${WRKSRC}/scsilib/RULES/i386-freebsd-cc.rul \
|
|
${WRKSRC}/scsilib/RULES/${ARCH}-freebsd-${CC}.rul
|
|
.endif
|
|
|
|
post-patch:
|
|
.for i in 45libdeflt 45libedc 45libfile 45libhfs_iso 45libparanoia 45libunls \
|
|
45librscg 55cdda2wav 55cdrecord 55cmd 55mkisofs 55mkisofs!@!diag \
|
|
55readcd 55scgcheck 55scgskeleton 55rscsi 85man
|
|
@${RM} ${WRKSRC}/scsilib/TARGETS/${i}
|
|
.endfor
|
|
.if ${PORTNAME} == "gcdmaster"
|
|
@${REINPLACE_CMD} -E -e 's|(^SUBDIRS.+) utils|\1|' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -E -e \
|
|
's|(SET_CDRDAO_PATH.+path=)(cdrdao)|\1${LOCALBASE}\/bin\/\2|g' \
|
|
${WRKSRC}/xdao/Settings.cc
|
|
.else
|
|
.for i in cdrdao.man main.cc
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/dao/${i}
|
|
.endfor
|
|
@${REINPLACE_CMD} -E -e 's|(^CDRDAO_DATA_DIR.+=).+|\1 ${DATADIR}|' \
|
|
${WRKSRC}/dao/Makefile.in
|
|
.endif
|
|
|
|
do-install:
|
|
.if ${PORTNAME} == "gcdmaster"
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/xdao/gcdmaster ${PREFIX}/bin
|
|
@${INSTALL_MAN} ${WRKSRC}/xdao/gcdmaster.man \
|
|
${PREFIX}/man/man1/gcdmaster.1
|
|
@${INSTALL_DATA} ${WRKSRC}/xdao/gcdmaster.desktop \
|
|
${X11BASE}/share/gnome/apps/Applications
|
|
@${INSTALL_DATA} ${WRKSRC}/xdao/gcdmaster.png \
|
|
${X11BASE}/share/gnome/pixmaps
|
|
.else
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/dao/cdrdao ${PREFIX}/bin
|
|
@${INSTALL_MAN} ${WRKSRC}/dao/cdrdao.man ${PREFIX}/man/man1/cdrdao.1
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/utils/cue2toc ${PREFIX}/bin
|
|
@${INSTALL_MAN} ${WRKSRC}/utils/cue2toc.1 ${PREFIX}/man/man1
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2cddb ${PREFIX}/bin
|
|
@${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(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in CREDITS README README.PlexDAE Release-${PORTVERSION}
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|