pkgsrc/sysutils/cdrtools/Makefile
wiz 24587c0d9b Update to 2.01.01a61:
All:

-	Support for 64 bit compilation on mac OS X was added.
	Call make CCOM=cc64 as on other platforms.

-	$OLIBSDIR is no longer in the RUNPATH

-	New include file include/schily/limits.h

-	Make sure that all include files in include/schily/ include
	include/schily/mconfig.h

-	wide character support new

-	New makefile "Mocsw" sets defaults for "opencsw" instead of Blastwave.
	Mcsw for Blastwave of course continues to exist

-	New defaults directory DEFAULTS_CSW includes special defaults that
	compile e.g. for Sparc-V8 in order to get working binaries for older
	Sparc non 64 Bit hardware.

-	New autoconf test HAVE_SETBUF and HAVE_SETVBUF

-	Several modification in hope to better support MINGW

Libschily:

-	wide character support new

-	sevaral str*.c functions new for orthogonality with the new wcs* code.

-	Added a wide character patern matcher with: patwcompile(), patwmatch(), patwlmatch()
	See files:

	libschily/matchw.c and libschily/matchwl.c

-	libschily/stdio/*.c fixed to use size_t as length parameter for
	read*()/write*() operations.

Libscg:

-	Added a workaround for the type desaster in the Appls IOKit include files
	in order to support 64 bit binaries

Cdda2wav (Maintained/enhanced by J

-	The -interactive option is now mentioned in the -help output and the man page.

-	Call unit_ready() before retrieving the TOC data in order to work around a Solaris
	scsa2usb (SCSA to USB Driver) bug.

Readcd:

-	"readcd" no longer dumps core if the C2Scan function is selected from the
	interactive interface.

Mkisofs (Maintained/enhanced by J

-	Fixed a typo bug in the mkisofs man page that caused the two synopsis lines
	to appear as one line when using GNU troff.

-	isoinfo now prints "???" in case that an illegal month is in a ISO-9660
	filesystem.
2009-07-17 20:19:55 +00:00

149 lines
4.7 KiB
Makefile

# $NetBSD: Makefile,v 1.56 2009/07/17 20:19:55 wiz Exp $
DISTNAME= cdrtools-2.01.01a61
PKGNAME= ${DISTNAME:S/a/alpha/:S/-pre/pre/}
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.berlios.de/pub/cdrecord/alpha/ \
http://ftp.berlios.de/pub/cdrecord/alpha/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cdrecord.berlios.de/old/private/cdrecord.html
COMMENT= Software for creating ISO9660 images and writing CD/DVD/Blu-ray
CONFLICTS= mkisofs-[0-9]* cdrtools-ossdvd-[0-9]* cdrecord-[0-9]* cdrkit-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
MAKE_JOBS_SAFE= no
WRKSRC= ${WRKDIR}/cdrtools-2.01.01
USE_TOOLS+= gm4 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:Q}
MAKE_ENV+= LDOPTX=${LDFLAGS:Q}
MAKE_ENV+= INS_BASE=${PREFIX:Q}
# do we want to compile shared libraries?
# needs changes in the install target and PLIST
#MAKE_ENV+= LINKMODE=dynamic
# 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
CONF_FILES+= share/examples/cdrtools/cdrecord ${CDRECORD_CONF}
INSTALLATION_DIRS= bin lib/siconv ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 \
share/doc/cdrtools/cdda2wav \
share/doc/cdrtools/cdrecord \
share/doc/cdrtools/mkisofs \
share/examples/cdrtools
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.
SUBST_CLASSES+= oss
SUBST_STAGE.oss= post-patch
SUBST_FILES.oss= cdda2wav/local.cnf.in
SUBST_SED.oss= -e "s,/dev/dsp,${DEVOSSSOUND},g"
SUBST_MESSAGE.oss= Fixing OSS sound device path.
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
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${MAKE_PROGRAM} config
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:
for program in btcflash cdda2wav cdrecord mkisofs \
readcd scgcheck scgskeleton; do \
cd ${WRKSRC}/$${program}; \
${INSTALL_PROGRAM} OBJ/*/$${program} \
${DESTDIR}${PREFIX}/bin; \
done
for program in btcflash cdda2wav cdrecord readcd scgcheck; do \
${INSTALL_MAN} ${WRKSRC}/$${program}/$${program}.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
done
for program in mkisofs; do \
${INSTALL_MAN} ${WRKSRC}/$${program}/$${program}.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8; \
done
cd ${WRKSRC}/mkisofs/diag; \
for f in devdump isodebug isodump isoinfo isovfy; do \
${INSTALL_PROGRAM} OBJ/*/$$f ${DESTDIR}${PREFIX}/bin; \
${INSTALL_MAN} $$f.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/$$f.8; \
done
${INSTALL_DATA} ${WRKSRC}/libsiconv/tables/[cik]* \
${DESTDIR}${PREFIX}/lib/siconv
${RM} ${DESTDIR}${PREFIX}/lib/siconv/*mk
${INSTALL_DATA} ${WRKSRC}/cdda2wav/README* \
${DESTDIR}${PREFIX}/share/doc/cdrtools/cdda2wav
${INSTALL_DATA} ${WRKSRC}/cdrecord/README* \
${DESTDIR}${PREFIX}/share/doc/cdrtools/cdrecord
${INSTALL_DATA} ${WRKSRC}/mkisofs/README* \
${DESTDIR}${PREFIX}/share/doc/cdrtools/mkisofs
${INSTALL_DATA} ${WRKSRC}/cdrecord/cdrecord.dfl \
${DESTDIR}${PREFIX}/share/examples/cdrtools/cdrecord
CONFIGURE_ENV+= librt=${NETBSDLIB.rt:U:Q}
.if ${OPSYS} == "NetBSD"
netbsd-posix-sched-check-cookie: netbsd-posix-sched-check
###
### Check for POSIX priority scheduling in NetBSD
###
.PHONY: netbsd-posix-sched-check
netbsd-posix-sched-check:
NETBSDLIB.rt!=\
if ( /sbin/sysctl -n kern.posix_sched >/dev/null 2>&1 ); then \
lib=-lrt; \
fi || ${TRUE}; \
echo "$$lib"
.endif
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"