ec847eab07
Both extrapatch-no_alsa and patch-git_d6927712 touch the same region of CMakeLists.txt, and the latter was failing to apply when the ALSA option was disabled. Fix it by keeping patch-git_d6927712 (which fixes the CFLAGS values regardless of the value of the ALSA option) and replacing extrapatch-no_alsa with some post-patch/post-configure changes that achieve the same end result. PR: 204858 MFH: 2015Q4
30 lines
771 B
Makefile
30 lines
771 B
Makefile
# Created by: Raphael Kubo da Costa <rakuco@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libkcompactdisc
|
|
PORTVERSION= ${KDE4_VERSION}
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio kde
|
|
MASTER_SITES= KDE/${KDE4_BRANCH}/${PORTVERSION}/src
|
|
DIST_SUBDIR= KDE/${PORTVERSION}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= KDE library for interfacing with audio CDs
|
|
|
|
USES= cmake:outsource tar:xz
|
|
USE_KDE4= automoc4 kdelibs kdeprefix
|
|
USE_QT4= phonon moc_build qmake_build rcc_build uic_build
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= ALSA
|
|
|
|
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
|
|
|
|
post-patch-ALSA-off:
|
|
${REINPLACE_CMD} -e '/find_package(Alsa)/d' \
|
|
-e '/alsa_configure_file/d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
post-configure-ALSA-off:
|
|
${TOUCH} ${CONFIGURE_WRKSRC}/config-alsa.h
|
|
|
|
.include <bsd.port.mk>
|