pkgsrc/sysutils/cdrtools/Makefile

103 lines
3.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.15 2007/06/08 23:04:54 wiz Exp $
Update cdrtools to 2.01.01.27. Patch provided by Jukka Salmi in PR 36392. NEW features of cdrtools-2.01.01a25: All: Libschily: - __fjmalloc()/__jmalloc() now allow to specify JM_EXIT to exit() instead of callinf siglongjmp() - New function file_getraise() to get the current file raise value. Libparanoia (Ported/enhanced by J<F6>rg Schilling, originated by Monty xiphmont@mit.edu): Libedc (Optimized by J<F6>rg Schilling, originated by Heiko Ei<DF>feldt heiko@hexco.de): Libfind: - Libfind is now close from the final state - Added README file to the directory libfind/ that help to learn how to create a complete find(1) command, a "bsh" find builtin and a ksh93 find builtin using libfind. - Libfind Version is now 1.3 - libfind has been restructured to allow it to be used as builtin function inside shells like e.g. "bsh" and "ksh93". - libfind now allows I/O redirection (needed for shell builtins). - libfind now may be told to check for abort situations (needed for shell builtins in order to check for abort on ^C). - New function find_free() - Libfind no longer leaks memory if called with a commandline with syntax errors. Libfile: Libhfs_iso: Libscg: - scg_numbus() function for FreeBSD corrected to make cdrtools work again. Thanks to a hint from Joseph Terner <jtsn@jtsn.de> Rscsi: Cdrecord: - A typo in the man page has been fixed (mkisofs does not have a -q but a -quiet option). - A debug message in the DVD+ driver hav been updated to make cdrecord again compile in -DDEBUG mode. Cdda2wav (Maintained/enhanced by J<F6>rg Schilling, originated by Heiko Ei<DF>feldt heiko@hexco.de): - Fixed a bug that caused cdda2wav to hang when retrieving the CDDB information. This bug has been introduced with cdrtools-2.01.01a21 Readcd: Scgcheck: Scgskeleton: Btcflash: Mkisofs (By J<F6>rg Schilling and James Pearson j.pearson@ge.ucl.ac.uk): TODO: - read Joliet filenames with multi-session if no TRANS.TBL or RR is present. I am looking for a volunteer for this task! Note that this can never be 100% correct as there is no relation between the names on the master (UNIX) filesystem, the ISO-9660 names and the Joliet names. Only the Rock Ridge names are untranslated with respect to the original files on the master (UNIX) filesystem. - add libecc/edc for CDI and similar. NEW features of cdrtools-2.01.01a26: All: - Now using cdrecord/version.h for the global version number - New autoconf test for struct timeval in sys/time.h - New autoconf test for struct timezone in sys/time.h - Changed include/schily/time.h to depend on the new autoconf #defines HAVE_STRUCT_TIMEVAL and HAVE_STRUCT_TIMEZONE - The Schily makefile system is now also passing OS specific #defines to "configure". - New Schily makefile system Target shell allows to call "make shell" in order to get a shell with exactly the same environment as the compilers will see from the makefile system. This helps testing. - New autoconf test checks whether we need to call "xx.exe" on a plaform. This is needed in order to be able to call the Microsoft compiler from the SFU (Services for UNIX) environment. - It is now possible to call the Microsoft compiler from SFU. In order to do this, call "smake CCOM=cl" If this does not work, you may need to change the file DEFAULTS/vc7-interix-setup Libschily: Libparanoia (Ported/enhanced by J<F6>rg Schilling, originated by Monty xiphmont@mit.edu): - Fixed a typo in paranoia_init() that gas been introduced with 2.01.01a24 This bug did cause a core dump. Thanks to Robert Grimm <rob@news.robgri.de> for reporting. Libedc (Optimized by J<F6>rg Schilling, originated by Heiko Ei<DF>feldt heiko@hexco.de): Libfind: - Fixed a bug in names.c that caused nameinit() to go into an endless recursion and dump core if there is no "nobody" in /etc/passwd. This bug has been introduced recently. Libfile: Libhfs_iso: Libscg: Rscsi: Cdrecord: - Trying to work around a Pioneer firmware bug that causes cdrecord to write DVDs at lowest speed. - Reset SCSI silent mode after cdrecord did use the auto-mode (no dev= parameter) to find the drive. This again gives visible error messages. Cdda2wav (Maintained/enhanced by J<F6>rg Schilling, originated by Heiko Ei<DF>feldt heiko@hexco.de): Readcd: Scgcheck: Scgskeleton: Btcflash: Mkisofs (By J<F6>rg Schilling and James Pearson j.pearson@ge.ucl.ac.uk): - added a better error message from Helios in volume.c - The timezone bug (first fixed in 2.01.01a24 has now been fixed correctly and works even if the timezone is located east to GMT. TODO: - read Joliet filenames with multi-session if no TRANS.TBL or RR is present. I am looking for a volunteer for this task! Note that this can never be 100% correct as there is no relation between the names on the master (UNIX) filesystem, the ISO-9660 names and the Joliet names. Only the Rock Ridge names are untranslated with respect to the original files on the master (UNIX) filesystem. - add libecc/edc for CDI and similar. NEW features of cdrtools-2.01.01a27: All: - Added forgotten file RULES/x86-interix-cl.rul to the Schily Makefilesystem - Trying to better deal with MS winsock2.h oddities in schily/time.h - #undef iswalnum ... in schily//wchar.h before defining non wchar fallbacks. - config.guess now knows about i386 Darwin (Mac OS X on Intel) - Schily makefilesystem enhanced to check for extended fields in struct utsname as seen e.g. in MS SFU (Interix). - New predefined macro OSVERSION in the makefilesystem is needed for SCO OpenServer 6.x support (because this uses a UnixWare kernel - Trying to support Compilation on SCO OpenServer 6.x - New macro $(CC_OUTPUT_FILTER) allows to filter away the unwanted file name echo from cl.exe. - Interix now uses uname -m instead of uname -p for $(OARCH) - Makefile support for pentium-4-unixware-cc.rul and pentium-4-unixware-gcc.rul was added. - New autoconf test for libiconv - The Schily makefilesystem now by default searches in /usr/local/include and /usr/local/lib if on FreeBSD. This is needed in order to find libintl and libiconv. - make html and make htmlx now works even on the top level directory and creates html versions of the man pages - fixed a typo in the autoconf test for C99 isinf/isnan Libschily: Libparanoia (Ported/enhanced by J<F6>rg Schilling, originated by Monty xiphmont@mit.edu): Libedc (Optimized by J<F6>rg Schilling, originated by Heiko Ei<DF>feldt heiko@hexco.de): Libfind: - find_list.c now #ifdefs names like S_IFLNK Libfile: - Better portability for strerror() in file.h Libhfs_iso: Libscg: - Better help message for Mac OS X wich dev=help Rscsi: Cdrecord: - Cdrecord now correctly reports Copyright ...2007 with -version - Cdda2wav (Maintained/enhanced by J<F6>rg Schilling, originated by Heiko Ei<DF>feldt heiko@hexco.de): - Let cdda2wav print the -version outout to stdout and in a similar form as other cdrtools programs. Readcd: Scgcheck: Scgskeleton: Btcflash: - Make btcflash compile on K&R compilers (like on HP-UX) Mkisofs (By J<F6>rg Schilling and James Pearson j.pearson@ge.ucl.ac.uk): - mkisofs -J no longer implies -l as done incorrectly after converting from GNU getopt_long() to getargs() TODO: - read Joliet filenames with multi-session if no TRANS.TBL or RR is present. I am looking for a volunteer for this task! Note that this can never be 100% correct as there is no relation between the names on the master (UNIX) filesystem, the ISO-9660 names and the Joliet names. Only the Rock Ridge names are untranslated with respect to the original files on the master (UNIX) filesystem. - add libecc/edc for CDI and similar.
2007-05-29 17:32:16 +02:00
DISTNAME= cdrtools-2.01.01a27
PKGNAME= cdrtools-2.01.01.27
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.berlios.de/pub/cdrecord/alpha/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html
COMMENT= Software for creating ISO9660 images and writing CDs/CD-RWs
CONFLICTS= mkisofs-[0-9]* cdrtools-ossdvd-[0-9]* cdrecord-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
2006-11-03 20:14:25 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
WRKSRC= ${WRKDIR}/cdrtools-2.01.01
USE_TOOLS+= gmake tbl
.if ${LOCALBASE} != "/opt/schily"
BUILDLINK_TRANSFORM+= rmdir:/opt/schily
.endif
# avoid picking up a bad ${ARCH} during the build
MAKE_ENV+= ARCH=""
MAKE_ENV+= MAKEPROG="gmake"
MAKE_ENV+= COPTX=${CFLAGS:M*:Q}
MAKE_ENV+= LDOPTX=${LDFLAGS:M*:Q}
# if we're using a gcc which is named gcc, we need to set CCOM=gcc
# in MAKE_ENV so the make infrastructure picks the right options.
.if !empty(CC:M*gcc*)
MAKE_ENV+= CCOM="gcc"
.endif
# allow us to override the default /etc/default/cdrecord by patching
# the documentation appropriately. Additionally, we also provide a
# MESSAGE stating the reasons we do this, as required by the license.
CDRECORD_CONF?= ${PKG_SYSCONFDIR}/cdrecord.conf
.if ${CDRECORD_CONF} != "/etc/default/cdrecord"
MESSAGE_SRC+= MESSAGE.cdrecord.conf
MESSAGE_SUBST+= PKGNAME_NOREV=${PKGNAME_NOREV:Q}
MESSAGE_SUBST+= CDRECORD_CONF=${CDRECORD_CONF:Q}
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
SUBST_CLASSES+= fix
SUBST_STAGE.fix= post-patch
SUBST_FILES.fix= btcflash/btcflash.1
SUBST_FILES.fix+= cdrecord/cdrecord.1
SUBST_FILES.fix+= cdrecord/defaults.c
SUBST_FILES.fix+= mkisofs/diag/isoinfo.8
SUBST_FILES.fix+= readcd/readcd.1
SUBST_FILES.fix+= scgcheck/scgcheck.1
SUBST_SED.fix= -e "s,/etc/default/cdrecord,${CDRECORD_CONF},g"
SUBST_MESSAGE.fix= Fixing paths.
2007-03-19 15:58:20 +01:00
post-extract:
${LN} -s Defaults.freebsd ${WRKSRC}/DEFAULTS/Defaults.dragonfly
${LN} -s Defaults.freebsd ${WRKSRC}/DEFAULTS_ENG/Defaults.dragonfly
do-configure:
cd ${WRKSRC}/RULES; \
for suffix in netbsd-cc.rul netbsd-gcc.rul; do \
if [ ! -f ${MACHINE}-$$suffix ]; then \
${LN} -sf i386-$$suffix ${MACHINE}-$$suffix; \
fi; \
done
post-build:
cd ${WRKSRC}; \
for manpage in cdda2wav/cdda2wav.1 mkisofs/mkisofs.8; do \
${TBL} $${manpage} > $${manpage}.tmp; \
${MV} -f $${manpage}.tmp $${manpage}; \
done
do-install:
cd ${WRKSRC}/cdda2wav; \
2006-11-03 20:14:25 +01:00
${INSTALL_PROGRAM} OBJ/*/cdda2wav ${DESTDIR}${PREFIX}/bin; \
${INSTALL_MAN} cdda2wav.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
cd ${WRKSRC}/cdrecord; \
2006-11-03 20:14:25 +01:00
${INSTALL_PROGRAM} OBJ/*/cdrecord ${DESTDIR}${PREFIX}/bin; \
${INSTALL_MAN} cdrecord.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
cd ${WRKSRC}/mkisofs; \
2006-11-03 20:14:25 +01:00
${INSTALL_PROGRAM} OBJ/*/mkisofs ${DESTDIR}${PREFIX}/bin; \
${INSTALL_MAN} mkisofs.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
cd ${WRKSRC}/mkisofs/diag; \
for f in devdump isodump isoinfo isovfy; do \
2006-11-03 20:14:25 +01:00
${INSTALL_PROGRAM} OBJ/*/$$f ${DESTDIR}${PREFIX}/bin; \
${INSTALL_MAN} isoinfo.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/$$f.8; \
done
cd ${WRKSRC}/readcd; \
2006-11-03 20:14:25 +01:00
${INSTALL_PROGRAM} OBJ/*/readcd ${DESTDIR}${PREFIX}/bin; \
${INSTALL_MAN} readcd.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"