# New ports collection makefile for: kaffeine # Date created: 2003-06-25 # Whom: arved # # $FreeBSD$ PORTNAME= kaffeine PORTVERSION= 0.8.4 CATEGORIES= multimedia kde MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= kaffeine MAINTAINER= arved@FreeBSD.org COMMENT= A xine-base multimedia player LIB_DEPENDS= xine.1:${PORTSDIR}/multimedia/libxine \ cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia USE_BZIP2= yes USE_KDELIBS_VER= 3 USE_GMAKE= yes USE_GETTEXT= yes USE_LDCONFIG= yes USE_AUTOTOOLS= libtool:15 CONFIGURE_ENV= CXXFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -I${WRKSRC}" CONFIGURE_TARGET= DVB_HEADERS= ca.h dmx.h frontend.h net.h .ifdef (WITH_GSTREAMER) USE_GSTREAMER= yes PLIST_SUB+= NOGSTREAMER="" .else PLIST_SUB+= NOGSTREAMER="@comment " .endif .ifdef (WITH_LAME) LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame PLIST_SUB+= NOLAME="" .else CONFIGURE_ARGS+= --without-lame PLIST_SUB+= NOLAME="@comment " .endif .ifdef (WITH_DVB) PLIST_SUB+= NODVB="" .else PLIST_SUB+= NODVB="@comment " .endif .include .if ${X_WINDOW_SYSTEM:L} == xorg CONFIGURE_ARGS+= --with-xorg .endif .ifndef (WITH_GSTREAMER) CONFIGURE_ARGS+= --without-gstreamer .endif post-patch: ${REINPLACE_CMD} -e "s,xx,," ${WRKSRC}/po/Makefile.in ${REINPLACE_CMD} "s,#include ,," \ ${WRKSRC}/kaffeine/src/input/disc/paranoia.cpp .ifdef (WITH_DVB) ${MKDIR} ${WRKSRC}/linux/dvb cd ${FILESDIR}; ${CP} ${DVB_HEADERS} ${WRKSRC}/linux/dvb .endif post-install: ${RM} ${PREFIX}/share/doc/HTML/en/doc/CMakeLists.txt .include