54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# We WANT shared libs
|
|
CONFIGURE_ARGS+= --with-libsmbclient
|
|
SAMBA_INSTALL_LIBS= libsmbclient
|
|
|
|
.if defined(WITH_ADDNS)
|
|
CONFIGURE_ARGS+= --with-libaddns
|
|
SAMBA_INSTALL_LIBS+= libaddns
|
|
PLIST_SUB+= ADDNS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-libaddns
|
|
PLIST_SUB+= ADDNS="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_SHAREMODES)
|
|
CONFIGURE_ARGS+= --with-libsmbsharemodes
|
|
SAMBA_INSTALL_LIBS+= libsmbsharemodes
|
|
PLIST_SUB+= SHAREMODES=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-libsmbsharemodes
|
|
PLIST_SUB+= SHAREMODES="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_NETAPI)
|
|
CONFIGURE_ARGS+= --with-libnetapi
|
|
SAMBA_INSTALL_LIBS+= libnetapi
|
|
PLIST_SUB+= NETAPI=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-libnetapi
|
|
PLIST_SUB+= NETAPI="@comment "
|
|
.endif
|
|
|
|
MAN7= libsmbclient.7
|
|
|
|
ALL_TARGET= libtdb ${SAMBA_INSTALL_LIBS}
|
|
|
|
do-install:
|
|
-@${MKDIR} ${MAN7PREFIX}/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_ADDNS)
|
|
${INSTALL_DATA} ${WRKSRC}/libaddns/addns.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}
|