mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
864c1eaec4
ftp://ftp.berlios.de/pub/cdrecord/AN-2.01 - Once again remove the patch for the configure script to disable the use of mlockall(2) as it no longer causes negative side effects on FreeBSD => 502113. Mark the port IGNORE on FreeBSD 5.x with broken mlockall(2) as such changes are not allowed according to a comment in xconfig.h.in. A patch for aclocal.m4 was submitted upstream but didn't get integrated. Mkisofs 2.01 was verified to produce working FreeBSD install images for alpha, i386, ia64 and sparc64. Thanks to: marcel for verifying mkisofs on ia64 Approved by: netchild
159 lines
5.5 KiB
Makefile
159 lines
5.5 KiB
Makefile
# New ports collection makefile for: cdrtools
|
|
# Date created: Wed Jul 25 23:30:19 CEST 2001
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cdrtools
|
|
PORTVERSION?= 2.01
|
|
PORTREVISION?= 0
|
|
CATEGORIES?= sysutils audio
|
|
MASTER_SITES= ftp://ftp.berlios.de/pub/cdrecord/ \
|
|
ftp://ftp.cs.tu-berlin.de/pub/misc/cdrecord/
|
|
DISTNAME= cdrtools-2.01
|
|
|
|
MAINTAINER= marius@FreeBSD.org
|
|
COMMENT= CD/CD-R[W] and ISO-9660 image creation and extraction tools
|
|
|
|
CONFLICTS?= cdrtools-devel-* cjk-cdrtools-*
|
|
|
|
MAN1= cdda2wav.1 cdrecord.1 readcd.1 scgcheck.1
|
|
MAN8= isoinfo.8 mkisofs.8
|
|
MLINKS= isoinfo.8 devdump.8 isoinfo.8 isodump.8 isoinfo.8 isovfy.8 \
|
|
mkisofs.8 mkhybrid.8
|
|
DOCS= README README.ATAPI README.DiskT@2 README.FreeBSD README.WORM \
|
|
README.audio README.cdplus README.cdrw README.cdtext \
|
|
README.clone README.copy README.mkisofs README.multi \
|
|
README.raw README.rscsi README.sony README.verify
|
|
CDDA2WAVDOCS= FAQ Frontends HOWTOUSE OtherProgs README THANKS TODO
|
|
MKISOFSDOCS= README README.compression README.eltorito README.graft_dirs \
|
|
README.hfs_boot README.hfs_magic README.hide README.joliet \
|
|
README.macosx README.mkhybrid README.prep_boot README.rootinfo \
|
|
README.session README.sort README.sparcboot README.sunx86boot
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_REINPLACE= yes
|
|
MAKE_ENV= CCOM=${CC} LANG=C
|
|
#CFLAGS+= -DSOURCE_MODIFIED
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
CDRTLSTARGET= ${ARCH}-freebsd-${CC}
|
|
|
|
.if defined(WITH_RSCSI)
|
|
PKGINSTALL= ${PKGDIR}/pkg-install.rscsi
|
|
PLIST_SUB= RSCSI=""
|
|
PKGNAMESUFFIX= -rscsi
|
|
.else
|
|
PLIST_SUB= RSCSI="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 501104 && ${OSVERSION} < 502113
|
|
IGNORE= The mlockall(2) of your FreeBSD 5.x version causes problems when used by cdrecord. Please update FreeBSD to >= 5.3 in order to use this port
|
|
.endif
|
|
|
|
pre-everything::
|
|
.if !defined(WITH_RSCSI)
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "You may use the following build option(s):"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "WITH_RSCSI=yes builds with the rscsi daemon which provides access to"
|
|
@${ECHO_MSG} " local SCSI-devices over the network (the client-side"
|
|
@${ECHO_MSG} " in cdda2wav, cdrecord, etc. is built unconditionally)."
|
|
@${ECHO_MSG} " BEWARE: The rscsi binary gets installed suid root as"
|
|
@${ECHO_MSG} " this is the preferred method to set it up."
|
|
@${ECHO_MSG} ""
|
|
.endif
|
|
|
|
post-extract:
|
|
.for i in config.guess config.sub
|
|
@${CP} ${PORTSDIR}/Templates/${i} ${WRKSRC}/conf
|
|
@${CP} ${PORTSDIR}/Templates/${i} ${WRKSRC}/cdda2wav
|
|
.endfor
|
|
.if ${ARCH} != "i386" || ${CC} != "cc"
|
|
@${LN} -sf ${WRKSRC}/RULES/i386-freebsd-cc.rul \
|
|
${WRKSRC}/RULES/${CDRTLSTARGET}.rul
|
|
.endif
|
|
|
|
post-patch:
|
|
@${RM} ${WRKSRC}/TARGETS/55scgskeleton ${WRKSRC}/TARGETS/85man
|
|
.if !defined(WITH_RSCSI)
|
|
@${RM} ${WRKSRC}/TARGETS/55rscsi
|
|
.endif
|
|
.for i in README.rscsi include/deflts.h cdda2wav/cdda2wav.1 \
|
|
cdrecord/cdrecord.1 cdrecord/cdrecord.dfl cdrecord/defaults.c \
|
|
librscg/scsi-remote.c readcd/readcd.1 rscsi/rscsi.c rscsi/rscsi.dfl \
|
|
scgcheck/scgcheck.1
|
|
@${REINPLACE_CMD} -e 's|\/opt\/schily|${PREFIX}|g; \
|
|
s|\/usr\/local|${PREFIX}|g; s|\/etc\/default|${PREFIX}\/etc|g; \
|
|
s|\/var\/adm\/messages|\/var\/run\/dmesg.boot|g' ${WRKSRC}/${i}
|
|
.endfor
|
|
# @${REINPLACE_CMD} -E -e \
|
|
# 's|#define.+INSERT_YOUR_EMAIL_ADDRESS_HERE|& "${MAINTAINER}"|' \
|
|
# ${WRKSRC}/cdrecord/cdrecord.c
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
|
|
${WRKDIR}/pkg-message
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/cdda2wav/OBJ/${CDRTLSTARGET}/cdda2wav \
|
|
${PREFIX}/bin
|
|
@${LN} -sf cdda2wav ${PREFIX}/bin/list_audio_tracks
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/cdrecord/OBJ/${CDRTLSTARGET}/cdrecord \
|
|
${PREFIX}/bin
|
|
.for i in devdump isodebug isodump isoinfo isovfy
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/diag/OBJ/${CDRTLSTARGET}/${i} \
|
|
${PREFIX}/bin
|
|
.endfor
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/OBJ/${CDRTLSTARGET}/mkisofs \
|
|
${PREFIX}/bin
|
|
@${LN} -sf mkisofs ${PREFIX}/bin/mkhybrid
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/readcd/OBJ/${CDRTLSTARGET}/readcd \
|
|
${PREFIX}/bin
|
|
.if defined(WITH_RSCSI)
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/rscsi/OBJ/${CDRTLSTARGET}/rscsi \
|
|
${PREFIX}/sbin
|
|
@${CHMOD} u+s ${PREFIX}/sbin/rscsi
|
|
.endif
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/scgcheck/OBJ/${CDRTLSTARGET}/scgcheck \
|
|
${PREFIX}/bin
|
|
@${INSTALL_MAN} ${WRKSRC}/cdda2wav/cdda2wav.1 ${PREFIX}/man/man1
|
|
@${INSTALL_MAN} ${WRKSRC}/cdrecord/cdrecord.1 ${PREFIX}/man/man1
|
|
@${INSTALL_MAN} ${WRKSRC}/readcd/readcd.1 ${PREFIX}/man/man1
|
|
@${INSTALL_MAN} ${WRKSRC}/scgcheck/scgcheck.1 ${PREFIX}/man/man1
|
|
@${INSTALL_MAN} ${WRKSRC}/mkisofs/mkisofs.8 ${PREFIX}/man/man8
|
|
@${INSTALL_MAN} ${WRKSRC}/mkisofs/diag/isoinfo.8 ${PREFIX}/man/man8
|
|
@${INSTALL_DATA} ${WRKSRC}/cdrecord/cdrecord.dfl \
|
|
${PREFIX}/etc/cdrecord.sample
|
|
.if !exists(${PREFIX}/etc/cdrecord)
|
|
@${INSTALL_DATA} ${WRKSRC}/cdrecord/cdrecord.dfl ${PREFIX}/etc/cdrecord
|
|
.endif
|
|
.if defined(WITH_RSCSI)
|
|
@${INSTALL_DATA} ${WRKSRC}/rscsi/rscsi.dfl ${PREFIX}/etc/rscsi.sample
|
|
.if !exists(${PREFIX}/etc/rscsi)
|
|
@${INSTALL_DATA} ${WRKSRC}/rscsi/rscsi.dfl ${PREFIX}/etc/rscsi
|
|
.endif
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in ${DOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
@${MKDIR} ${DOCSDIR}/cdda2wav
|
|
.for i in ${CDDA2WAVDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/cdda2wav/${i} ${DOCSDIR}/cdda2wav
|
|
.endfor
|
|
@${MKDIR} ${DOCSDIR}/mkisofs
|
|
.for i in ${MKISOFSDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/mkisofs/${i} ${DOCSDIR}/mkisofs
|
|
.endfor
|
|
.endif
|
|
|
|
post-install:
|
|
-@if [ -f ${PKGINSTALL} ]; then ${SETENV} PKG_PREFIX=${PREFIX} \
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL; fi
|
|
@${CAT} ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.post.mk>
|