1 # $NetBSD: Makefile.common,v 1.9 2011/04/14 21:47:24 hans Exp $
3 DISTNAME= cdrdao-${CDRDAO_VER}
5 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cdrdao/}
8 MAINTAINER= david@maxwell.net
9 HOMEPAGE= http://cdrdao.sourceforge.net/
10 COMMENT= Records audio or data CD-Rs in disk-at-once (DAO) mode
12 CDRDAODIR= ${.CURDIR}/../../sysutils/cdrdao
13 PATCHDIR= ${CDRDAODIR}/patches
14 DISTINFO_FILE= ${CDRDAODIR}/distinfo
16 PKG_INSTALLATION_TYPES= overwrite pkgviews
22 CONFIGURE_ARGS+= --with-pcctsbin=${PREFIX}/bin
23 CONFIGURE_ARGS+= --with-pcctsinc=${PREFIX}/include/pccts
24 CONFIGURE_ARGS+= --with-gtkmm-exec-prefix=/dev/null
25 # don't pick up an installed libcdda_paranoia
26 LDFLAGS+= -L../paranoia
27 LDFLAGS.SunOS= -lvolmgt -lnsl
29 .include "../../mk/bsd.prefs.mk"
30 .if ${OPSYS} == "SunOS"
31 CONFIGURE_ARGS+=--with-scglib
38 # override ARCH to avoid picking up a bad ${ARCH} during the build
42 ${CP} ${WRKSRC}/scsilib/RULES/os-freebsd.id ${WRKSRC}/scsilib/RULES/os-dragonfly.id
45 cd ${WRKSRC}/scsilib/RULES ; \
46 ${TEST} -f netbsd-cc.rul || ${MV} i386-netbsd-cc.rul netbsd-cc.rul; \
47 ${TEST} -f netbsd-gcc.rul || ${MV} i386-netbsd-gcc.rul netbsd-gcc.rul; \
48 ${LN} -sf netbsd-gcc.rul ${MACHINE}-netbsd-gcc.rul; \
49 ${LN} -sf netbsd-cc.rul ${MACHINE}-netbsd-cc.rul;
51 .include "../../audio/libao/buildlink3.mk"
52 .include "../../audio/libmad/buildlink3.mk"
53 .include "../../audio/libvorbis/buildlink3.mk"
54 .include "../../devel/pccts/buildlink3.mk"