ports/sysutils/cdrdao/Makefile
Tijl Coosemans 974099d0bd devel/libtextstyle, devel/gettext*: Update to 0.26
Recent versions of gettext no longer install m4 files in
PREFIX/share/aclocal.  They have to be installed in the work
directory by autopoint for aclocal to find them.

Patch devel/autoconf so autoreconf runs autopoint when gettext related
macros are used in configure.ac (e.g. AM_ICONV).  Previously it only
ran autopoint when AM_GNU_GETTEXT_(REQUIRE_)VERSION was used.

The following ports now require autopoint (i.e. USES=gettext-tools):
benchmarks/sysbench, devel/libhtp, editors/fxite, filesystems/rar2fs,
graphics/gd, net/ucarp, news/fidogate, sysutils/cdrdao

Other fixes:

emulators/mednafen, misc/lifelines: Use older version of gettext macros.
ftp/axel: Patch Makefile.am and configure.ac to get gettext working and
add NLS option.
ftp/wzdftpd: Use autoreconf 2.72.
mail/sympa: Remove hack from configure.ac.
multimedia/dvdauthor: Use ports autoreconf.
net/asterisk-chan_sccp: Drop autoreconf and gettext-tools dependencies.
security/pam_pkcs11: Patch configure.ac so autoreconf can find the
custom directory with m4 files.
sysutils/grub2-efi, sysutils/grub2-pcbsd: Add patch to run autoreconf
with -f flag so it updates all files.
www/wget2: Patch configure.ac to what autopoint expects.

PR:		287167
Exp-run by:	antoine
2025-12-14 19:29:12 +01:00

57 lines
1.5 KiB
Makefile

PORTNAME= cdrdao
DISTVERSION= 1_2_5
PORTREVISION= 2
CATEGORIES= sysutils audio
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/rel_${DISTVERSION}/ \
SF/${PORTNAME}/rel_${DISTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Record CD-R[W]s in disk-at-once mode
WWW= https://cdrdao.sourceforge.net/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= alias autoreconf compiler:c++11-lang gettext-tools gmake iconv \
localbase tar:bzip2
USE_CXXSTD= c++11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gcdmaster=no \
--without-pcctsbin \
--without-pcctsinc \
--with-posix-threads=no \
--with-scglib
OPTIONS_DEFINE= DOCS TOC2MP3 MP3OGG
OPTIONS_DEFAULT= MP3OGG
OPTIONS_SUB= yes
MP3OGG_DESC= Build with MP3/Ogg support (for sysutils/gcdmaster)
MP3OGG_LIB_DEPENDS= libao.so:audio/libao \
libmad.so:audio/libmad \
libvorbis.so:audio/libvorbis
MP3OGG_USES= pkgconfig
MP3OGG_CONFIGURE_OFF= --with-mp3-support=no --with-ogg-support=no
TOC2MP3_DESC= Build with toc2mp3 (requires audio/lame)
TOC2MP3_LIB_DEPENDS= libmp3lame.so:audio/lame
TOC2MP3_CONFIGURE_OFF= --with-lame=no
post-patch:
.for i in cdrdao.man main.cc
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/dao/${i}
.endfor
.for i in toc2cddb.1 toc2cue.1
@${REINPLACE_CMD} -e 's|1\.2\.2|${PORTVERSION}|g' ${WRKSRC}/utils/${i}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in CREDITS ChangeLog README README.PlexDAE
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>