freebsd-ports/sysutils/cdrkit/Makefile
2020-08-28 16:44:11 +00:00

40 lines
1.0 KiB
Makefile

# Created by: Pav Lucistnik <pav@FreeBSD.org>
# $FreeBSD$
PORTNAME= cdrkit
PORTVERSION= 1.1.11
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://ponce.cc/slackware/sources/repo/ \
http://vault.101011010.xyz/distfiles/ \
http://freebsd.nsu.ru/distfiles/
MAINTAINER= jharris@widomaker.com
COMMENT?= Command-line CD/DVD writing suite
LICENSE= GPLv2+
RUN_DEPENDS?= ${PORTNAME}-genisoimage>0:sysutils/genisoimage
USES= cmake iconv perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= 3rd-party/dirsplit/dirsplit
# Fix build with clang11
CFLAGS+= -fcommon
CONFLICTS?= cdrtools-[0-9]* cjk-cdrtools-[0-9]* cdrtools-devel-[0-9]*
SLAVEDIRS= sysutils/genisoimage
PLIST_SUB?= CDRKIT="" GENISOIMAGE="@comment "
post-patch:
@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/include/AddSchilyBits.cmake \
${WRKSRC}/3rd-party/dirsplit/CMakeLists.txt
@${REINPLACE_CMD} -e 's|fexecve|librols_fexecve|g' \
${WRKSRC}/librols/fexec.c \
${WRKSRC}/include/schily.h
@${REINPLACE_CMD} -e 's|getdelim|wodim_getdelim|g' ${WRKSRC}/wodim/cue.c
.include <bsd.port.mk>