blob: 79d60c2e2cdf2870ebe2589863dfb330543c864b (
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
|
# Don't check for python presence
CONFIGURE_ARGS+= --without-python
# We WANT shared libs
CONFIGURE_ARGS+= --with-libsmbclient
SAMBA_INSTALL_LIBS= libsmbclient
.if defined(WITH_MSRPC)
CONFIGURE_ARGS+= --with-libmsrpc
SAMBA_INSTALL_LIBS+= libmsrpc
PLIST_SUB+= MSRPC=""
.else
PLIST_SUB+= MSRPC="@comment "
.endif
.if defined(WITH_SHAREMODES)
CONFIGURE_ARGS+= --with-libsmbsharemodes
SAMBA_INSTALL_LIBS+= libsmbsharemodes
PLIST_SUB+= SHAREMODES=""
.else
PLIST_SUB+= SHAREMODES="@comment "
.endif
MAN7= libsmbclient.7
do-build:
cd ${WRKSRC} && ${MAKE} proto
cd ${WRKSRC} && ${MAKE} libsmbclient
.if defined(WITH_MSRPC)
cd ${WRKSRC} && ${MAKE} cac
.endif
.if defined(WITH_SHAREMODES)
cd ${WRKSRC} && ${MAKE} libsmbsharemodes
.endif
do-install:
-@${MKDIR} ${MAN8PREFIX}/man/man7
.for man in ${MAN7}
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/manpages/${man} ${MAN7PREFIX}/man/man7
.endfor
-@${MKDIR} ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/include/libsmbclient.h ${PREFIX}/include
.if defined(WITH_MSRPC)
${INSTALL_DATA} ${WRKSRC}/include/libmsrpc.h ${PREFIX}/include
.endif
-@${MKDIR} ${PREFIX}/lib
.for lib in ${SAMBA_INSTALL_LIBS}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${lib}.a ${PREFIX}/lib
${INSTALL_SCRIPT} ${WRKSRC}/bin/${lib}.so ${PREFIX}/lib/${lib}.so.0
${LN} -snf ${lib}.so.0 ${PREFIX}/lib/${lib}.so
.endfor
-@${MKDIR} ${EXAMPLESDIR}
@${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/libsmbclient ${EXAMPLESDIR}
.if defined(WITH_MSRPC)
@${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/libmsrpc ${EXAMPLESDIR}
.endif
|