blob: 4e5b27dbdcd99f789365f4063e772798adbf4a87 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: smplayer
# Date created: 13 Jun, 2007
# Whom: Diego Depaoli <trebestie@gmail.com> and Yinghong.Liu <liu_yinghong@yahoo.com.cn>
#
# $FreeBSD$
#
PORTNAME= smplayer
DISTVERSION= 0.5.0
CATEGORIES= multimedia audio kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}
MAINTAINER= liu_yinghong@yahoo.com.cn
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= qmake porting moc uic qt3support uic3 corelib gui
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>
|