blob: 6b7da6a1fbdbcac22bbf879af9920511c72adeae (
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
|
# Created by: Josh Paetzel <jpaetzel@FreeBSD.org>
# $FreeBSD$
PORTNAME= smb4k-kde4
PORTVERSION= 0.10.9
PORTREVISION= 9
CATEGORIES= net kde
MASTER_SITES= ${MASTER_SITE_BERLIOS}
MASTER_SITE_SUBDIR= smb4k
DISTNAME= smb4k-${PORTVERSION}
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT= KDE 4.x SMB Network browser and SMB shares mounting center
RUN_DEPENDS= sudo:${PORTSDIR}/security/sudo \
smbstatus:${PORTSDIR}/${SAMBA_PORT}
SAMBA_PORT?= net/samba36
USES= cmake gettext
USE_BZIP2= yes
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/kde4
USE_KDE4= kdehier kdeprefix kdelibs automoc4 runtime
USE_QT4= corelib gui network opengl script svg webkit \
qmake_build moc_build rcc_build uic_build phonon
DOCSDIR= ${PREFIX}/share/doc/HTML/en/smb4k
SUB_FILES= pkg-message
NO_STAGE= yes
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
NLS= ""
.else
NLS= "@comment "
.endif
PLIST_SUB+= NLS=${NLS}
pre-configure:
.if ! ${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e 's|add_subdirectory( po )|#add_subdirectory( po )|' \
${WRKSRC}/CMakeLists.txt
.endif
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's|add_subdirectory( doc )|#add_subdirectory( doc )|' \
${WRKSRC}/CMakeLists.txt
.endif
post-install:
.for i in smb2awk smb2nsmbrc
${INSTALL_SCRIPT} ${FILESDIR}/${i} ${PREFIX}/bin
.endfor
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|