aboutsummaryrefslogblamecommitdiff
path: root/games/kdegames4/Makefile
blob: 6cc871425d7059d5b91db5623a48982fd0437c4d (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                       
 
           
 
                        
                               
                         
                                  
                                                         
                   
 
                               
                               
 
                                                             
                                             
                                                 
                                                      
 
                            
 
                                                             
                   
                  
                 



                                                                   
                   
 

                                                                              
 
                              

                         
                                                                                  

      











                                                                    
                      
# New ports collection Makefile for:	kdegames
# Date created:				2008-02-08
# Whom:					Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=	kdegames
PORTVERSION=	${KDE4_VERSION}
CATEGORIES=	games kde
MASTER_SITES=	${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR=	${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR=	KDE

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Games for KDE 4

LIB_DEPENDS=	ggzcore.9:${PORTSDIR}/games/ggz-client-libs \
		qca.2:${PORTSDIR}/devel/qca \
		qhull.5:${PORTSDIR}/math/qhull5 \
		sndfile.1:${PORTSDIR}/audio/libsndfile

LATEST_LINK=	${PORTNAME}4

USE_KDE4=	kdehier kdelibs kdeprefix sharedmime automoc4
KDE4_BUILDENV=	yes
USE_OPENAL=	al
USE_QT_VER=	4
QT_COMPONENTS=	dbus gui network opengl qt3support script svg xml \
		moc_build qmake_build rcc_build uic_build
USE_BZIP2=	yes
CMAKE_ARGS+=	-DBUILD_kajongg:BOOL=FALSE
MAKE_JOBS_SAFE=	yes

OPTIONS=	FREEBSD "Install FreeBSD card deck" off \
		KAJONGG "Install the classical Mah Jongg for four players" off

.include <bsd.port.options.mk>

.if defined(WITH_FREEBSD)
RUN_DEPENDS+=	kde4-freebsd-carddeck>=1.0:${PORTSDIR}/games/freebsd-carddeck-kde4
.endif

.if defined(WITH_KAJONGG)
RUN_DEPENDS+=	${KDE4_PREFIX}/bin/kajongg:${PORTSDIR}/games/kajongg
.endif

post-patch:
	# Prevent updating MIME during build.
	${REINPLACE_CMD} -e '/^update_xdg_mimetypes/ d' \
		${WRKSRC}/palapeli/mime/CMakeLists.txt

post-install:
	@-update-mime-database ${KDE4_PREFIX}/share/mime

.include <bsd.port.mk>