1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/multimedia/smplayer/Makefile
Martin Wilke 98c5f0ad69 - Fix build
Submitted by:	pointyhat
Approved by:	maintainer timeout
2007-09-27 12:23:04 +00:00

65 lines
1.5 KiB
Makefile

# New ports collection makefile for: smplayer
# Date created: 13 Jun, 2007
# Whom: Diego Depaoli <trebestie@gmail.com> and Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= smplayer
DISTVERSION= 0.5.21
CATEGORIES= multimedia audio kde
MASTER_SITES= SF
MAINTAINER= relaxbsd@gmail.com
COMMENT?= A complete front-end based on QT3 for mplayer
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \
${LOCALBASE}/share/smplayer/themes:${PORTSDIR}/multimedia/smplayer-themes
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-qt4"
USE_QT_VER= 4
QT_COMPONENTS= qt3support corelib gui qmake_build moc_build uic_build uic3_build porting_build opengl
ALL_TARGET= prep src/smplayer
.else
USE_QT_VER= 3
CONFLICTS?= smplayer-qt4-[0-9]*
BUILD_DEPENDS+= qmake:${PORTSDIR}/devel/qmake
QMAKE= ${QT_PREFIX}/bin/qmake
MAKE_ENV+= QTDIR=${QT_PREFIX} \
QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
ALL_TARGET= src/smplayer
.if defined(WITH_KDE)
USE_KDELIBS_VER=3
MAKE_ARGS+= KDE_SUPPORT=1
.endif
.endif
USE_GMAKE= yes
INSTALLS_ICONS= yes
PORTDOCS= Changelog Configurable_shortcuts.txt Install.txt \
Copying.txt Not_so_obvious_things.txt Translations.txt \
Icon_themes.txt Readme.txt
post-patch:
@${REINPLACE_CMD} -e 's|qmake|${QMAKE}|g' \
-e 's|PREFIX=/usr/local|PREFIX=${PREFIX}|g' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>