b22407b60a
All: - A small restructuring of the include file structure: new file include/schily/xconfig.h include/schily/xmconfig.h now only contains manual static configuration 2 for VMS - The Makefilesystem now inclucdes links for sparc64 (Fujitsu-Siemens) Libschily: - Fixed a typo in fconv.c that caused problems on IBM AIX5. Libfind: - -perm now correctly recognises argument parsing errors by dealing with the fact that mode_t is unsigned. Cdrecord: - Renamed getdelim() to getworddelim() to avoid a name clash in Cygwin. Note that there is still a name clash on Cygwin with getline(). As this is a hard POSIX violation caused by Cygwin, you need to edit Cygwin's /usr/include/stdio.h and remove the non-conforming Cygwin getline() if you like to compile cdrtools. Please also make a bug report against Cygwin. Tell the Cygwin people that libschily's getline() is compilant to a commercial interface published since 1982. Cygwin needs to use a different name if they don't like to follow the official getline() prototype. - The manual layer break code has been modified to deal with the different GCC behavior with signed/unsigned comparison. Cdda2wav (By Heiko Eißfeldt heiko@hexco.de): - New Option ts= # similar to cdrecord's and readcd's options. This allows to work around a Linux kernel bug that prevents cdda2wav to be usable with USB drives. To work around this Linux bug try cdda2wav ts=128k or less. Mkisofs (By Jörg Schilling and James Pearson j.pearson@ge.ucl.ac.uk): - mkisofs -T & mkisofs -b boot_file now work correctly. This fixes a bug introduced with 2.01.01a18 - Deep directory abortion now happens from the right place, so mkisofs will allow files but no sub-dirs inside the last permitted directory nesting level. - Mkisofs will now correctly ignore deep directory nesting in no Rock Ridge mode with mkisofs -find - mkisofs -find dir will now correctly deal with Rock Ridge deep directory relocation. - Some small compile problems on Cygwin (caused by a unsigned int vs. UInt32_t clash) have been fixed. Thanks to Uwe Büdel for reporting. - Symlinks now work in mkisofs -find mode too. - .. directory in rr_moved now gets the correct mode - graft dirs now work even if they cause Rock Ridge deep directory relocation.
93 lines
3 KiB
Makefile
93 lines
3 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2006/10/30 18:24:55 thomasklausner Exp $
|
|
|
|
DISTNAME= cdrtools-2.01.01a19
|
|
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 (development version)
|
|
|
|
CONFLICTS= mkisofs-[0-9]* cdrtools-ossdvd-[0-9]* cdrecord-[0-9]*
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
.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= cdrecord/defaults.c cdrecord/cdrecord.1 \
|
|
readcd/readcd.1
|
|
SUBST_SED.fix= -e "s,/etc/default/cdrecord,${CDRECORD_CONF},g"
|
|
SUBST_MESSAGE.fix= Fixing paths.
|
|
|
|
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; \
|
|
${INSTALL_PROGRAM} OBJ/*/cdda2wav ${PREFIX}/bin; \
|
|
${INSTALL_MAN} cdda2wav.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
cd ${WRKSRC}/cdrecord; \
|
|
${INSTALL_PROGRAM} OBJ/*/cdrecord ${PREFIX}/bin; \
|
|
${INSTALL_MAN} cdrecord.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
cd ${WRKSRC}/mkisofs; \
|
|
${INSTALL_PROGRAM} OBJ/*/mkisofs ${PREFIX}/bin; \
|
|
${INSTALL_MAN} mkisofs.8 ${PREFIX}/${PKGMANDIR}/man8
|
|
cd ${WRKSRC}/mkisofs/diag; \
|
|
for f in devdump isodump isoinfo isovfy; do \
|
|
${INSTALL_PROGRAM} OBJ/*/$$f ${PREFIX}/bin; \
|
|
${INSTALL_MAN} isoinfo.8 ${PREFIX}/${PKGMANDIR}/man8/$$f.8; \
|
|
done
|
|
cd ${WRKSRC}/readcd; \
|
|
${INSTALL_PROGRAM} OBJ/*/readcd ${PREFIX}/bin; \
|
|
${INSTALL_MAN} readcd.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|